Advertisement

Post-Installation Setup in Linux Quiz : 5

Post-Installation Setup in Linux Quiz : 5


Question 1:
Which of the following is NOT a package manager used in Linux?
A) apt
B) yum
C) dnf
D) exe
Answer: D) exe


Question 2:
What is the purpose of the passwd command in Linux?
A) To create a new user
B) To update the system
C) To change a user’s password
D) To list all users
Answer: C) To change a user’s password


Question 3:
What is the purpose of the ln command in Linux?
A) To list files and directories
B) To create links between files
C) To display the last lines of a file
D) To remove files
Answer: B) To create links between files


Question 4:
Which command is used to remove a software package along with its configuration files in Debian-based systems?
A) apt-get remove
B) apt-get purge
C) yum remove
D) dnf erase
Answer: B) apt-get purge


Question 5:
Which directory contains user-specific configuration files in Linux?
A) /etc
B) /usr/local
C) /var
D) ~/.config
Answer: D) ~/.config


Question 6:
What is the purpose of the tar command in Linux?
A) To compress files
B) To archive files
C) To extract files
D) All of the above
Answer: D) All of the above


Question 7:
Which of the following commands can be used to schedule tasks in Linux?
A) cron
B) systemd
C) at
D) All of the above
Answer: D) All of the above


Question 8:
Which command is used to display the contents of a file in Linux?
A) ls
B) cat
C) mv
D) chmod
Answer: B) cat


Question 9:
Which command in Linux is used to terminate a process by its process ID?
A) kill
B) stop
C) terminate
D) end
Answer: A) kill


Question 10:
Which command is used to create a compressed archive in Linux?
A) gzip
B) tar -czf
C) zip
D) bzip2
Answer: B) tar -czf

Post a Comment

0 Comments