Practice Test: Question Set - 02
1. Which of following commands is used for an automatic reminder service?
- (A) write
- (B) mesg
- (C) calendar
- (D) mail
2. While working with mail command, which command is used to save mail in a separate file?
- (A) s
- (B) r
- (C) w
- (D) d
3. Which of the following commands can be used to get information about yourself?
- (A) who am i
- (B) i /4
- (C) pwd
- (D) which
4. Which of the following keys is used to delete the character beneath the cursor?
- (A) x
- (B) X
- (C) dd
- (D) D
5. The cp command uses:
- (A) Standard
input file
- (B) Standard
output file
- (C) Both
input and output file
- (D) Neither
standard input nor standard output file
6. Which command is used to locate all the .profile files in the system?
- (A) ls
profile
- (B) find
/-name profile -print
- (C) cd
/.profile
- (D) l
-u .profile
7. 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
8. Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
- (A) ^pat
- (B) $pat
- (C) pat$
- (D) pat^
9. Which of the following files contains information related to password aging?
- (A) Shadow
- (B) Password
- (C) Profile
- (D) All
the three
10. The [line number G] key allows you
- (A) To
move cursor left by one position
- (B) To
move cursor right by one position
- (C) To
move cursor down by one line
- (D) To
move cursor to the beginning of the line specified by the number
11. Which command sends the word count of the file infile to the newfile.
- (A) wc
infile >newfile
- (B) wc
<infile >newfile
- (C) wc
infile - newfile
- (D) wc
infile | newfile
12. Which option is used with the chmod command recursively to all files and sub-directories in a directory?
- (A) -l
- (B) -i
- (C) -x
- (D) -R
13. The special shell variable $* is used
- (A) To
exit status of last command executed
- (B) To
process number of the current shell
- (C) To
list the positional parameters
- (D) To
name the command being executed
14. Which of the following is not a communication command?
- (A) write
- (B) mesg
- (C) mail
- (D) grep
15. Which set option is used with vi editor to display line numbers on screen?
- (A) nm
- (B) nu
- (C) ic
- (D) li
Next Tests:
Blogger Comment
Facebook Comment