Basic Unix Quiz - 4

Basic Unix commands and system operations quiz covering file management, permissions, processes, and text editing tools

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it

  1. -r
  2. -x
  3. -i
  4. -1
Question 2 Multiple Choice (Single Answer)

Which of the following directories contain all the Ales created by a user, including his login directory?

  1. /tmp
  2. /etc
  3. /usr
  4. /dev
Question 3 Multiple Choice (Single Answer)

Which of the following commands is used to obtain a list of all files by modification time?

  1. ls -1
  2. ls -t
  3. ls -i
  4. ls -R
Question 4 Multiple Choice (Single Answer)

The % key allows you

  1. to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
  2. to move the cursor to the upperleft corner of the screen
  3. to move the cursor backward to the beginning of a word
  4. to move the cursor to the first column in the current line
Question 5 Multiple Choice (Single Answer)

Which command is used to display the characteristics of a process?

  1. pid
  2. du
  3. ps
  4. au
Question 6 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
Question 7 Multiple Choice (Single Answer)

The filed separator in cut command is specified with

  1. -a option
  2. -d option
  3. -r option
  4. -x option
Question 8 Multiple Choice (Single Answer)

Which of the following options will be used to display number of blocks used by a file?

  1. -c
  2. -i
  3. -d
  4. -s
Question 9 Multiple Choice (Single Answer)

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

  1. -a
  2. -b
  3. -t
  4. -h
Question 10 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. chmod -x a x progs