Home > Unix Programming > Quizzes > Unix Basics Practice Test: File System
Unix Basics Practice Test: File System
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 72% Most missed: “In UNIX, the file name and file size are stored in the file itself.”
Quiz on files categories, pwd and cd commands for file handling, is command for listing directory contents, absolute and relative pathnames. The Unix file system is a hierarchical file system that stores files and directories in a tree-like structure. The top of the tree is the root directory, which is denoted by a slash (/). All other directories and files are located below the root directory. Directories are used to organize files. To create a directory, you use the mkdir command. To delete a directory, you use the rmdir command. To move a file to a different directory, you use the mv... Show more
Unix Basics Practice Test: File System
Time left 00:00
25 Questions

1. cd /bin/user/directory/abc is an example of relative pathname.
2. How can we identify executables and directories from the output of ls command?
3. Which command is used for changing the current directory?
4. In how many broad categories, files are divided into UNIX?
5. $ cd . . is used to move ___ level up in the file hierarchy.
6. UNIX treats everything as a file.
7. $ cp file_01 . copies the file named file_01 in ____ directory
8. What is the collating sequence of ls command for listing files?
9. Which of the following cryptic symbols are used in relative pathname?
10. The root directory is represented by ___.
11. What does the -S option do in ls command?
12. Which command is used for printing the current working directory?
13. The output of ls dir* is ___
14. -r option is same as -R option in ls command.
15. Which option is used with ls to display attributes of the directory ?
16. A file is a container for storing information.
17. If rmdir dir001 fails, what could be the reason(s)?
18. For moving two level up in the file hierarchy system using cd command once, we separates ( . . ) by which symbol?
19. Which option is used with ls command to produce multi columnar output?
20. Which command is used for listing files in a directory?
21. pwd and echo $HOME will display the same output.
22. We can create multiple directories by single invocation of mkdir command.
23. We should avoid filenames starting with a - (hyphen).
24. What is an absolute pathname?
25. Filenames in UNIX are not case-sensitive.