Basic Unix Quiz - 2

Basic Unix Quiz - 2

10 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following commands is used to display the directory attributes rather than its contents?

  1. ls -1 -d
  2. ls -1
  3. ls -x
  4. ls -F
Question 2 Multiple Choice (Single Answer)

Which of the following files will displayed by this command cat ch

  1. patch
  2. catch
  3. .ch
  4. All of the above
Question 3 Multiple Choice (Single Answer)

The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:

  1. 000
  2. 755
  3. 744
  4. 555
Question 4 Multiple Choice (Single Answer)

If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

  1. tty ^c
  2. stty intr \^c
  3. stty echoe
  4. stty echo \^a
Question 5 Multiple Choice (Single Answer)

Which of the following is not a communication command.

  1. write
  2. mesg
  3. mail
  4. grep
Question 6 Multiple Choice (Single Answer)

Which of the following keys is used to move the cursor to the end of the paragraph.

  1. }
  2. {
  3. |
  4. $
Question 7 Multiple Choice (Single Answer)

Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

  1. cat emp[!0-9]
  2. more [emp][!0-9]
  3. cat emp[x-z]
  4. cat emp[a-z]
Question 8 Multiple Choice (Single Answer)

The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

  1. tee
  2. tr
  3. sort
  4. grep
Question 9 Multiple Choice (Single Answer)

Which command is used to remove a file?

  1. remove
  2. rm
  3. mv
  4. del
Question 10 Multiple Choice (Single Answer)

Which symbol is used to separate more than one command in the same command line?

  1. $
  2. #
  3. :
  4. ;