Commands
Command Syntax
File/Directory Permissions
File Management
Random Linux Trivia
100

This command will allow you to traverse directories

cd

100

What command is used to display the current working directory?

pwd

100

What command is used to display file permissions?

ll 

OR

ls -l

100

What command creates an empty file named example.txt?

touch example.txt

100

What animal is the Linux mascot?

Penguin

200

This command is used in front of the command syntax and used to resolve most permission errors if the user has been granted that ability.

sudo

200

How do you list all files, including hidden ones, in a directory?

ls -a OR ll -a

200

How would you show the permission of a directory named /Tests?

ll -d /Tests

200

What command is used to create a directory named Projects?

mkdir Projects

200

What is the name of the Linux mascot?

Tux

300

This is a command, and also service, that allows for secure logins to a remote machine via the terminal.

ssh

300

There are 3 main parts to a Linux CLI syntax, what are they? (2 answers)

Command, ___________, ____________

Option(s)

Argument

300

What command would you use to change the permissions of a file or directory?

chmod

300

What command would recursively delete a directory named /tmp and all its contents?

rm -r /tmp

300

What Linux distribution is specifically designed for pen testing and/or ethical hacking?

Kali Linux

400

What is the name of the Linux text editor that is installed by default on RHEL servers that we've learned to use?

VI/VIM


400

How would you display the last 10 lines of a file named log.txt?

tail log.txt

400
What command would you use to change the ownership of a file or directory?

chown

400

You misnamed a file "drafts" as "drfts". How would you rename the file with the correct name?

mv drfts drafts

400

Who is the creator of Linux?

Linus Torvalds

500

What type of path, absolute or relative, is required to get to /var/log/ from /var?

Relative

cd log


500

What is the correct order of these commands/options?

-c | useradd | "Sam Smith" | sudo | smiths1234


sudo useradd -c "Sam Smith" smiths1234

500

What does the numeric permission 645 mean for a file?

Users can r/w

Group can r

Others can r/x

500

How would you make a copy of a file named myfile to another named draft_file1

cp myfile draft_file1

500

Which popular mobile operating system is based on the Linux kernel?

Android

M
e
n
u