Computer Science - Unix

Exercise :: Unix - Section 3

21. 

The command used to remove the directory is;

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

Answer: Option A

Explanation:

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

22. 

Which symbol will be used with grep command to match the pattern pat at the end of a line?

A. ^pat
B. $pat
C. pat$
D. pat^
E. None of the above

Answer: Option C

Explanation:

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

23. 

Which command is used to display all the lines with the string 'sales' from the file empl.lst?

A. cut sales empl.lst
B. /sales > empl.lst
C. grep sales empl.lst
D. cat | /sales > empl.lst
E. None of the above

Answer: Option C

Explanation:

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

24. 

Which of the following commands is not the vi Input mode command?

A. rch
B. R
C. S
D. j
E. None of the above

Answer: Option D

Explanation:

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

25. 

Which of the following commands is used to remove files?

A. erase
B. delete
C. rm
D. dm
E. . None of the above

Answer: Option C

Explanation:

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