Home > Linux > Quizzes > Linux Test
Linux Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 19% Most missed: “ifconfig has been deprecated. What command is now recommended for changing IP ad…”

Linux MCQs For LinkedIn Skill Assessments.

Linux Test
Time left 00:00
25 Questions

1. What issue might a user have when they mount a filesystem by partition path such as /dev/sdal in the /etc/fstab file?
2. What is the /etc/hosts file used for?
3. What is the difference between these two lines of code?
shell
echo 'data' | tee -a file.txt
echo 'data' >> file.txt
4. Which choice is a Network Manager tool used to configure network connections from the GUI?
5. Which kernel module do you need to load to use interface bonding?
6. What is the command to create an associative array in Bash?
7. To permanently add NAT to the default zone using firewalld, you would use which command string?
8. Which option would you choose to force grep to use a basic regular expression (BRE)?
9. What is the key difference between a redirect (>) and piping to the tee command?
10. What is a major advantage of using Logical Volume Management (LVM)?
11. When configuring a Samba share, how would the engineering group be specified in the smb.conf?
12. What is the difference between using '=' and '==' in a BASH double square bracket 'if' conditional?

if [[ $FILE == $GLOB ]] ;then
13. Most commands that support SELinux use which option to display SELinux security context?
14. Which command in Bash executes the last line in the shell history that starts with ls?
15. What would this sed command do?
bash
sed -E 's/[a-Z]{4}/(&)/' textfile.txt
16. What command would you use to resize an LVM volume group to include an additional physical volume?
17. When installing a downloaded package on the RedHat-based distribution manual using RPM, what may you have to do first?
18. Which command will tell you how long a system has been running?
19. What is the difference the '==' and '=~' comparison operators when used in BASH double square bracket 'if' conditionals?
20. To search from the current cursor position up to the beginning of the file using VIM, type \_ and then the search criteria.
21. What would this locate command show?
bash
locate --regexp '^/usr.*pixmaps.*jpg$'
22. What would happen if you have a script file named script that takes a long time to complete, and you type 'nohup ./script &' in the command line?
23. Which statement about default ACLs is true?
24. The object that 'systemd' uses to manage services is called a \_ file.
25. In the Bash shell, what is the difference between piping into | and piping into |&?