0% found this document useful (0 votes)
19 views3 pages

LInux MCQ

Uploaded by

Mohamed thaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

LInux MCQ

Uploaded by

Mohamed thaha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1. What is the flag option that is responsible for creating multiple sub-directories?

a. -r b. -s c. -p d. -d

Ans: C

2. What is the command to create password for a root user?


a. pswd b. passwd c. password d. pwd

Ans: B

3. Core part of linux is called as _____


a. Shell b. Terminal c. Kernel d. Hardware

Ans: C

4. What is the default shell used?


a. bash b. bourne c. Zsh d. Csh

Ans: A

5. Which flag option is used for listing hidden files?


a. -a b. -l c. -R d. -s

Ans: A

6. Which operator is used to redirect output to a file?


a. > b. >> c. < d. <<

Ans: a

7. What is the uid and gid of a root user?


a. 0,1 b. 1,0 c. 1,1 d. 0,0

Ans: D

8. Which directory contains dynamic configuration data?


a. /tmp b. /bin c. /etc d. /var

Ans: D

9. Command used for deleting directory with files.


a. rm b. rmdir c. rm -r d. rmdir –r

Ans: C

10. Which command lists system process?


a. psinfo b. ps c. proc d. prtconf

Ans: B

11. Pattern to find the filenames which first character is not d.


a. d* b. *d c. d. [!d]*

Ans: D
12. Which file consists of user’s password database?
a. /etc/passwd b. /etc/pwd c. /etc/shadow d. /etc/group

Ans: C

13. Command to delete a user with home directory.


a. userdel user b. userdel –h user c. userdel –r user d. userdel –g user

Ans: C

14. What is the function to cut a line in vi editor?


a. dd b. dG c. D d. x

Ans: A

15. Where are the device files located in Linux?


a. /dev b. /opt c. /kernel d. /device

Ans: A

16. What is the command to change the file access permission?


a. chown b. chgrp c. chmod d. change owner

Ans: C

17. Select the command to find the current directory?


a. whereami b. curdir c. cd d. pwd

Ans:D

18. Which command is used to move 2 steps backward ?


a. cd b. cd ../.. c. cd.. d. cd/

Ans: B

19. Which command tells the currently working shell?


a. echo $PATH b. echo $0 c. echo $shell d. echo $SHELL

Ans: D

20. Which option is used to add supplementary group for a user?


a. -g b. -G c. -p d. -r
Ans: B
21.
22.

You might also like