Computer Science - Linux

Exercise :: Linux - Section 3

26. 

What command do you use to delete a file?

A. rename
B. delete
C. rm
D. cp
E. None of the above

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

27. 

Which of the following command lists the last 10 lines of a file?

A. grep
B. tail
C. head
D. cat
E. None of the above

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

28. 

What command is used to terminate a process?

A. kill
B. cancel
C. haltsys
D. shutdown
E. None of the above

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

29. 

What command is used with vi editor to delete three words?

A. 3$d
B. 3 dw
C. 3 x
D. 3 dd
E. None of the above

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

30. 

What command is used to assign only read permission to all three categories of the file'letter'?

A. chmod u + r, g + r, o - x letter
B. chmod ugo = r letter
C. chmod a - rw letter
D. chmod go + r letter
E. None of the above

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.