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

Correct Answer: A. rmdir

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

Correct Answer: C. pat$

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

Correct Answer: C. grep sales empl.lst

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

Correct Answer: D. j

25. Which of the following commands is used to remove files?

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

Correct Answer: C. rm

Leave A Comment?

seven − 4 =