Is each of the following a complete pathname, a family member pathname, or maybe a simple filename? a) Mile_co b) Correspond/business/milk_co c) /home/max d) /home/max/literature/promo e).. f) Letter. 0210 2 . List the directions you can use to accomplish these businesses: a. Make your home directory the working directory m. Identify the working directory a. cd; m. pwd a few. If your working directory is definitely /home/alex which has a subdirectory named literature, provide three units of instructions that you can use to create a subdirectory known as classics under literature.
As well give a lot of sets of commands you can utilize to remove the classics listing and its items. 4. The df power displays all mounted filesystems along with information about each. Use the df utility while using h (human-readable) option to solution the following inquiries. $ df -h Filesystem Size Utilized Avail Use% Mounted on /dev/hda1 1 . 4-G 242M 1 . 1G 18% / /dev/hda3 23M 11M 10M 51% /boot /dev/hda4 1 . 5G 1 . 2G 222M 85% /home /dev/hda7 564M 17M 518M 4% /tmp dev/hdc1 984M 92M 842M 10% /gc1 /dev/hdc2 16G 13G 1 . 9G 87% /gc2 a. Just how many filesystems are mounted on your Linux system? m. Which filesystem stores your home directory? c. Assuming that your answer to work out 4a can be two or more, try to create a hard link to a file on one other filesystem.
What error message do you acquire? What happens at the time you attempt to produce a symbolic url to the record instead? Pursuing are test answers to these questions.
The answers will be different because your filesystems are different.. half a dozen; b. /dev/hda4; c. ln: creating hard link /tmp/xxx’ to xxx’: Invalid cross-device link. No issue creating a cross-device symbolic website link. 2 Answers to Even-Numbered Exercises five. Suppose that you may have a file that is certainly linked to folders owned simply by another user.
How can you ensure that changes to the file are no longer shared? 6. You should have examine permission to get the /etc/passwd file. To resolve the following questions, use kitten or fewer to display /etc/passwd. Look at the domains of information in /etc/passwd to get the users on your own system.. Which character is used to separate domains in /etc/passwd? b. How many domains are used to identify each customer? c. Just how many users are on your whole body? d. Just how many different sign in shells happen to be in use on your own system? (Hint: Look at the last field. ) e. The 2nd field of /etc/passwd retailers user account details in protected form.
If the password field contains a great x, your system uses shadow passwords and stores the encoded account details elsewhere.