Basic Unix Commands Quiz
Test your knowledge of fundamental Unix/Linux command line utilities including file permissions, file manipulation, and text processing commands.
Questions
Question 1 Multiple Choice (Single Answer)
Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
- chmod -R a+x progs
- chmod -R 222 progs
- chmod -1 a+x progs
- None of the above
Question 2 Multiple Choice (Single Answer)
Which option will be used with touch command to change the access time?
- -a
- -b
- -t
- none of the above
Question 3 Multiple Choice (Single Answer)
The cp command uses:
- standard input file
- standard output file
- both input and output file
- neither standard input nor standard output file
Question 4 Multiple Choice (Single Answer)
Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?
- -m.n
- +m.n
- + n.m+1
- None of the above
Question 5 Multiple Choice (Single Answer)
Which of the following commands is used to identify the type of file by context?
- ls
- cat
- file
- more