Exercise: Unix

Questions for: Unix

You can append to a file instead of overwriting by using the
A:
> symbols
B:
>> symbols
C:
< symbols
D:
<< symbols
Answer: B
No answer description is available. Let's discuss.
Which command is used with vi editor to save file and remain in the editing mode?
A:
:q
B:
:w
C:
q!
D:
:x
Answer: B
No answer description is available. Let's discuss.
Which of the following commands is used to remove files?
A:
erase
B:
delete
C:
rm
D:
dm
Answer: C
No answer description is available. Let's discuss.
Which of the following commands is not the vi Input mode command?
A:
rch
B:
R
C:
S
D:
j
Answer: D
No answer description is available. Let's discuss.
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
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz