Developer tools & deployment quiz

Linux Command Line Quiz for Data Science and Bioinformatics

Test your command line skills: navigating the filesystem, working with files, grep and find, pipes and redirection, permissions, processes, packages and conda, compression, ssh and basic shell scripts.

✅ Free · no login60 questions⏱ Timer📝 Explanations🖨 Mark sheet & PDFBeginner to intermediate
Linux Command Line Quiz: free online quiz with timer and mark sheet by Codanics
Loading…

Linux Command Line Quiz

60 questions · 8 topics · timer · instant explanations · printable mark sheet.

  • Questions60 in the bank, 10–30 per attempt
  • Levels20 easy · 24 medium · 16 hard
  • TimeAbout 5–20 minutes
  • PriceFree, no login needed
  • Made byDr. Aammar Tufail, Codanics
  • Updated18 November 2026

In short: the Linux Command Line Quiz is a free online multiple-choice quiz by Codanics with 60 questions on filesystem and navigation; files and directories; viewing and searching text; pipes and redirection; permissions and processes; environments and packages; compression and remote work; and shell scripting basics. You choose the number of questions and the difficulty, answer against a timer, see an explanation after every answer and finish with a printable mark sheet.

🚀 Follow Codanics for more free quizzes and lessonsNew quizzes, free lessons, scholarships and PhD positions, straight to your phone.

What the Linux Command Line Quiz covers

Bioinformatics pipelines, cloud servers and HPC clusters all run on Linux, and most of the work happens in a terminal. A few commands, combined with pipes, can replace hours of manual work.

This quiz follows the Codanics Linux for Data Science and Bioinformatics series. Command questions ask what a command does or prints, as you would see in a real terminal.

  • Filesystem and navigation 7 questions
  • Files and directories 7 questions
  • Viewing and searching text 8 questions
  • Pipes and redirection 9 questions
  • Permissions and processes 9 questions
  • Environments and packages 6 questions
  • Compression and remote work 6 questions
  • Shell scripting basics 8 questions

Who it is for: Bioinformatics and data science students, researchers working on servers or HPC clusters, and anyone starting with Linux.

How the quiz works

  1. Type your name if you want it printed on the mark sheet (optional; it never leaves your browser).
  2. Choose 10, 20 or 30 questions, a difficulty (Easy, Mixed or Hard) and the timer: Standard, Relaxed or none.
  3. Answer each question before the timer runs out. Press A–D or 1–4 on a keyboard, or tap an option on your phone.
  4. Read the explanation after every answer, then press Next.
  5. At the end, get your score, grade, topic-wise breakdown and a full answer review. Print it or save it as a PDF.
  6. Retake the quiz for a fresh random set, or practise only the topics you found hard.

Free video lessons from Codanics

Score lower than you hoped? These free lessons from the Codanics YouTube channel cover the same topics, explained step by step.

▶ Full playlist: Linux for data science and bioinformatics
Free on the Codanics YouTube channel, taught in Urdu/Hindi.

Sample questions with answers

Here are 8 questions from the bank, with answers and explanations. The quiz above draws from all 60.

1. Which command prints the full path of the directory you are currently in?
  1. cd
  2. ls
  3. pwd
  4. whoami

Answer: C. pwd
pwd stands for 'print working directory' and shows the absolute path of your current location. whoami prints your username, not your location.

2. Which command creates an empty file called notes.txt, or updates its timestamp if it already exists?
  1. cat notes.txt
  2. new notes.txt
  3. mkdir notes.txt
  4. touch notes.txt

Answer: D. touch notes.txt
touch creates an empty file if it does not exist and otherwise just updates its modification time. mkdir creates directories, not files.

3. Which command shows only the first 10 lines of a large file such as genes.tsv?
  1. tail genes.tsv
  2. cat genes.tsv
  3. head genes.tsv
  4. wc genes.tsv

Answer: C. head genes.tsv
head prints the first 10 lines by default (use -n to change the number). tail shows the last lines, and cat prints the whole file, which is slow for big files.

