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

Warning: Undefined variable $in_same_cat in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/mtexam.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27
NEXT POST >Unix - Section 2

Leave A Comment?