Table of contents
- 11. Which command is used to display the manual pages for a specific command in Linux?
- 12. How do you create an empty file in Linux?
- 13. What command is used to find and replace text in a file in Linux?
- 14. How do you terminate a running process in Linux?
- 15. What command is used to compress files into a tar archive in Linux?
- 16. How do you set environment variables in Linux?
- 17. What command is used to display the last lines of a file in Linux?
- 18. How do you check the disk usage of a file or directory in Linux?
- 19. What command is used to change the ownership of a file or directory in Linux?
- 20. How do you schedule a recurring task in Linux?
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
ย