FactorPad
Build a Better Process

Linux Quiz 2a Covering ln, rm, apropos, cut and paste Commands

This is the fifth 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 second 10 commands from Linux Essentials so you can see what you need to reinforce.

Outline Back Tip Next

/ factorpad.com / tech / linux-essentials / quiz-2a.html


An ad-free and cookie-free website.


Linux Command Line Quiz | 2a

Beginner

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 focus-inspiring music.

Using different modes of learning will help you pass your linux test or certification. Good luck and enjoy.

Video

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

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

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.


#1

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

$ ln -s file1.txt f1

#2

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

$ wc -l file1.txt

#3

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

$ sort .bash_history

#4

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

$ grep -c "ls" .bash_history

#5

How do you create a directory called files?

$ mkdir files


#6

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

$ apropos -e grep

#7

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

$ mv file1.txt file2.txt

#8

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

$ mv -i docs1 docs2

#9

How do you find help on the sed command?

$ sed --help

#10

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

$ uniq -c file1.txt


#11

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

$ paste file1.txt file2.txt

#12

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

$ cut -c 1-5 file1.txt

#13

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

$ ls -s .bash_history hist

#14

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

$ diff -y file1.txt file1.bak

#15

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

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


#16

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

$ rm -i file1.txt

#17

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

$ tail -n 8 .bashrc

#18

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

$ comm -12 file1.txt file2.txt

#19

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

$ head -n 5 file1.txt

#20

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

$ cp -r docs1 docs2


#21

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

$ rm -r docs1

#22

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

$ find / -name "*bash*"

#23

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

$ mv -i file1.txt docs1

#24

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

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

#25

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:


What's Next?

If you found value in this free resource please consider placing a link to this site on the a web page so others can benefit too. Also, please join on YouTube, Twitter and at our no-spam email list to receive updates.

Outline Back Tip Next

/ factorpad.com / tech / linux-essentials / quiz-2a.html


linux certification training
online quiz game
linux terminal commands
free quiz
ln command quiz
linux command line quiz
rm command quiz
apropos command quiz
cut command quiz
paste command quiz

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