Day-6 Learning Linux Through McQ's

Day-6 Learning Linux Through McQ's

Part-6

ยท

2 min read

51. How do you find all files containing a specific word or phrase in Linux?

a) grep

b) find

c) search

d) locate

๐Ÿ’ก
grep and find

52. What command is used to display the process tree in Linux?

a) ps

b) pstree

c) top

d) tree

๐Ÿ’ก
pstree

53. How do you enable and start a system service in Linux?

a) systemctl enable

b) service start

c) start service

d) initctl enable

๐Ÿ’ก
systemctl enable

54. What command is used to monitor and manage network interfaces in Linux?

a) ifconfig

b) ipconfig

c) netstat

d) ip

๐Ÿ’ก
ip

55. How do you find the size of a directory in Linux?

a) ls -l

b) du -sh

c) df -h

d) ls -lh

๐Ÿ’ก
du -sh

56. What command is used to view and manipulate the contents of a text file in Linux?

a) nano

b) vim

c) cat

d) less

๐Ÿ’ก
nano, vim, cat, less

a) symlink

b) link

c) ln

d) mklink

๐Ÿ’ก
ln

58. What command is used to view the system logs in Linux?

a) syslog

b) logwatch

c) dmesg

d) journalctl

๐Ÿ’ก
journalctl

59. How do you set up a network interface with a static IP address in Linux?

a) ifup

b) dhclient

c) ifconfig

d) ip addr

๐Ÿ’ก
c) ifconfig d) ip addr

60. What command is used to schedule tasks to run at specific times in Linux?

a) crontab

b) at

c) cron

d) timer

๐Ÿ’ก
cron

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

Thanks For Reading

ย