Exercise: Unix

Questions for: Unix

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^
Answer: C
No answer description is available. Let's discuss.
The command used to remove the directory is;
A:
rmdir
B:
rd
C:
remove
D:
rdir
Answer: A
No answer description is available. Let's discuss.
Which of the following shell's wildcards are used to match any number of characters including none?
A:
[ijk]
B:
[!ijk]
C:
?
D:
*
Answer: D
No answer description is available. Let's discuss.
Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?
A:
who | tee user.lst
B:
who > user.lst
C:
who >> user.lst
D:
who < user.lste
Answer: A
No answer description is available. Let's discuss.
The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
A:
executable permission only
B:
write and executable permissions
C:
both read and executable permissions.
D:
both read and write permissions
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz