Basic Unix Commands Quiz

Test your knowledge of fundamental Unix/Linux command line utilities including file permissions, file manipulation, and text processing commands.

5 Questions Published

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?

  1. chmod -R a+x progs
  2. chmod -R 222 progs
  3. chmod -1 a+x progs
  4. None of the above
Question 2 Multiple Choice (Single Answer)

Which option will be used with touch command to change the access time?

  1. -a
  2. -b
  3. -t
  4. none of the above
Question 3 Multiple Choice (Single Answer)

The cp command uses:

  1. standard input file
  2. standard output file
  3. both input and output file
  4. 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?

  1. -m.n
  2. +m.n
  3. + n.m+1
  4. 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?

  1. ls
  2. cat
  3. file
  4. more