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

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

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

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

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

Leave A Comment?

20 + 3 =