Home > Unix Programming > Quizzes > Unix Basics Practice Test: Customizing the Environment & More File Attributes
Unix Basics Practice Test: Customizing the Environment & More File Attributes
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 64% Most missed: “When touch command is used without any option but with an expression, which of t…”
Quiz on shell variables, shell offerings, advanced file handling commands and find command. Here's what you should know about customizing the Unix environment: File attributes: You can use the ls -l command to list all files in the current directory. File permissions: You can use the chmod command to change file permissions. For example, chmod 755 filename gives the owner read, write, and execute permissions. You can also use wildcards to change permissions for multiple files at once. For example, chmod 644 *.txt gives the owner read and write permissions, and the group and others... Show more
Unix Basics Practice Test: Customizing the Environment & More File Attributes
Time left 00:00
25 Questions

1. We can display an alias definition by using an alias with the name.
2. -ok option is used with find command for seeking information before taking the action specified.
3. Which environment variable is used to display our username?
4. ____ command displays all the variables available in the current shell.
5. Which of the following shells support the use of aliases?
6. Every feature used in an interactive shell can also be used by a shell script.
7. Which one of the following is not an environment variable?
8. We can use relative pathname in the path list while using find command.
9. Which of the following are history variables?
10. Which option is used with ls command for knowing the inode number of the file?
11. Which one of the following is arguably the best shell to use?
12. Which of the following command will be used to locate those files that have not been modified for more than a year?
13. Which of the following is not a content of inode?
14. Which one of the following keyword is used with the set command to avoid overwrite existing file?
15. Every file system has a directory structure headed by ____
16. Which symbol is used for setting the PS1 prompt to show the current event number?
17. Which one of the following command will search history list for the previous command having the last occurrence of string cvf?
18. Which option is used with find command for specifying the file type?
19. The shell has ____ prompts.
20. When touch command is used without any options or expression, both times are set to current time and the file is created if it doesn’t exist.
21. Which command is used to link a file with multiple filenames?
22. set command by default displays the variables in the current shell.
23. Which command is used to change timestamps associated with a file?
24. Which option is used to find command to search for files based on access time?
25. We can also execute previous commands by context.