4. What does the pipe symbol | do in a command such as ls | wc -l?
  1. Saves the output of ls into a file called wc
  2. Runs ls and wc independently at the same time
  3. Runs wc only if the ls command succeeds
  4. Feeds the output of ls into wc as its input

Answer: D. Feeds the output of ls into wc as its input
A pipe connects stdout of the left command to stdin of the right command, so ls | wc -l counts the entries ls prints. Running only on success is what && does.

5. In the permission string -rwxr-xr–, what permissions does the group have?
  1. Read, write and execute
  2. Read only
  3. Write and execute
  4. Read and execute

Answer: D. Read and execute
After the first file-type character, the string is three triplets: owner (rwx), group (r-x) and others (r–). So the group can read and execute but not write.

6. What is the PATH environment variable used for?
  1. The folder where downloaded files are saved
  2. The directories searched when you type a command
  3. The location of your own home directory
  4. The full path of your current working directory

Answer: B. The directories searched when you type a command
When you type python, the shell looks through each directory in PATH, in order, and runs the first matching program. The current directory is in $PWD and home is in $HOME.

7. Which command downloads a file from a URL and saves it in the current directory?
  1. ssh https://example.org/data.csv
  2. wget https://example.org/data.csv
  3. cat https://example.org/data.csv
  4. cd https://example.org/data.csv

Answer: B. wget https://example.org/data.csv
wget fetches a URL and saves it with its remote file name. curl does the same job but prints to the screen unless you add -O or -o file.

8. What is the purpose of the first line #!/bin/bash in a script?
  1. It makes the file executable for all users
  2. It names the interpreter that runs the script
  3. It is a comment that the system always ignores
  4. It imports the bash standard library

Answer: B. It names the interpreter that runs the script
This line, called the shebang, tells the kernel to run the file with /bin/bash when you execute it as ./script.sh. You still need chmod +x to make it executable.

Free guides and blogs to study

Free tools for your studies and research

Codanics also has 160+ free online tools for students and researchers: statistics calculators, meta-analysis, PDF and writing tools. They run in your browser, with no login.

Browse all free tools →

Frequently asked questions

Is the Linux Command Line Quiz free?

Yes. The Linux Command Line Quiz is completely free, with no sign-up, no login and no limit on attempts.

How many questions are in the Linux Command Line Quiz?

The question bank has 60 multiple-choice questions (20 easy, 24 medium and 16 hard) across 8 topics. Each attempt draws 10, 20 or 30 of them at random, so every attempt is different.

How does the timer work?

Each question has its own countdown: about 25 seconds for easy, 40 for medium and 55 for hard questions, plus 15 seconds when there is code to read. Choose Relaxed to double the time or switch the timer off to study at your own pace. Unanswered questions count as skipped.

Can I get a certificate or mark sheet?

Yes. When you finish, you get a mark sheet with your name, score, grade, time, topic-wise performance and every answer explained. Use Print or save as PDF to keep it. It is a self-assessment result, not an official certificate.

Are the answers and explanations correct?

Every question was written and reviewed for one clearly correct answer, and code questions were checked by running the code. If you think an answer is wrong, tell us on the Codanics WhatsApp channel or in the YouTube comments and we will fix it.

Does the Linux quiz use Ubuntu or another distribution?

The commands are standard across Ubuntu, Linux Mint, Debian and most servers. Questions avoid options that differ between distributions.

Why should bioinformaticians learn Linux?

Most bioinformatics tools run only on Linux, sequencing files are too large for Excel, and analyses are usually run on Linux servers or clusters.

Is my data stored anywhere?

No. The quiz runs entirely in your browser. Your name, answers and score are not uploaded. Your best score and settings are remembered only in this browser so you can track your progress.

More free quizzes

See all Codanics quizzes → · Courses · Free tools · Blog

Follow Codanics

Created by Dr. Muhammad Aammar Tufail, Codanics. Published 18 November 2026, last updated 18 November 2026. Found a mistake or want a quiz on another topic? Tell us on the WhatsApp channel or contact us.