DistributedNetworks DistributedNetworks


Special File Types  «Prev  Next»

Unix File Types - Quiz

Working with special file types

Each question is worth one point. Select the best answer or answers for each question.
 
1. How does UNIX treat regular files?
Please select the best answer.
  A. It distinguishes between binary files and text files.
  B. It relies heavily on file extensions.
  C. It stores all regular files in the /home directory.
  D. It treats binary files and text files the same.

2. What elements are included in a directory listing of device files?
Please select the best answer.
  A. Permissions, owners, groups, major numbers, and minor numbers
  B. Permissions, owners, major numbers, and processes
  C. Permissions, owners, groups, major numbers, and file extensions
  D. Permissions, file extensions, major numbers, and processes

3. Which of the following commands identify file types?
Please select all the correct answers.
  A. file
  B. whereis
  C. ls –F
  D. ls
  E. man file

4. What is a symbolic link?
Please select the best answer.
  A. A type of manual page
  B. An alias for a file
  C. An access permission bit
  D. A file ownership command

5. What is the purpose of the –a option to the ls command?
Please select the best answer.
  A. To generate a recursive listing
  B. To use a long format listing
  C. To list files in order of modification time
  D. To list hidden files
  E. To list information on a group of files

6. What is the purpose of the –g option to the ls command?
Please select the best answer.
  A. To generate a recursive listing
  B. To use a long format listing
  C. To list files in order of modification time
  D. To list hidden files
  E. To list information on a group of files

7. What does the following command do?
find / \(-user james –a –mtime +5\) -print
Please select the best answer.
  A. Lists all files belonging to user james or any files last modified more than 5 days ago
  B. Lists all files belonging to user james that were last modified more than 5 days ago
  C. Lists all files not belonging to user james that were last modified more than 5 days ago
  D. Lists all files not belonging to user james or any files last modified more than 5 days ago

8. Which of the following describes the use of the xargs command?
Please select the best answer.
  A. To select files with the find command
  B. To list files newer than a specified date
  C. To select files with a specified user or group
  D. To allow commands and arguments to read from standard output