Faster Learning Tutorials

~/ home  / technology  / linux essentials  / quiz 2a

Linux Quiz 2a covering ln, rm, apropos, cut, paste, and...

This is the first quiz to focus on commands 21 to 40 from Linux Essentials. Try it out on video too for a different experience.


Below is a link to the quiz in video format and all 25 questions in text. The video runs for 6 1/2 minute and covers the same questions but is set to mellow music. Using different modes of learning will help you pass your linux test or certification. It's free and many say it's like a game. So good luck and enjoy.

Video and quiz by Paul Alan Davis, CFA, December 17, 2016
Updated: August 1, 2017

Linux Command Line Quiz | 2a


Linux Command Line Quiz for Beginners | 2a (6:28)

Videos can also be accessed from the YouTube Playlist.

The Quiz

Click the box to reveal the answer. It's that easy.

You may need to upgrade from Internet Explorer to use this functionality.


How do you make a symbolic link to file1.txt called f1?

$ ln -s file1.txt f1


How do you count the number of lines in file1.txt?

$ wc -l file1.txt


How do you sort the .bash_history file and print to the screen?

$ sort .bash_history


How do you count the number of ls commands in your .bash_history?

$ grep -c "ls" .bash_history


How do you create a directory called files?

$ mkdir files


How do you show programs with only grep in the title?

$ apropos -e grep


How do you rename file1.txt as file2.txt?

$ mv file1.txt file2.txt


How do you rename directory docs1 to docs2 with a warning?

$ mv -i docs1 docs2


How do you find help on the sed command?

$ sed --help


How do you count the occurence of lines in sorted file1.txt?

$ uniq -c file1.txt


How do you paste rows from file1.txt and file2.txt together?

$ paste file1.txt file2.txt


How do you select the first 5 characters from rows in file1.txt?

$ cut -c 1-5 file1.txt


How do you create a symbolic link to .bash_history called hist?

$ ls -s .bash_history hist


How do you compare file1.txt and file1.bak side by side?

$ diff -y file1.txt file1.bak


How do you merge file1.txt and file2.txt differences into file3.txt?

$ sdiff -o file3.txt file1.txt file2.txt


How do you remove file1.txt with a verification prompt?

$ rm -i file1.txt


How do you print the last 8 lines of .bashrc to the screen?

$ tail -n 8 .bashrc


How do you show lines common in both file1.txt and file2.txt?

$ comm -12 file1.txt file2.txt


How do you show the first 5 lines of file1.txt?

$ head -n 5 file1.txt


How do you copy docs1 directory and its files into docs2?

$ cp -r docs1 docs2


How do you delete recursively all files and a directory called docs1?

$ rm -r docs1


How do you find files on the system that include the word bash?

$ find / -name "*bash*"


How do you move file1.txt to a docs1 directory after a prompt?

$ mv -i file1.txt docs1


How do you join ; delimited file1.txt and file2.txt on the first field?

$ join -t ";" file1.txt file2.txt


How do you delete file1.txt and file2.txt preceded by a prompt?

$ rm -i file1.txt file2.txt

Learn More About The Series

For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:

Linux Essentials Home

What's Next?

If you found value in this free resource please consider linking to us on the web so others can benefit too. Also, please join us on YouTube, subscribe here.

  • Click Outline to see all content including other quizzes
  • Click Back for Linux Essentials
  • Click Next to take another Quiz

Outline Back Next

~/ home  / technology  / linux essentials  / quiz 2a

Linux certification
online quiz game
Linux terminal commands
test linux
free quiz
Linux basics