CIS 155 Review Exercises Chapters 5-6

CIS 155 UNIX Operating System, Review Exercises
Chapters 5-6 Questions and Answers.
Examples:
Chapter 5 Review Exercises.

1. What is the difference between a directory file and an ordinary file?
Regular files contain sequences of bytes that could be programming code, data, text, and so on, such as the files you create using the vi editor. Directory files are not standard ASCII text files, they are a file that contains information (like the file name) about other files. It consists of a number of such records in a special format defined by your operating system.

3. What are the advantages of organizing your files in directories?
It offers structure for organizing files on a disk so you can easily find any particular one.

5. Match the commands shown with the explanations shown.
1. ls = h, Lists contents of the current directory.
2. Pwd = j, Displays the pathname of the current directory.
3. Cd = n, Changes the current directory to the HOME directory.
4. mkdir xyz = i, Creates a directory xyz in the current directory.
5. ls -l = k, Lists the current directory in long format.
6. Cd .. = l, Changes the working directory to the parent of the current directory.
7. ls -a = m, Lists all files, including the invisible files.
8. cat xyz = a, Displays the contents of the xyz file on the screen.
9. lp xyz = d, Prints the xyz file on the default printer.
10. rm xyz = b, Deletes the xyz file.
11. rmdir xyz = e, Deletes the xyz directory.
12. cancel lp1 = f, Cancels the printing jobs on the lp1 printer.
13. Lpstat = g, Displays the status of the default printer.
14. rm -i = c, Asks for confirmation before deleting a file.


Download Now
(sent via email)

Leave a Reply