Basic Unix Quiz - 2

Description: Basic Unix Quiz - 2
Number of Questions: 10
Created by:
Tags: unix
Attempted 0/10 Correct 0 Score 0

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


Correct Option: A

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


Correct Option: B

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


Correct Option: B

Which of the following is not a communication command.

  1. write

  2. mesg

  3. mail

  4. grep


Correct Option: D

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

  1. }

  2. {

  3. $


Correct Option: A

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]


Correct Option: A

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


Correct Option: A

Which command is used to remove a file?

  1. remove

  2. rm

  3. mv

  4. del


Correct Option: B

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

  1. $

  2. #

  3. :

  4. ;


Correct Option: D
- Hide questions