Basic Unix Quiz - 3

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

The agency that sits between the user and the UNIX system is called the

  1. logic

  2. profile

  3. shell

  4. erxc


Correct Option: C

Which of the following commands is used to update access and modification times of a file?

  1. grep

  2. wc

  3. touch

  4. cat


Correct Option: C

Which command is used to display a file contents in octal form?

  1. cd

  2. od

  3. of

  4. oct


Correct Option: B

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

  1. s

  2. S

  3. a

  4. i


Correct Option: D

AI Explanation

To answer this question, you need to understand the basic commands used in the vi editor.

Option A) s - This option is incorrect because the s command is used to substitute characters. It deletes the character under the cursor and enters insert mode.

Option B) S - This option is incorrect because the S command is used to delete the current line and enter insert mode at the beginning of the line.

Option C) a - This option is incorrect because the a command is used to append text after the cursor. It enters insert mode after the current character.

Option D) i - This option is correct because the i command is used to insert text to the left of the cursor. It enters insert mode before the current character.

Therefore, the correct answer is option D) i.

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

  1. :pat

  2. :pat

  3. /pat

  4. All of the above


Correct Option: D

Which of the following special shell variables is used to process number of the last background job?

  1. $!

  2. $#

  3. $0

  4. $*


Correct Option: A

Which of the following command addresses all users who are currently hooked on?

  1. write

  2. mail

  3. wall

  4. mesg


Correct Option: C
- Hide questions