Table of contents
- 41. How do you create a compressed tar archive in Linux?
- 42. What command is used to change the ownership and group of a file or directory in Linux?
- 43. How do you monitor system performance in real-time using the command line in Linux?
- 44. What command is used to create a backup of a file or directory in Linux?
- 45. How do you set up a firewall in Linux?
- 46. What command is used to display the contents of a compressed file in Linux?
- 47. How do you monitor disk usage and free space in Linux?
- 48. What command is used to display active network connections in Linux?
- 49. How do you create a new user account in Linux?
- 50. What command is used to view and modify environment variables in Linux?
41. How do you create a compressed tar archive in Linux?
a) gzip
b) zip
c) tar
d) compress
๐ก
tar
42. What command is used to change the ownership and group of a file or directory in Linux?
a) chown
b) chmod
c) chgrp
d) own
๐ก
chown
43. How do you monitor system performance in real-time using the command line in Linux?
a) top
b) vmstat
c) sar
d) perf
๐ก
top
44. What command is used to create a backup of a file or directory in Linux?
a) cp
b) backup
c) tar
d) zip
๐ก
cp
45. How do you set up a firewall in Linux?
a) iptables
b) ufw
c) firewall-cmd
d) firewalls
๐ก
iptables
46. What command is used to display the contents of a compressed file in Linux?
a) zcat
b) gunzip
c) unzip
d) tar
๐ก
zcat
47. How do you monitor disk usage and free space in Linux?
a) df
b) du
c) ls
d) disk
๐ก
df
48. What command is used to display active network connections in Linux?
a) netstat
b) ifconfig
c) ip
d) ping
๐ก
netstat
49. How do you create a new user account in Linux?
a) useradd
b) passwd
c) usermod
d) adduser
๐ก
useradd
50. What command is used to view and modify environment variables in Linux?
a) env
b) set
c) export
d) source
๐ก
export
To read more such Linux MCQ Questions see next Part-6
Thanks For Reading
ย