Advertisement

Post-Installation Setup in Linux Quiz : 3

Post-Installation Setup in Linux Quiz : 3

Question 1:
Which command in Linux shows the last login time of users?
A) last
B) who
C) uptime
D) logname
Answer: A) last


Question 2:
Which command in Linux is used to change a user's shell?
A) usermod -s
B) chsh
C) passwd -s
D) shellmod
Answer: B) chsh


Question 3:
What does the apt-get dist-upgrade command do?
A) Removes outdated packages
B) Installs only security updates
C) Upgrades the system, intelligently handling dependencies
D) Upgrades the Linux kernel
Answer: C) Upgrades the system, intelligently handling dependencies


Question 4:
Which command is used to remove a user from a group in Linux?
A) groupdel
B) gpasswd -d
C) usermod -G
D) deluser
Answer: B) gpasswd -d


Question 5:
Which command is used to check the Linux kernel version?
A) uname -r
B) lsmod
C) version
D) kernel -v
Answer: A) uname -r


Question 6:
What is the purpose of the /etc/fstab file in Linux?
A) To configure network interfaces
B) To define how disk partitions and other devices are mounted
C) To store user account information
D) To list installed packages
Answer: B) To define how disk partitions and other devices are mounted


Question 7:
Which command in Linux is used to lock a user account?
A) passwd -l
B) usermod -L
C) chage -l
D) lockuser
Answer: B) usermod -L


Question 8:
What is the purpose of the gpasswd command in Linux?
A) To change file permissions
B) To add a user to a group
C) To manage group passwords
D) To change the owner of a file
Answer: C) To manage group passwords


Question 9:
Which command is used to clean the package cache in a Debian-based system?
A) apt-get clean
B) yum clean
C) dnf clean all
D) pacman -Scc
Answer: A) apt-get clean


Question 10:
What does the chmod 755 command do?
A) Changes the owner of a file
B) Gives the owner read, write, and execute permissions, and others read and execute permissions
C) Deletes a file
D) Moves a file to another directory
Answer: B) Gives the owner read, write, and execute permissions, and others read and execute permissions

Post a Comment

0 Comments