FactorPad
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

Beginner

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.

Video

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.


#1

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

$ alias lst='date; ls'

#2

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

$ cd ..

#3

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

$ nano .bashrc

#4

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

$ which -a cat touch

#5

How do you print a short command summary for echo?

$ whatis echo


#6

How do you scroll up one page in the terminal?

$ Shift-PgUp

#7

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

$ type -a file1.txt

#8

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

$ file report.sh

#9

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

$ less -N file1.txt

#10

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

$ whereis touch


#11

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

$ which nano

#12

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

$ cat -n file1.txt

#13

How do you update file1.txt timestamp to yesterday?

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

#14

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

$ date --help

#15

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

$ type alias


#16

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

$ type -a less

#17

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

$ ls -l

#18

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

$ ls -al

#19

How do you display the variable called x?

$ echo $x

#20

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

$ ls > file1.txt


#21

How do you logout and close the terminal?

$ exit

#22

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

$ cat file1.txt

#23

How do you display tomorrow's date?

$ date --date="tomorrow"

#24

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

$ man bash

#25

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.