Post-Installation Setup in Linux Quiz : 10
Question 1:
Which file stores the list of installed packages in Debian-based systems?
A) /var/lib/dpkg/status
B) /etc/apt/sources.list
C) /var/log/dpkg.log
D) /etc/debian_version
Answer: A) /var/lib/dpkg/status
Question 2:
What does the dpkg-reconfigure
command do?
A) Reconfigures an installed package
B) Updates the package database
C) Removes a package
D) Installs a package
Answer: A) Reconfigures an installed package
Question 3:
Which of the following commands in Linux is used to archive files?
A) tar
B) gzip
C) bzip2
D) zip
Answer: A) tar
Question 4:
Which command is used to show memory usage in Linux?
A) free -h
B) memstat
C) ps -aux
D) df -m
Answer: A) free -h
Question 5:
Which of the following commands is used to edit the GRUB configuration file?
A) nano /etc/default/grub
B) grub-install
C) grub-update
D) grub-edit
Answer: A) nano /etc/default/grub
Question 6:
Which command in Linux is used to display the amount of free disk space on each mounted filesystem?
A) df
B) du
C) lsblk
D) mount
Answer: A) df
Question 7:
What is the purpose of the locate
command in Linux?
A) To find files and directories by name
B) To locate network interfaces
C) To locate system services
D) To locate processes
Answer: A) To find files and directories by name
Question 8:
Which command is used to enable a swap partition in Linux?
A) swapon
B) swapfile
C) fallocate
D) mkfs.swap
Answer: A) swapon
Question 9:
Which file contains the list of repositories used by apt
in Debian-based systems?
A) /etc/apt/sources.list
B) /var/lib/apt/list
C) /etc/apt/apt.conf
D) /etc/apt/preferences
Answer: A) /etc/apt/sources.list
Question 10:
Which command is used to display the current user in a Linux terminal?
A) whoami
B) users
C) who
D) id -u
Answer: A) whoami
0 Comments