Unix
MCQ questions and answers
- 4.5/5.0
- 1k Enrolled
- All levels
- Last updated 11/2023
- English
Unix MCQ (23)
1. | ____________ is a part of the Operating System (OS) which interact with a hardware. |
A | Shell |
B | Kernel |
C | Device driver |
D | Interrupt |
Answer: B | |
2. | Program interact with the kernel through____________. |
A | compiler |
B | interpretter |
C | system call |
D | shell |
Answer: C | |
3. | Shell is also called as ____________. |
A | Command interpretter |
B | Compiler |
C | Device driver |
D | System application |
Answer: A | |
4. | In linux or unix administrator is also called as ____________. |
A | user |
B | normal user |
C | super user |
D | developer |
Answer: C | |
5. | Which command is used to display the logged user names? |
A | who |
B | finger |
C | user |
D | talk |
Answer: A | |
6. | Which command is used to provide more complete information about another user on the system? |
A | grep |
B | finger |
C | who |
D | sudo |
Answer: B | |
7. | Which command is used to send the short message directly to another user? |
A | |
B | chat |
C | write |
D | man |
Answer: C | |
8. | Unix system provides the ____________ command which allows you to accept or refuse messages which is sent via write and talk command. |
A | mesg |
B | kmail |
C | tail |
D | finger |
Answer: A | |
9. | Most system is also included an enhanced version of the mail is known as ____________. |
A | maily |
B | |
C | mailx |
D | mesg |
Answer: C | |
10. | Which command is used in Unix to logout the user? |
A | signout |
B | exit |
C | quit |
D | shutdown |
Answer: B | |
11. | Which command is used in Unix to turn off the machine? |
A | shutdown |
B | poweroff |
C | A and B |
D | exit |
Answer: C | |
12. | Which symbol is used to refer to the HOME directory? |
A | hash (#) |
B | tilde (~) |
C | greater than (>) |
D | underscore (-) |
Answer: B | |
13. | ____________file contain name (including full pathname) of another file. |
A | Ordinary file |
B | Link |
C | Symbolic link |
D | Hard link |
Answer: C | |
14. | Which command is used to display the non-printing ASCII characters? |
A | $cat -v output |
B | $cat -p output |
C | $cat > output |
D | $cat -R output |
Answer: A | |
15. | Which command is used to print current working directory? |
A | touch |
B | cwd |
C | ls |
D | pwd |
Answer: D | |
16. | Which command is used in Unix to rename the file? |
A | ren |
B | mv |
C | rename |
D | change |
Answer: B
Description: Unix does not have a command specifically for renaming files. Instead, the mv command is used both to change the name of a file and to move a file into a different directory |
|
17. | Which command is used to move the file? |
A | move |
B | mv |
C | copy |
D | xcopy |
Answer: B
Description: Unix does not have a command specifically for renaming files. Instead, the mv command is used both to change the name of a file and to move a file into a different directory |
|
18. | Which command is used in unix to copy file? |
A | copy |
B | xcopy |
C | cp |
D | mv |
Answer: C | |
19. | Symbolic link is created by using ____________ command. |
A | ln |
B | link |
C | ln -s |
D | noclobber |
Answer: C | |
20. | Which command is used to search the files with a particular name or a certain features? |
A | locate |
B | search |
C | find |
D | ls |
Answer: C | |
21. | Which of the following command is very fast and it will only work if the database of filenames are up to date? |
A | find |
B | grep |
C | locate |
D | touch |
Answer: C | |
22. | Which command is used to change the permission of the file? |
A | chmod |
B | perm |
C | change |
D | set |
Answer: A | |
23. | Which command is used to specify the permission to the files? |
A | mask |
B | unmask |
C | chmod |
D | chmod -R |
Answer: B |