Home > Linux > Quizzes > Linux Basics Practice Test: Linux Commands
Linux Basics Practice Test: Linux Commands
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which command creates an empty file if file does not exist?”
Here are some of the most commonly used Linux commands: ls: Lists the contents of the current directory. cd: Changes the current directory. pwd: Prints the current working directory. mkdir: Creates a new directory. rmdir: Removes an empty directory. cp: Copies a file or directory. mv: Moves a file or directory. rm: Removes a file or directory. touch: Creates a new file or updates the timestamp of an existing file. cat: Concatenates files and prints them to the standard output. grep: Searches for a pattern in a file or files. find: Searches for files and directories based on... Show more
Linux Basics Practice Test: Linux Commands
Time left 00:00
25 Questions

1. Which command is used to set terminal IO characteristic?
2. Which command is used to identify file type?
3. To open a file file1 with cursor at line number 4
4. Which command is used to record a user login session in a file
5. Which command is used to extract a column from a text file
6. How to execute ls command inside a vi editor?
7. Which command is used to display the operating system name
8. Which command is used to print a file
9. Which option of rm command is used to remove a directory with all its subdirectories
10. Which option of ls command used to view file inode number
11. Which command will you use to see the available routes?
12. Which screen manipulation command sets the screen back to normal?
13. The dmesg command
14. Which command is used to display all the files including hidden files in your current and its subdirectories ?
15. Which one shows the name of the operating system?
16. Which of the following commands can be used to copy files across systems?
17. Which command creates an empty file if file does not exist?
18. Which command is used to perform backup in unix?
19. Which command is used to display the octal value of the text
20. Which of these commands could you use to show one page of output at a time?
21. Write the command to display the current date in the form dd/mm/yyyy.
22. Which command gives the first byte where the difference is in the file1 & file2?
23. Which of the following commands can be used to change default permissions for files and directories at the time of creation
24. Which command is used to extract intermediate result in a pipeline
25. Command used to determine the path of an executable file is