Free Linux Command Line Practice Quiz

12 practical Linux Command Line questions with an explanation after every answer. No timer, no signup — about 8 minutes.

About the Linux Command Line skill quiz

This Linux Command Line quiz is a Practical fundamentals check. It covers navigation, permissions, pipes, text search, processes, disk usage, services, SSH, archives, and environment variables. The quiz has 12 questions, takes about 8 minutes, and a score around 8 out of 12 means you have a workable baseline.

The 12 questions on this page are built for terminal fluency screening. They focus on practical decisions you would make while building, debugging, querying, or operating real projects.

Related Linux Command Line Practice Questions

Sample Linux Command Line questions

Three examples from the 12-question quiz. Answers stay hidden until you reveal them.

Sample Question 1Remote Access

Which command logs into a remote host as user deploy?

Assh deploy@example.com
Bscp deploy@example.com
Csudo deploy@example.com
Dcurl deploy@example.com
Show answer
Answer: A — ssh deploy@example.com

ssh user@host starts a secure shell session on the remote machine. scp copies files over SSH.

Sample Question 2Archives

Which command extracts a gzip-compressed tar archive?

Atar -xzf file.tar.gz
Bzip -r file.tar.gz
Cgzip --list file.tar.gz
Dcat file.tar.gz
Show answer
Answer: A — tar -xzf file.tar.gz

tar -xzf extracts a .tar.gz archive: x means extract, z means gzip, and f names the file.

Sample Question 3Environment

Which command prints environment variables?

Aenv
Bvars --all
Cechoenv
Dprint --environment
Show answer
Answer: A — env

env prints the current process environment. echo $NAME prints one variable, and export NAME=value sets a variable for child processes.

Try another tech quiz

Compare your fundamentals across Git, AWS, Linux, SQL, Python, and Docker.

See all free quizzes