Post-Installation Setup in Linux Quiz : 8
Question 1:
What is the purpose of the rsync
command in Linux?
A) To synchronize files and directories between two locations
B) To search for files
C) To compress files
D) To schedule tasks
Answer: A) To synchronize files and directories between two locations
Question 2:
Which file is modified to change the default login shell for a user in Linux?
A) /etc/passwd
B) /etc/shells
C) /etc/bashrc
D) /etc/shadow
Answer: A) /etc/passwd
Question 3:
Which command in Linux can be used to check the status of all services?
A) systemctl status --all
B) service --status-all
C) chkconfig --list
D) init status
Answer: B) service --status-all
Question 4:
What does the apt-cache showpkg
command do?
A) Displays detailed information about a package
B) Shows the list of installed packages
C) Removes a package
D) Lists available updates
Answer: A) Displays detailed information about a package
Question 5:
What is the purpose of the reboot
command in Linux?
A) To shut down the system
B) To restart the system
C) To start a service
D) To log out the user
Answer: B) To restart the system
Question 6:
Which of the following commands is used to check disk space usage in Linux?
A) df -h
B) du -s
C) lsblk
D) ls
Answer: A) df -h
Question 7:
Which file in Linux stores user-specific bash history?
A) ~/.bashrc
B) ~/.bash_history
C) ~/.profile
D) /etc/profile
Answer: B) ~/.bash_history
Question 8:
What does the alias
command do in Linux?
A) Lists available commands
B) Creates shortcuts for commands
C) Updates software packages
D) Displays network information
Answer: B) Creates shortcuts for commands
Question 9:
Which command is used to update the GRUB bootloader configuration on a Red Hat-based system?
A) grub2-mkconfig
B) update-grub
C) grub-install
D) grub-update
Answer: A) grub2-mkconfig
Question 10:
Which command in Linux can be used to change file ownership?
A) chown
B) chmod
C) useradd
D) grpmod
Answer: A) chown
0 Comments