Unix – Section 2

26. Which of the following commands is used to view your file 24 lines at a time?

A. pg
B. cat
C. lp
D. /p
E. None of the above

Correct Answer: A. pg

27. Which shell’s wild-cards is used to match a single character?

A. *
B. ?
C. [ijk] D. [!ijk] E. None of the above

Correct Answer: B. ?

28. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.

A. .exrc
B. .profile
C. lastlogin
D. .mbox
E. None of the above

Correct Answer: B. .profile

29. Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?

A. copy wb ../misc collect ../misc mon ../misc
B. cp wb collect mon ../misc
C. copy wb collect mon /misc
D. tar wb collect mon /misc
E. None of the above

Correct Answer: B. cp wb collect mon ../misc

30. The command chmod 761 note is equivalent to

A. chmod 167 note
B. chmod u=rwx, g=rw, o=x note
C. chmo a =761 note
D. chmod 4=7, g=6,0 =1 note
E. None of the above

Correct Answer: B. chmod u=rwx, g=rw, o=x note

Leave A Comment?

15 − 4 =