Advertisement

Post-Installation Setup in Linux Quiz : 9

Post-Installation Setup in Linux Quiz : 9

Question 1:
Which command is used to search for a specific package in a Fedora system?
A) dnf search
B) yum find
C) rpm search
D) apt-cache search
Answer: A) dnf search


Question 2:
What is the purpose of the sudo command in Linux?
A) To switch to the superuser
B) To execute commands with superuser privileges
C) To shut down the system
D) To create a new user
Answer: B) To execute commands with superuser privileges


Question 3:
What is the default location for system-wide environment variables in Linux?
A) /etc/environment
B) ~/.bashrc
C) /etc/bash.bashrc
D) /etc/skel
Answer: A) /etc/environment


Question 4:
Which command is used to change a user's password in Linux?
A) passwd
B) chpasswd
C) usermod
D) userpasswd
Answer: A) passwd


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


Question 6:
Which command is used to display the last 100 lines of a file in Linux?
A) tail -n 100
B) head -n 100
C) less +100
D) more -n 100
Answer: A) tail -n 100


Question 7:
What does the sudoers file control in Linux?
A) Network interfaces
B) User permissions for executing commands with superuser privileges
C) Mounted filesystems
D) Installed packages
Answer: B) User permissions for executing commands with superuser privileges


Question 8:
Which of the following commands is used to copy files and directories in Linux?
A) cp
B) mv
C) rm
D) copy
Answer: A) cp


Question 9:
What does the du command do in Linux?
A) Shows disk usage of files and directories
B) Deletes files
C) Displays user information
D) Updates the system
Answer: A) Shows disk usage of files and directories


Question 10:
Which command can be used to list the open network connections on a Linux system?
A) netstat
B) ifconfig
C) lsof -i
D) ip addr
Answer: C) lsof -i

Post a Comment

0 Comments