UNIX MCQ SET 9


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

 

  1. }
  2. {
  3. |
  4. $

 

 

2) 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

 

 

3) Which command is used to remove a directory

 

  1. Rd
  2. Rmdir
  3. Dldir
  4. Rdir

 

 

4) Which of the following keys is used to replace a dingle character with new text

 

  1. S
  2. s
  3. r
  4. C

 

 

5) Which command is used to extract a specific columns from the file

 

  1. Cat
  2. Cut
  3. Grep
  4. Paste

 

 

6) Which command sends the word count of the file infile to the newfile.

 

  1. wcinfile>newfile
  2. wc<infile>newfile
  3. wcinfile – newfile
  4. wcinfile | newfile

 

 

7) Which command is used to remove the read permission of the file ‘note’ from both the group and others?

 

  1. chmodgo+r note
  2. chmodgo+rw note
  3. chmod go-x note
  4. chmod go-r, 4-x note

 

 

8) 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]

 

 

9) Which command will be used with vi editor to insert text to left of cursor?

 

  1. s
  2. S
  3. a
  4. i

 

 

10) In vi editor, forward search is performed using the command.

 

  1. :pat
  2. :pat
  3. /pat
  4. All of the above

 

 

Correct Answers

 

1) A

 

2) A

 

3) B

 

4) B

 

5) B

 

6) A

 

7) D

 

8) A

 

9) D

 

10) D

Leave a comment