Day-2 Learning Linux Through McQ's
Part-2

Packaged App Development Associate @ Accenture | Infrastructure Engineering | Exploring Cloud & Security
11. Which command is used to display the manual pages for a specific command in Linux?
a) info
b) man
c) help
d) doc
12. How do you create an empty file in Linux?
a) touch
b) cp
c) mkdir
d) rm
13. What command is used to find and replace text in a file in Linux?
a) grep
b) find
c) sed
d) awk
14. How do you terminate a running process in Linux?
a) ps
b) kill
c) shutdown
d) exit
15. What command is used to compress files into a tar archive in Linux?
a) gzip
b) tar
c) zip
d) compress
16. How do you set environment variables in Linux?
a) env
b) set
c) export
d) vars
17. What command is used to display the last lines of a file in Linux?
a) tail
b) head
c) less
d) more
18. How do you check the disk usage of a file or directory in Linux?
a) ls
b) du
c) df
d) disk
19. What command is used to change the ownership of a file or directory in Linux?
a) chmod
b) chown
c) chgrp
d) own
20. How do you schedule a recurring task in Linux?
a) cron
b) timer
c) alarm
d) task
To read more such Linux MCQ Questions see next Part-3
Thanks For Reading




