Day-3 Learning Linux Through McQ's

Ritul GuptaRitul Gupta
2 min read

21. What command is used to display the current date and time in Linux?

a) time

b) date

c) clock

d) now

๐Ÿ’ก
date

22. How do you recursively copy a directory and its contents in Linux?

a) mv

b) cp

c) mkdir

d) rm

๐Ÿ’ก
cp

23. What command is used to search for a specific string within files in Linux?

a) grep

b) find

c) locate

d) search

๐Ÿ’ก
grep

24. How do you create a symbolic link in Linux?

a) symlink

b) link

c) ln

d) mklink

๐Ÿ’ก
ln

25. What command is used to display the running processes in Linux?

a) top

b) ps

c) status

d) proc

๐Ÿ’ก
ps

26. How do you archive and compress files using tar and gzip in a single command?

a) zip

b) gzip

c) tar.gz

d) tar -zcvf

๐Ÿ’ก
tar -zcvf

27. What command is used to display the network configuration in Linux?

a) ifconfig

b) netstat

c) ipconfig

d) network

๐Ÿ’ก
ifconfig

28. How do you recursively delete a directory and its contents in Linux?

a) rmdir

b) rm

c) del

d) erase

๐Ÿ’ก
rm

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

a) chmod

b) chown

c) chgrp

d) perm

๐Ÿ’ก
chmod

30. How do you check the system hardware information in Linux?

a) sysinfo

b) lshw

c) hardware

d) hinfo

๐Ÿ’ก
lshw

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

Thanks For Reading

0
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.