Alien head

Basic Unix Quiz

Description: Basic Unix Quiz
Number of Questions: 5
Created by:
Tags: unix

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

Answer: 1

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

  1. -a

  2. -b

  3. -t

  4. none of the above

Answer: 1

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

Answer: 4

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

    • n.m+1
  3. None of the above

Answer: 2

Which of the following commands is used to identify the type of file by context?

  1. ls

  2. cat

  3. file

  4. more

Answer: 3
+ View questions