Skip to main content

Command Palette

Search for a command to run...

Day-2 Learning Linux Through McQ's

Part-2

Updated
•2 min read
Day-2    Learning Linux Through McQ's
R

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

💡
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