Home > General Studies (Hindi) > Quizzes > Unix Basics Practice Test: Handling Ordinary Files
Unix Basics Practice Test: Handling Ordinary Files
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 87% Most missed: “Which option is used with mv command so that the destination file does not get o…”
Quiz questions on cat command, cp command, rm and mv command for deleting and renaming files, comparing files, wc command for counting file data, compressing and archiving files. Ordinary files are the most common type of file in Unix. They contain data that is not associated with any special device or process. Ordinary files can be created, edited, and deleted using standard Unix commands. Here are some of the commands that you can use to manage ordinary files: cat: - Displays the contents of a file. cp: - Copies a file to another location. mv: - Moves or renames a file. rm: - Deletes... Show more
Unix Basics Practice Test: Handling Ordinary Files
Time left 00:00
25 Questions

1. How can we copy an entire directory under another directory?
2. Which command is used for comparing two files?
3. Which of the following is a better agent than gzip?
4. Which option is used for counting the number of characters in a file only.
5. What happens if the destination file specified in cp command does not exist?
6. How can we skip some initial bytes from both the files to be compared?
7. Which one of the following command can delete a directory which is not empty?
8. What does the following command do?
$ wc sample.txt > newfile
9. Which option is used with lp command if there are more than one printers in the system?
10. Some files cannot be deleted using rm command because of the permissions associated with it.
11. Which command is used to display the differences between files?
12. Sometimes it is not possible to copy a file.
13. What does the following command do?
cp -u * dir_file
14. wc command can also work on a data stream.
15. Which option performs recursive deletion?
16. Which option is used with the cat command for displaying file with line numbers?
17. Which command is used for renaming files?
18. file command identifies the file type by examining the magic number of the file.
19. What does the following command do?
cancel prl-320
20. If we create a file using cat command with the same filename which already exists in the current directory then,
21. Which command is used for removing file named -file.txt?
22. What does -i option do?
23. -v option is used with cp command for displaying _____
24. We can provide original filenames without .gz extension while checking compression ratio using gzip - l?
25. If we wish to delete a remove a file forcefully, we can use ____ option with rm command.