Linux Online Test
Practice your skills and earn a certificate of achievement when you score in the top 25%.Take a Practice Test
Test candidates with real-world problems and interview the best ones.Sign Up to Offer this Test
About the test
The Linux online test assesses candidates' knowledge of the Linux operating system and its programming using the Bash scripting language.
It's ideal for pre-employment screening. A good backend developer or Linux system administrator should be familiar with Linux as it's the most widely used server operating system.
This online test requires candidates to answer multiple-choice questions about the Linux kernel and its command line utilities.
Sample public questions
The weather.sh utility in the current working directory provides weather forecasts in your area.
When called, it outputs a 4-day forecast in the format "day: weather" separated by line breaks.
Write a bash script that outputs the number of days with a "Thunderstorm" forecast (case-sensitive).
See the example case for more details.
The output of crontab -l contains the following job definitions:
MAILTOemail@example.com,firstname.lastname@example.org 0 0,12 1 */4 * df -h / @hourly du -h / >> /var/log/disk_usage 0 6 1-12 * * /usr/bin/testdome_candidates
Select the statements about the job definitions and schedules that are correct.
You ran a script that wrongly put its output image files in the 'work' directory inside the current directory.
Create a bash script that removes all the files in the 'work' directory that start with either 'out_0' or 'out_1' and end with '.png'.
For example, if the 'work' directory contains the following files:
After running your script, both out.png and out_0.pdf should exist in the 'work' directory but out_0a.png and out_1.png should no longer exist.
See the example case for more details.
Your company has a Linux computer with a directory named debug_programs intended for developers only.
The following needs to be done:
- debug_programs should only be accessible to users in the developers group.
- Alex should be removed from the developers group because he left the company.
- Confirm that the new developers Cynthia, Emma, and Justin belong to the developers group.
What should be done to satisfy the requirements above?
You are the sysadmin of a Linux server that uses local passwords for authentication.
Two members of the team were assigned to work on the server: Ashley, who needs to change her username, and Peter, who already has a user account but forgot his password.
What steps should you do so Ashley and Peter are able to login to the server using their new credentials?
Select the statements about the output of the following script that are correct.
$1 if [ $value -eq 100 ] then echo "value is eq 100" elif [ $value -gt 100 ] then echo "value is gt 100" else case $value in [1-3]*) echo "value is between 1 and 39 (inclusive)" ;; [4-5]*) echo "value is between 40 and 59 (inclusive)" ;; 9[1-8]) echo "value is between 91 and 98 (inclusive)" ;; 99) echo "value is $value" ;; *) echo "value is unknown" ;; esac fivalue=
The PATH variable is set in /etc/environment:
And updated in .bash_profile:
Select the statements are correct.
For jobseekers: get certified
Earn a free certificate by achieving top 25% on the Linux test with public questions.Take a Certification Test
Sample silver certificate
Sunshine CaprioJava and SQL TestDome
For companies: premium questions
Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.
22 more premium Linux questions
Permissions, Top, Export, Mail, Rename, Sed, Hidden File, Authorized Keys, Remote Server, Testing for Crashes, New Package Manager, Server Crash, Wildlife Photography Page, Code Building Server, Compiler Executable, Vulnerable Function, Spell Checker, Time-Sheet Software, Virus Scanner, Problematic Executables, Generate Reports, Test New Computers.
Skills and topics tested
- Linux Administration
- Environmental Variable
- Disk Partitioning
- File System
- Filesystem Hierarchy Standard
- Unix Pipelines
- Symbolic Links
- Conditional Statements
For job roles
- Back-End Developer
- Bash Developer
- Linux System Administrator
- Network Administrator
Sample candidate report
What others say
Simple, straight-forward technical testing
TestDome is simple, provides a reasonable (though not extensive) battery of tests to choose from, and doesn't take the candidate an inordinate amount of time. It also simulates working pressure with the time limits.
Jan Opperman, Grindrod Bank
Solve all your skill testing needs
150+ Pre-made tests
From web development and database administration to project management and customer support. See all pre-made tests.
Mix questions for different skills or even custom questions in one test. See an example.
How TestDome works
Choose a pre-made test
or create a custom test
Invite candidates via
email, URL, or your ATS
a test remotely
Sort candidates and
get individual reports