Day-2 Learning Linux Through McQ's

Ritul GuptaRitul Gupta
2 min read

11. Which command is used to display the manual pages for a specific command in Linux?

a) info

b) man

c) help

d) doc

๐Ÿ’ก
man

12. How do you create an empty file in Linux?

a) touch

b) cp

c) mkdir

d) rm

๐Ÿ’ก
touch

13. What command is used to find and replace text in a file in Linux?

a) grep

b) find

c) sed

d) awk

๐Ÿ’ก
sed

14. How do you terminate a running process in Linux?

a) ps

b) kill

c) shutdown

d) exit

๐Ÿ’ก
kill

15. What command is used to compress files into a tar archive in Linux?

a) gzip

b) tar

c) zip

d) compress

๐Ÿ’ก
tar

16. How do you set environment variables in Linux?

a) env

b) set

c) export

d) vars

๐Ÿ’ก
export

17. What command is used to display the last lines of a file in Linux?

a) tail

b) head

c) less

d) more

๐Ÿ’ก
tail

18. How do you check the disk usage of a file or directory in Linux?

a) ls

b) du

c) df

d) disk

๐Ÿ’ก
du

19. What command is used to change the ownership of a file or directory in Linux?

a) chmod

b) chown

c) chgrp

d) own

๐Ÿ’ก
chown

20. How do you schedule a recurring task in Linux?

a) cron

b) timer

c) alarm

d) task

๐Ÿ’ก
cron

To read more such Linux MCQ Questions see next Part-3

Thanks For Reading

10
Subscribe to my newsletter

Read articles from Ritul Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ritul Gupta
Ritul Gupta

Im looking for an opportunity to start a career in Cloud Technologies where I can enhance my knowledge and skills. Having knowledge and hands-on on Azure Cloud, AWS & Open Source tools - Docker, Kubernetes, Jenkins, Source Version Control, CI/CD Pipelines, and Script.