Advertisement

Post-Installation Setup in Linux Quiz : 4

Post-Installation Setup in Linux Quiz : 4

Question 1:
Which command in Linux is used to reboot the system?
A) shutdown -r
B) reboot
C) systemctl reboot
D) All of the above
Answer: D) All of the above


Question 2:
Which command is used to add a user with a home directory in Linux?
A) useradd -m
B) adduser
C) usermod -d
D) newuser
Answer: A) useradd -m


Question 3:
What does the df command do in Linux?
A) Displays disk usage information
B) Formats a disk
C) Deletes files
D) Finds files
Answer: A) Displays disk usage information


Question 4:
Which command can be used to download a file from the internet in Linux?
A) scp
B) curl
C) mv
D) rsync
Answer: B) curl


Question 5:
Which of the following commands is used to display a user's group memberships?
A) whoami
B) groups
C) id
D) users
Answer: B) groups


Question 6:
Which command in Linux is used to display running processes?
A) ps
B) top
C) htop
D) All of the above
Answer: D) All of the above


Question 7:
What does the chmod 644 command do?
A) Sets read and write permissions for the owner, and read-only permissions for others
B) Sets execute permissions for the owner
C) Sets write permissions for everyone
D) Sets read-only permissions for everyone
Answer: A) Sets read and write permissions for the owner, and read-only permissions for others


Question 8:
Which file contains the configuration for user login shells in Linux?
A) /etc/passwd
B) /etc/profile
C) /etc/bashrc
D) /etc/shells
Answer: A) /etc/passwd


Question 9:
What is the command to remove a software package in a Debian-based Linux distribution?
A) yum remove
B) apt-get remove
C) pacman -R
D) dnf remove
Answer: B) apt-get remove


Question 10:
Which command is used to list the users currently logged into a Linux system?
A) who
B) users
C) w
D) All of the above
Answer: D) All of the above

Post a Comment

0 Comments