Day-5 Learning Linux Through McQ's

Day-5 Learning Linux Through McQ's

Part-5

ยท

2 min read

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

ย