Table of contents
- 51. How do you find all files containing a specific word or phrase in Linux?
- 52. What command is used to display the process tree in Linux?
- 53. How do you enable and start a system service in Linux?
- 55. How do you find the size of a directory in Linux?
- 56. What command is used to view and manipulate the contents of a text file in Linux?
- 57. How do you create a symbolic link to a file or directory in Linux?
- 58. What command is used to view the system logs in Linux?
- 59. How do you set up a network interface with a static IP address in Linux?
- 60. What command is used to schedule tasks to run at specific times in Linux?
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
57. How do you create a symbolic link to a file or directory in Linux?
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
ย