

MCQOPTIONS
Saved Bookmarks
This section includes 22 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
When touch command is used without any options or expression, both times are set to current time and the file is created if it doesn’t exist. |
A. | True |
B. | False |
Answer» B. False | |
2. |
If we want to link files across the file systems, we have to use only soft links. |
A. | True |
B. | False |
Answer» B. False | |
3. |
A hard-linked file is assigned the same inode number as the original value. |
A. | True |
B. | False |
Answer» B. False | |
4. |
Which option is used with ln command to create a soft link? |
A. | -a |
B. | -l |
C. | -s |
D. | -e |
Answer» D. -e | |
5. |
WHICH_OPTION_IS_USED_WITH_LN_COMMAND_TO_CREATE_A_SOFT_LINK??$ |
A. | -a |
B. | -l |
C. | -s |
D. | -e |
Answer» D. -e | |
6. |
If we want to link files across the file systems, we have to use only soft links.$ |
A. | True |
B. | False |
Answer» B. False | |
7. |
A_hard-linked_file_is_assigned_the_same_inode_number_as_the_original_value.$ |
A. | True |
B. | False |
Answer» B. False | |
8. |
When touch command is used without any option but with an expression, which of the following timestamps are changed? |
A. | modification time |
B. | last access time |
C. | last inode modification |
D. | modification time and last access time |
Answer» E. | |
9. |
-a option is used with touch command to alter the time of last access. |
A. | True |
B. | False |
Answer» B. False | |
10. |
Which option is used with touch command to change the time of last file modification? |
A. | -a |
B. | -m |
C. | -r |
D. | -i |
Answer» C. -r | |
11. |
When touch command is used without any options or expression, both times are set to current time and the file is created if it doesn’t exist.$ |
A. | True |
B. | False |
Answer» B. False | |
12. |
Which command is used to change timestamps associated with a file? |
A. | touch |
B. | time |
C. | umask |
D. | ls |
Answer» B. time | |
13. |
We can change the default permission set for files and directories using ______ |
A. | umask |
B. | um |
C. | perm |
D. | touch |
Answer» B. um | |
14. |
The default permissions for a regular file are ____ and for directories are ____ |
A. | 777, 666 |
B. | 666, 777 |
C. | 000, 000 |
D. | 777, 777 |
Answer» C. 000, 000 | |
15. |
Which command is used to link a file with multiple filenames? |
A. | ln |
B. | link |
C. | hl |
D. | sl |
Answer» B. link | |
16. |
When we can access a file with multiple filenames, it is said that the file has multiple _____ |
A. | names |
B. | inode number |
C. | links |
D. | uid |
Answer» D. uid | |
17. |
Two files can have a same inode number in the same file system. |
A. | True |
B. | False |
Answer» C. | |
18. |
Which option is used with ls command for knowing the inode number of the file? |
A. | -l |
B. | -i |
C. | -a |
D. | -o |
Answer» C. -a | |
19. |
Which of the following is not stored in inode? |
A. | file name |
B. | inode number |
C. | file size |
D. | file name and inode number |
Answer» E. | |
20. |
Which of the following is not a content of inode? |
A. | file type |
B. | file permission |
C. | file size and links |
D. | file name |
Answer» E. | |
21. |
Every file is associated with a table which contains all possible information about a file, that table is called as _________ |
A. | info table |
B. | file table |
C. | inode |
D. | ps table |
Answer» D. ps table | |
22. |
Every file system has a directory structure headed by ____ |
A. | parent |
B. | child |
C. | root |
D. | kernel |
Answer» D. kernel | |