Advertisement

Post-Installation Setup in Linux Quiz : 6

Post-Installation Setup in Linux Quiz : 6

Question 1:
Which command would you use to list all available software packages in a Debian-based system?
A) apt-get list
B) apt-cache search
C) yum search
D) dpkg-query -l
Answer: B) apt-cache search


Question 2:
What is the main difference between the apt-get and apt commands?
A) apt-get is newer and more user-friendly
B) apt-get is older and more script-friendly
C) apt is only used for upgrades
D) apt is deprecated
Answer: B) apt-get is older and more script-friendly


Question 3:
Which of the following files is modified to change the default editor in Linux?
A) /etc/editor.conf
B) ~/.bashrc
C) /etc/environment
D) ~/.profile
Answer: B) ~/.bashrc


Question 4:
What is the ufw command used for in Linux?
A) To update the file system
B) To manage the firewall
C) To uninstall software
D) To find user files
Answer: B) To manage the firewall


Question 5:
Which command installs the latest version of all installed packages in an Arch-based system?
A) pacman -Syu
B) pacman -Sy
C) pacman -Su
D) pacman -Rns
Answer: A) pacman -Syu


Question 6:
What is the purpose of the yum-config-manager command?
A) To list installed packages
B) To manage and add repositories
C) To uninstall packages
D) To upgrade the kernel
Answer: B) To manage and add repositories


Question 7:
Which file is used to configure the default environment variables for all users in Linux?
A) /etc/environment
B) /etc/profile
C) /etc/bash.bashrc
D) ~/.bashrc
Answer: A) /etc/environment


Question 8:
Which command in Linux can be used to change a user’s home directory?
A) usermod -d
B) useradd -d
C) passwd -d
D) chhome
Answer: A) usermod -d


Question 9:
What does the apt-mark hold command do?
A) Prevents a package from being updated
B) Marks a package as installed
C) Holds back a package for future updates
D) Removes a package from the system
Answer: A) Prevents a package from being updated


Question 10:
Which command can be used to change the hostname of a Linux system?
A) hostnamectl set-hostname
B) hostname -s
C) hostctl
D) hostmod
Answer: A) hostnamectl set-hostname

Post a Comment

0 Comments