Skip to main content

Command Palette

Search for a command to run...

Day-6 Learning Linux Through McQ's

Part-6

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

Packaged App Development Associate @ Accenture | Infrastructure Engineering | Exploring Cloud & Security

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