Computer Science - Unix

Exercise :: 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

Answer: Option B

Explanation:

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

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

Answer: Option B

Explanation:

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

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

Answer: Option B

Explanation:

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

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

Answer: Option A

Explanation:

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

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

Answer: Option D

Explanation:

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