Linux MCQs – File Management – Part 2
Multiple choice questions and answers (MCQs) on Linux focuses on “Managing of users accounts and groups” to prepare for exams, interviews, and certifications, such as Redhat exam, CompTIA exam, Ubuntu / SuSE certification, LPI certification exam. These MCQs will easily prepare anyone to pass their Linux test.
1. Which of the following times does not exist in a traditional unix file system?
A Access time
B Modification time
C Creation time
D Change time
2. Which one represents the user’s home directory?
A /
B .
C ..
D ~
3. Which option of the “rmdir” command deletes all directories rep1, rep2, rep3 if the path is rep1/rep2/rep3?
A –b
B –o
C –p
D –t
4. Which command is used to set the file size limit?
A fsize
B flimit
C ulimit
D usize
5. If a file is deleted under Unix using “rm” then?
A The file can be recovered by a normal user
B The file cannot be recovered by a user
C The file can be fully recovered as long as the system is not rebooted
D The file will be moved to the /lost directory and can only be recovered by the administrator
6. When the following command $ mv file1 file2
is executed which file inode is released?
A file1
B file2
C a new inode is used
D no inodes are released
7. Which command is used to copy files and directories?
A copy
B cp
C cpy
D cpr
8. The attribute information of a file is stored in which structure on the disk?
A Inode
B Data blocks
C File blocks
D Directory file
9. How do you rename the file “toto” to “tata”?
A $ mv toto tata
B $ move toto tata
C $ cp toto tata
D $ rn toto tata
10. Running the ‘cd ..’ command at the root level results in _______ ?
A An error message indicating that the user cannot access beyond the root level
B The behavior depends on the version of unix
C Results by changing to the ‘home’ directory
D Nothing happens