Post-Installation Setup in Linux Quiz : 7
Question 1:
What is the purpose of the apt-key
command?
A) To manage repository signing keys
B) To list available software
C) To update the system
D) To remove unused packages
Answer: A) To manage repository signing keys
Question 2:
Which command is used to list all available groups in a Linux system?
A) cat /etc/group
B) groups -l
C) listgroups
D) groups
Answer: A) cat /etc/group
Question 3:
What is the purpose of the /etc/skel
directory in Linux?
A) To store system logs
B) To provide default files for new user home directories
C) To configure network settings
D) To list mounted filesystems
Answer: B) To provide default files for new user home directories
Question 4:
Which command is used to verify the integrity of installed packages on a Fedora system?
A) yum check
B) dnf verify
C) rpm -V
D) rpm --checksig
Answer: C) rpm -V
Question 5:
What does the passwd -e
command do?
A) Changes the user’s password
B) Expires the user’s password
C) Disables the user account
D) Unlocks the user’s password
Answer: B) Expires the user’s password
Question 6:
Which command is used to install a .deb package on a Debian-based system?
A) apt install
B) dpkg -i
C) rpm -i
D) yum install
Answer: B) dpkg -i
Question 7:
What is the purpose of the update-grub
command?
A) To update the GRUB bootloader configuration
B) To upgrade the Linux kernel
C) To clean the package cache
D) To manage system services
Answer: A) To update the GRUB bootloader configuration
Question 8:
Which of the following commands can be used to manage services in a systemd-based Linux system?
A) service
B) systemctl
C) chkconfig
D) init
Answer: B) systemctl
Question 9:
Which command is used to change the user’s primary group in Linux?
A) usermod -g
B) groupmod
C) usergroup -g
D) groupadd
Answer: A) usermod -g
Question 10:
Which command is used to install additional software from the Ubuntu Software Center via the command line?
A) snap install
B) apt-get install
C) software-install
D) ubuntu-center
Answer: A) snap install
0 Comments