Advertisement

Post-Installation Setup in Linux Quiz : 1

Post-Installation Setup in Linux Quiz : 1

Question 1:
Which command is used to update the package list in a Debian-based Linux distribution?
A) yum update
B) apt update
C) dnf update
D) zypper update
Answer: B) apt update


Question 2:
What is the purpose of the sudo command in Linux?
A) To switch to the root user
B) To run commands with superuser privileges
C) To list all installed packages
D) To create a new user
Answer: B) To run commands with superuser privileges


Question 3:
Which command is used to add a new user in Linux?
A) adduser
B) useradd
C) newuser
D) createuser
Answer: B) useradd


Question 4:
What does the apt-get upgrade command do?
A) Removes outdated packages
B) Upgrades all installed packages to the newest available versions
C) Installs new software
D) Cleans up the package cache
Answer: B) Upgrades all installed packages to the newest available versions


Question 5:
Which file in Linux contains the list of repositories for a Debian-based system?
A) /etc/apt/sources.list
B) /etc/yum.repos.d
C) /etc/pacman.conf
D) /etc/dnf/dnf.conf
Answer: A) /etc/apt/sources.list


Question 6:
Which command in Linux shows a list of available updates for installed packages?
A) yum check-update
B) apt list --upgradable
C) dnf check-update
D) zypper list-updates
Answer: B) apt list --upgradable


Question 7:
What is the purpose of the /etc/shadow file in Linux?
A) To store system logs
B) To store encrypted user passwords
C) To configure network settings
D) To manage user groups
Answer: B) To store encrypted user passwords


Question 8:
Which command is used to install software packages on an Arch-based Linux distribution?
A) yum install
B) apt-get install
C) pacman -S
D) dnf install
Answer: C) pacman -S


Question 9:
What does the usermod -aG command do in Linux?
A) Changes the shell of a user
B) Adds a user to a group
C) Deletes a user
D) Changes the password of a user
Answer: B) Adds a user to a group


Question 10:
Which command is used to change the password of a user in Linux?
A) passwd
B) usermod
C) chpasswd
D) useradd
Answer: A) passwd

Post a Comment

0 Comments