Which of the following command is used to go to home directory?
A. cd..
B. cd/
C. cd
D. cd HOME.
E. None of the above
Select an option to see the answer and solution.
Which command is used to move all files to the bin sub-directory of the parent directory?
A. mv *.* /bin/
B. mv * /bin/*
C. mv * ../bin
D. mv * ../bin *.*
E. None of the above
Select an option to see the answer and solution.
Which command is used to save the standard output in a file, as well as display it on the terminal?
A. more
B. cat
C. grep
D. tee
E. None of the above
Select an option to see the answer and solution.
The command that can be used to restrict incoming messages to a user is
A. mesg
B. grep
C. halt
D. sleep
E. None of the above
Select an option to see the answer and solution.
Which of the following commands is used to copy directory structures in and out
A. cp
B. cpio
C. cp - p
D. copy
E. None of the above
Select an option to see the answer and solution.
Which of following commands is used for an automatic reminder service?
A. write
B. mesg
C. calendar
D. mail
E. None of the above
Select an option to see the answer and solution.
Which command allows you to view your file 24 lines at a time?
A. more
B. pg
C. cat
D. lp
E. None of the above
Select an option to see the answer and solution.
Which of the following special shell variables is used to process number of the current shell?
A. $!
B. $$
C. $0
D. $*
E. None of the above
Select an option to see the answer and solution.
Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
A. -l
B. -d
C. -r
D. -b
E. None of the above
Select an option to see the answer and solution.
Which command is used with vi editor scroll half page backward?
A. [Control-d]
B. [Control - u]
C. [Control-c]
D. [Control -P]
E. None of the above
Select an option to see the answer and solution.
Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
A. tch
B. fch
C. rch
D. ech
E. None of the above
Select an option to see the answer and solution.
Which of the following keys is used to delete the character beneath the cursor?
A. x
B. X
C. dd
D. D
E. None of the above
Select an option to see the answer and solution.
Which command is used to assign only read permission to all three categories of the file 'note'?
A. chmod go+r note
B. chmod a-rw
C. chmod ugo=r note
D. chmod u+r,g+r,o-x note
E. None of the above
Select an option to see the answer and solution.
Which command will be used with vi editor to append text at end of line?
A. A
B. a
C. i
D. I
E. None of the above
Select an option to see the answer and solution.
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
E. None of the above
Select an option to see the answer and solution.
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
E. None of the above
Select an option to see the answer and solution.
Which of the following shell's wildcards are used to match any number of characters including none?
A. [ijk]
B. [!ijk]
C. ?
D. *
E. None of the above
Select an option to see the answer and solution.
The command used to remove the directory is;
A. rmdir
B. rd
C. remove
D. rdir
E. None of the above
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.
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
Select an option to see the answer and solution.