FactorPad
Faster Learning Tutorials

~/ home  / technology  / linux essentials  / quiz 1b

Linux Quiz 1b covering exit, less, cat, date, bash and...

This is the second quiz. At the end let us know what you think. Leave comments on YouTube. There you can find this quiz set to groovy music.

Beginner

On 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. Enjoy and have a good time getting smarter.

Video and quiz by Paul Alan Davis, CFA, November 28, 2016
Updated: August 1, 2017

Linux Command Line Quiz | 1b

Video

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

Videos can also be accessed from the YouTube Playlist.

The Quiz

Click the box to find the answer. Could it be any easier?

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:

Linux Essentials Home


What's Next?

If you haven't tried the quizzes on the YouTube Channel, you should because it's a challenge. Here's a button to subscribe.

  • 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 1b



 
 
Keywords:
Linux exam questions
play quiz
bash exit
pwd linux
trivia game
free test