Day-4 Learning Linux Through McQ's
Ritul Gupta
2 min read
Table of contents
- 31. What command is used to view the contents of a compressed file without extracting it?
- 32. How do you add a user to a group in Linux?
- 33. What command is used to display real-time system resource usage in Linux?
- 34. How do you redirect the standard output of a command to a file in Linux?
- 35. What command is used to find and replace text in multiple files in Linux?
- 36. How do you check the available disk space on a Linux system?
- 37. What command is used to start a stopped or background process in Linux?
- 38. How do you set up a static IP address in Linux?
- 39. What command is used to display the manual pages for a specific command in Linux?
- 40. How do you find the process ID (PID) of a running program in Linux?
31. What command is used to view the contents of a compressed file without extracting it?
a) unzip
b) unrar
c) tar
d) zcat
๐ก
zcat
32. How do you add a user to a group in Linux?
a) addgroup
b) useradd
c) usermod
d) groupadd
๐ก
usermod
33. What command is used to display real-time system resource usage in Linux?
a) top
b) ps
c) free
d) vmstat
๐ก
top
34. How do you redirect the standard output of a command to a file in Linux?
a) >
b) |
c) <<
d) <
๐ก
>
35. What command is used to find and replace text in multiple files in Linux?
a) grep
b) find
c) sed
d) awk
๐ก
sed
36. How do you check the available disk space on a Linux system?
a) df
b) du
c) diskutil
d) fspace
๐ก
df
37. What command is used to start a stopped or background process in Linux?
a) bg
b) stop
c) continue
d) fg
๐ก
fg
38. How do you set up a static IP address in Linux?
a) ifup
b) dhcpd
c) ifconfig
d) ip addr
๐ก
IP addr
39. What command is used to display the manual pages for a specific command in Linux?
a) info
b) man
c) help
d) doc
๐ก
man
40. How do you find the process ID (PID) of a running program in Linux?
a) pid
b) ps -a
c) pgrep
d) top
๐ก
pgrep
To read more such Linux MCQ Questions see next Part-5
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.