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^
1. Which command is used to sort the lines of data in a file in reverse order
A. sort
B. sh
C. st
D. sort –r
2. Which command is used to display the top of the file?
A. cat
B. head
C. more
D. grap
3. Which of the following files contains information related to password aging?
A. password
B. shadow
C. profile
D. key
4. The File that contains a set of instructions which are performed when a user logs in, is
A. [Link]
B. profile
C. sutoexec
D. [Link]
5. Which of the following command is used to go to home directory?
A. cd.
B. cd/
C. cd-
D. cd
6. Which of the following is not a communication command.
A. write
B. msg
C. grep
D. mail
7. Which of the following keys is used to replace a single character with new text?
A. s
B. r
C. c
D. m
8. How do you rename file "new" in file "old"?
A. rn new old
B. mv new old
C. cp new old
D. cr new old
9. How do you copy file from one host to other securely?
A. scp
B. ssh
C. cp
D. copy
Set -2
1. Which command is used to change permission in unix.
A. chmod
B. mod
C. echo
D. lpr
2. How you can see all Mounted drives?
A. mount
B. mount 1
C. mount -1
D. mounted -1
3. How you can uncompress the file?
A. Use Uncompress command
B. Use mount command
C. Use compress command
D. Use tar command
4. Which command is used to connect remote machine?
A. grep
B. ftp
C. remote
D. remote_machine
5. Which command is used for printing file?
A. lpr
B. ftp
C. mount
D. print
6. Which command is used if u like to work on a computer different from one you are currently working on?
A. ftp
B. connect_remote
C. rsh
D. lpr
7. Which command is used to count the number of characters, words and lines in a file?
A. count
B. mount
C. rsh
D. wc
8. which command is used to see files that are kept in directory
A. is
B. dir
C. files
D. count
9. How do you find out the processes that are currently running or a
particular user?
A. pr- Myname
B. ps au Myname
C. ps –au Myname
D. ps –f Myname