TutorialPedia.org
Toggle Menu
Home
Online Go Compiler
Tutorials
JavaScript Tutorials
Golang Tutorials
Linux Command Line Tutorials
Blog
All Posts
Linux Command Line Basics
Test your knowledge of fundamental Linux commands and shell navigation.
1. What does the 'pwd' command stand for?
Present Working Directory
Previous Working Directory
Parent Working Directory
Primary Working Directory
2. Which command is used to list the contents of a directory?
ls
dir
list
show
3. What does the '-l' flag do when used with 'ls'?
Displays output in long format
Lists all files (including hidden)
Shows only large files
Limits output to 10 items
4. Which command changes the current working directory?
cd
chdir
change
cwd
5. What command creates a new directory?
mkdir
makedir
newdir
crdir
6. Which command copies files or directories?
cp
copy
cpy
dupe
7. What does the 'mv' command do?
Moves or renames files/directories
Makes a virtual directory
Modifies file permissions
Merges two directories
8. Which command deletes (removes) files?
rm
delete
remove
del
9. What does the 'sudo' command do?
Executes a command as the superuser (root)
Saves user configuration data
Switches to a different user's directory
Shows current user permissions
10. Which command displays the first 10 lines of a file?
head
top
first
start
11. Which commands can be used to view the contents of a file?
cat
less
more
echo
12. Which flags are commonly used with the 'rm' command to delete directories?
-r
-f
-d
-x
13. Which commands are used for file compression or archiving?
gzip
tar
zip
pwd
14. Which commands display system information?
uname
top
df
ls
15. The 'rmdir' command can delete non-empty directories.
True
False
16. The 'chmod' command is used to change file permissions.
True
False
17. The 'echo' command is used to print text to the terminal.
True
False
18. What command is used to search for a specific pattern in files? (lowercase)
19. Name the command that displays disk usage of files and directories (abbreviation).
20. What command clears the terminal screen?
Reset
Answered 0 of 0 — 0 correct