Unix – Section 2

1. Which of the following files contains information related to password aging?

A. Shadow
B. password
C. profile
D. All the three
E. None of the above

Correct Answer: B. password
Advertisement

2. Which command will be used with vi editor to replace text from cursor to right?

A. r
B. R
C. s
D. S
E. None of the above

Correct Answer: B. R
Advertisement

3. Which of the following commands is used to rename a file?

A. rename
B. remove
C. mv
D. ren
E. None of the above

Correct Answer: C. mv
Advertisement

4. Which of the following is not a filter?

A. cat
B. grep
C. wc
D. sort
E. None of the above

Correct Answer: E. None of the above
Advertisement

5. Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

A. copy programs/wb misc/wbx
B. cp programs/wb misc/wbx
C. tar programs/wb misc/wbx
D. copy a:programs/wb b:misc/wbx
E. None of the above

Correct Answer: B. cp programs/wb misc/wbx
Advertisement
< PREVIOUS POSTUnix - Section 1
NEXT POST >Unix - Section 3

Leave A Comment?