Linux Questions & Answers – Linux Commands – 2

This set of Linux / Unix questions and answers focuses on various Linux administration commands. It will be useful for anyone learning basic Linux Administration.

1. Which command is used to display the octal value of the text
a) octal
b) text_oct
c) oct
d) od
View Answer

Answer: d
Explanation: None.

2. Which command is used to view compressed text file contents
a) cat
b) type
c) zcat
d) print
View Answer

Answer: c
Explanation: None.

3. Which command changes a file’s group owner
a) cgrp
b) chgrp
c) change
d) group
View Answer

Answer: b
Explanation: None.
advertisement
advertisement

4. Which command is used to extract intermediate result in a pipeline
a) tee
b) extract
c) exec
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

5. Which command is used to extract a column from a text file
a) paste
b) get
c) cut
d) tar
View Answer

Answer: c
Explanation: None.
Note: Join free Sanfoundry classes at Telegram or Youtube

6. Which command is used to display disk consumption of a specific directory
a) du
b) ds
c) dd
d) dds
View Answer

Answer: a
Explanation: None.

7. Which command is used to perform backup in unix?
a) backup
b) cpio
c) zip
d) gzip
View Answer

Answer: b
Explanation: None.
advertisement

8. Which command creates an empty file if file does not exist?
a) cat
b) touch
c) ed
d) read
View Answer

Answer: b
Explanation: None.

9. Which option of rm command is used to remove a directory with all its subdirectories
a) –b
b) –o
c) –p
d) –r
View Answer

Answer: d
Explanation: None.
advertisement

10. Which command is used to identify file type?
a) Type
b) File
c) Finfo
d) Info
View Answer

Answer: b
Explanation: None.

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.