Linux Command Line Quiz
Test your knowledge of Linux command-line basics and commands.
Full Name
*
First Name
Last Name
Email Address
*
example@example.com
Which command is used to list the contents of a directory?
*
ls
cd
pwd
cat
What is the command to display the current working directory?
*
pwd
ls
cd
echo
Write the command to create a new directory named 'testdir'.
*
Which command is used to view the contents of a file?
*
cat
mkdir
rm
mv
What does the command 'rm file.txt' do?
*
Removes the file named file.txt
Renames the file.txt
Reads the file.txt
Moves the file.txt
Write the command to move a file named 'file1.txt' to a folder named 'backup'.
*
Which command is used to change file permissions?
*
chmod
chown
ls
touch
Score (for evaluator use only)
Submit Quiz
Should be Empty: