Chapter 5, p. 185 Exercises 1, 3, 4, 8, 10
1) Which command can you use to determine who is logged on a specific terminal? Who
3) What happens when you give the following commands if the file name done already exists?
$ cp to_do done – The file is copied
$mv to_do done – The object is moved
4) How can you find out which utilities are available on your system for editing files? Which utilities are available for editing on your system? Use apropos editor. Vim, ex, ed, and gedit
10) Experiment by calling the file utility with the names of files in /usr/bin. How many different types of files are there?14
Chapter 6, p220 Exercises 1, 2, 3, 4, 6
1) Is each of the following an absolute pathname, a relative pathname, or a simple file name?
A. Milk_co – Simple file name
B. correspond/business/milk_co –Relative pathname
C. /home/alex – Absolute pathname
D. /home/alex/literature/promo – Absolute pathname
E .. – Relative pathname
F letter.0610 – Simple file name
2) List the commands you use to perform the operation:
A. Make your home directory the working directory. cd
B. Identify the working directory. pw
3) If your directory is /home/alex with a subdirectory named literature, give three sets of commands that you can use to create a subdirectory names classics under literature. Also give several sets of commands you can use to remove the classics directory and its contents.
4) The df utility displays all mounted filesystems along with information about each. Use the df utility with the –h (human-readable) option to answer the following questions.
A. How many filessystems are mounted on your Linux system?
B. Which filesystem stores your home directory?
C. Assuming that your answer to exercise 4a is two or more, 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?
6) You should have read permission for the...