Skip to main content

Command Palette

Search for a command to run...

Day-5 Learning Linux Through McQ's

Part-5

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

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

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