
Linux Command Line Basics
Flashcard
•
Computers
•
University
•
Practice Problem
•
Medium
Wayground Content
Used 5+ times
FREE Resource
Student preview

26 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What command is used to list files and directories in Linux?
Back
ls
Answer explanation
The ls command is used to list files and directories in the current location.
2.
FLASHCARD QUESTION
Front
Which command prints the current working directory? Options: ls, pwd, cd, mv, rm
Back
pwd
Answer explanation
The pwd command displays the full path of the current directory.
3.
FLASHCARD QUESTION
Front
How do you change to the root directory using the command line?
Back
cd /
Answer explanation
cd / moves you to the root directory of the Linux filesystem.
4.
FLASHCARD QUESTION
Front
What is the purpose of the man command?
Back
To view manual pages of commands
Answer explanation
The man command provides detailed documentation on commands.
5.
FLASHCARD QUESTION
Front
Which command is used to create a new directory? Options: mkdir, touch, rm, nano, ls
Back
mkdir
Answer explanation
The mkdir command creates a new directory.
6.
FLASHCARD QUESTION
Front
How do you move a file named file1.txt to a directory named docs?
Back
mv file1.txt docs/
Answer explanation
The mv command moves files and directories.
7.
FLASHCARD QUESTION
Front
What command is used to delete a file? Options: rm, mv, cp, ls, pwd
Back
rm
Answer explanation
The rm command is used to remove files.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?