Computer Science - Unix

Exercise : Unix - Section 3
21.
The command used to remove the directory is;
rmdir
rd
remove
rdir
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
Which symbol will be used with grep command to match the pattern pat at the end of a line?
^pat
$pat
pat$
pat^
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

23.
Which command is used to display all the lines with the string 'sales' from the file empl.lst?
cut sales empl.lst
/sales > empl.lst
grep sales empl.lst
cat | /sales > empl.lst
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
Which of the following commands is not the vi Input mode command?
rch
R
S
j
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
Which of the following commands is used to remove files?
erase
delete
rm
dm
. None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.