21. 

The command used to remove the directory is;

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

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

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

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

25. 

Which of the following commands is used to remove files?

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