Basic Unix Quiz - 5

Description: Basic Unix Quiz - 5
Number of Questions: 9
Created by:
Tags: unix
Attempted 0/9 Correct 0 Score 0
  1. group has read permission only

  2. other has read permission only

  3. owner has read permission only

  4. group has write permission only


Correct Option: A

While working with mail command, which command is used to save mail i a separate file?

  1. s

  2. r

  3. w

  4. d


Correct Option: A

AI Explanation

To save a mail in a separate file while working with the mail command, you can use the command "s".

Option A) s - This option is correct because the "s" command is used to save a mail in a separate file. When you are composing or replying to a mail using the mail command, you can use the "s" command to save the mail in a file.

Option B) r - This option is incorrect. The "r" command in the mail command is used to reply to a mail.

Option C) w - This option is incorrect. The "w" command in the mail command is used to write the mail to a file.

Option D) d - This option is incorrect. The "d" command in the mail command is used to delete a mail.

The correct answer is A) s because it is the command used to save a mail in a separate file.

Which command is used to terminate a process?

  1. shutdown

  2. haltsys

  3. cancel

  4. kill


Correct Option: D

Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

  1. -m.n

  2. m.n

  3. n.m 1

  4. (m l).n


Correct Option: B

AI Explanation

To start sorting after the nth column of the (m+l)th field, the option to be used with the sort command is m.n.

Option A) -m.n - This option is incorrect because the - symbol is used to reverse the sorting order, not to specify the starting column.

Option B) m.n - This option is correct because it specifies that the sorting should start after the nth column of the (m+l)th field.

Option C) n.m 1 - This option is incorrect because the order of the values is reversed. The correct format is m.n.

Option D) (m l).n - This option is incorrect because it uses parentheses, which are not required in the syntax of the sort command.

Therefore, the correct answer is option B) m.n. This option is correct because it specifies the correct syntax to start sorting after the nth column of the (m+l)th field.

  1. standard input file

  2. standard output file

  3. both input and output file

  4. neither standard input nor standard output file


Correct Option: D
- Hide questions