Is each of the following an absolute pathname, a relative pathname, or a simple filename?
List the commands you can use to
Make your home directory the working directory
Identify the working directory
If your working directory is /home/alex with a subdirectory named literature, give three sets of commands that you can use to create a subdirectory named classics under literature. Also give several sets of commands you can use to remove the classics directory and its contents.
The df utility displays all mounted filesystems along with information about each. Use the df utility with the h (humanly readable) option to answer the following questions.
How many filesystems are on your Linux system?
Which filesystem stores your home directory?
Assuming that your answer to exercise 4a is two or greater, attempt to create a hard link to a file on another filesystem. What error message do you get? What happens when you attempt to create a symbolic link to the file instead?
Suppose that you have a file that is linked to a file owned by another user. What can you do so that changes to the file are no longer shared?
You should have read permission for the /etc/passwd file. To answer the following questions, use cat or less to display /etc/passwd. Look at the fields of information in /etc/passwd for the users on your system.
Which character is used to separate fields in /etc/passwd?
How many fields are used to describe each user?
How many users are on your system?
How many different login shells are in use on your system? (Hint: Look at the last field.)
The second field of /etc/passwd stores user passwords in encoded form. If the password field contains an x, your system uses shadow passwords and stores the encoded passwords elsewhere. Does your system use shadow passwords?
If /home/jenny/draft and /home/alex/letter are links to the same file and the following sequence of events occurs, what will be the date in the opening of the letter?
Alex gives the command vim letter.
Jenny gives the command vim draft.
Jenny changes the date in the opening of the letter to January 31, 2006, writes the file, and exits from vim.
Alex changes the date to February 1, 2006, writes the file, and exits from vim.
Suppose that a user belongs to a group that has all permissions on a file named jobs_list, but the user, as the owner of the file, has no permissions. Describe what operations, if any, the user/owner can perform on jobs_list.
Which command can the user/owner give that will grant the user/owner all permissions on the file?
Does the root directory have any subdirectories that you cannot search? Does the root directory have any subdirectories that you cannot read? Explain.
Assume that you are given the directory structure shown in Figure 4-2 on page 77 and the following directory permissions:
d--x--x--- 3 jenny pubs 512 Mar 10 15:16 business drwxr-xr-x 2 jenny pubs 512 Mar 10 15:16 business/milk_co
For each category of permissions owner, group, and other what happens when you run each of the following commands? Assume that the working directory is the parent of correspond and that the file cheese_co is readable by everyone.
ls l correspond/business