Unix – Section 1

6. Which command is used to remove a directory?

A. rd
B. rmdir
C. dldir
D. rdir
E. None of the above

Correct Answer: B. rmdir

7. Which of the following keys is used to replace a single character with new text?

A. S
B. s
C. r
D. C
E. None of the above

Correct Answer: B. s

8. Which command is used to extract specific columns from the file?

A. cat
B. cut
C. grep
D. paste
E. None of the above

Correct Answer: B. cut

9. Which command sends the word count of the file infile to the newfile.

A. wc infile >newfile
B. wc <infile >newfile
C. wc infile – newfile
D. wc infile | newfile
E. None of the above

Correct Answer: A. wc infile >newfile

10. Which command is used to remove the read permission of the file ‘note’ from both the group and others?

A. chmod go+r note
B. chmod go+rw note
C. chmod go-x note
D. chmod go-r note
E. None of the above

Correct Answer: D. chmod go-r note

Leave A Comment?

12 + five =