Unix Questions and Answers

Exercise

Exercise 1
Exercise 2

Article

Q 1
Which command is used with vi editor to save file and remain in the editing mode?

A)   :q

B)   :w

C)   q!

D)   :x


Correct Option - B

Explanation


Report this question

Q 2
Which command is used to assign only read permission to all three categories of the file 'note'?

A)   chmod go+r note

B)   chmod a-rw

C)   chmod ugo=r note

D)   chmod u+r,g+r,o-x note


Correct Option - C

Explanation


Report this question

Q 3
Which command is used with vi editor to move the cursor to the left?

A)   i

B)   j

C)   k

D)   h


Correct Option - D

Explanation


Report this question

Q 4
Which of are following internal commands is used in mail to forward mail to user in user-list?

A)   r user-list

B)   m user-list

C)   d user-list

D)   e user-list


Correct Option - B

Explanation


Report this question

Q 5
Which command will be used with vi editor to append text at end of line?

A)   A

B)   a

C)   i

D)   I


Correct Option - A

Explanation


Report this question

Q 6
Which command is used to link the files?

A)   lk

B)   ln

C)   cp

D)   tar


Correct Option - B

Explanation


Report this question

Q 7
The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

A) executable permission only

B) write and executable permissions

C) both read and executable permissions.

D) both read and write permissions


Correct Option - D

Explanation


Report this question


Share This Page -