Linux Command Line Basics

Test your knowledge of essential Linux commands and shell usage.

1. Which command is used to list the contents of a directory?
2. What does 'pwd' stand for?
3. Which command creates a new directory?
4. To change the current working directory, use the ____ command.
5. Which command is used to remove (delete) a file?
6. What does the '-l' flag do when used with 'ls'?
7. Which command copies files or directories?
8. To move or rename a file, use the ____ command.
9. What is the purpose of the 'sudo' command?
10. Which command displays the contents of a text file?
11. Which of the following are absolute paths?
12. Which flags can be used with 'rm' to remove directories and their contents recursively?
13. Select all commands used to view running processes.
14. Which of the following are standard file permission types in Linux?
15. The 'ls -a' command lists all files, including hidden files (those starting with a '.').
16. The command 'cd ..' navigates to the parent directory of the current directory.
17. The 'chmod' command is used to change the ownership of a file.
18. What command is used to check the version of the Linux kernel? (abbreviation or full command)
19. What is the most common default shell for Linux systems? (name)
20. Name the command that displays the username of the current logged-in user.
Answered 0 of 0 — 0 correct