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

Correct Answer: C. rm
Advertisement

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

Correct Answer: B. tail
Advertisement

28. What command is used to terminate a process?

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

Correct Answer: A. kill
Advertisement

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

Correct Answer: B. 3 dw
Advertisement

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

Correct Answer: B. chmod ugo = r letter
Advertisement
< PREVIOUS POSTLinux - Section 2

Leave A Comment?