Linux Core
General Commands
File/Directory Permissions Commands
File Management Commands
Random Linux Trivia
100

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

Command, ___________, ____________

Options, Arguements

100

As a regular user, what command would you use to list all files, including hidden ones, in /var?”

sudo ls -la /var OR sudo ll -a /var

100

What command is used to display file permissions on objects within a directory?

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 placed before another command to run it with elevated (administrator) privileges, often resolving ‘Permission denied’ errors for users who are allowed to use it.

sudo

200

Using brace expansion, how would you make 3 directories named ~/RHEL8, ~/RHEL9, ~/RHEL10?

mkdir ~/RHEL{8..10}

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 directory contains configuration files for most services. 

/etc

300

What command and option would create the directory structure ~/School/Labs in a single step, assuming neither directory exists?”

mkdir -p ~/School/Labs

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 /misc and all its contents?

rm -r /misc

300

What Linux distribution is specifically designed for penetration testing and ethical hacking?

Kali Linux

400

Which text editor comes installed by default on RHEL and have we practiced using?

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

This person created the Linux kernel in 1991.

Linus Torvalds

500

If you are currently in /var, what type of path (absolute or relative) would you use to change into the directory, /var/log?

Relative

cd log


500

Put these in the correct order to create the user shakenbake111 with the comment ‘Ricky Bobby’.

-c | useradd | "Ricky Bobby" | sudo | shakenbake111


sudo useradd -c "Ricky Bobby" shakenbake111

500

For a regular file, what does the numeric permission 2660 grant to user/group/others (UGO)?

Users can r/w

Group can r/w, with special execute 

Others can do nothing

500

From your home directory, how would you copy a file named myfile into ~/Stuff/ and name the copy draft_file1?”

cp myfile ~/Stuff/draft_file1

500

This is the open-source “shell” commonly used on Linux systems like RHEL.

bash

M
e
n
u