Build a Better Process

Linux Quiz 1b Covering exit, less, cat, date and bash Commands

This is the second quiz with a video set to relaxing music.
  1. Study - Review the first 20 commands in the Linux Essentials YouTube Playlist, or 20 web pages found here.
  2. Quiz - Watch the video and see how many answers you get correct.
  3. Next - When you're ready to move on to the next Quiz click Next.
face pic by Paul Alan Davis, CFA
Updated: February 24, 2021
As with learning to code, the feedback loop is vital and here we cover the first 10 commands from Linux Essentials so you can see what you need to reinforce.

Outline Back Tip Next

/ factorpad.com / tech / linux-essentials / quiz-1b.html

An ad-free and cookie-free website.

Linux Command Line Quiz | 1b


In video, this quiz takes 6 1/2 minutes or you can take as long as you like here. This text-based quiz covers the same 25 questions.


Videos can also be accessed from the Linux Essentials Playlist on YouTube.

Linux Command Line Quiz for Beginners | 1b (6:27)

The Quiz

Click the box to find the answer.

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


How do you make an alias lst with date/time and a directory listing?

$ alias lst='date; ls'


How do you change to one directory above the current one?

$ cd ..


How do you open the .bashrc file using a basic editor?

$ nano .bashrc


How do you find all locations of the non-shell built-ins cat and touch?

$ which -a cat touch


How do you print a short command summary for echo?

$ whatis echo


How do you scroll up one page in the terminal?

$ Shift-PgUp


How do you display a single word description of file1.txt's structure?

$ type -a file1.txt


How do you determine if a file called report.sh is an executable?

$ file report.sh


How do you view file1.txt with line numbers in a pager?

$ less -N file1.txt


How do you find the locations and man page for the touch command?

$ whereis touch


How do you find the location of the non-shell built-in command nano?

$ which nano


How do you send file1.txt to standard output with numbering?

$ cat -n file1.txt


How do you update file1.txt timestamp to yesterday?

$ touch --date="yesterday" file1.txt


How do you find simplified help on the non-shell built-in date?

$ date --help


How do you determine if the alias command is a shell built-in?

$ type alias


How do you find the location(s) of the less binaries?

$ type -a less


How do you print a list of details on non-hidden directory contents?

$ ls -l


How do you show all files and details in a directory?

$ ls -al


How do you display the variable called x?

$ echo $x


How do you redirect ls output to a file called file1.txt?

$ ls > file1.txt


How do you logout and close the terminal?

$ exit


How do you print file1.txt to standard output without a pager?

$ cat file1.txt


How do you display tomorrow's date?

$ date --date="tomorrow"


How do you find the manual page for the shell built-in called alias?

$ man bash


How do you pause a process using a shortcut?

$ Ctrl-z

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:

What's Next?

If you haven't tried the quizzes on the YouTube Channel, you may find them more challenging and rewarding.

Outline Back Tip Next

/ factorpad.com / tech / linux-essentials / quiz-1b.html

linux exam questions
play quiz
bash exit quiz
pwd linux quiz
trivia game
exit command
less command quiz
cat command quiz
date command quiz
bash command quiz

A newly-updated free resource. Connect and refer a friend today.