Unix – Section 3

1. The File that contains a set of instructions which are performed when a user logs in, is

A. .exrc
B. .profile
C. .autoexec
D. autoexec.bat
E. None of the above

Correct Answer: B. .profile
ADVERTISEMENT

2. The octal representation 652 indicates

A. Execute permission for the owner
B. Write permission for others
C. Read and write permission of groups
D. All of the above
E. None of the above

Correct Answer: B. Write permission for others
ADVERTISEMENT

3. Which of the following command is used to count just the number of lines contained in a file?

A. wc -l
B. wc -c
C. wc -w
D. wc -r
E. None of the above

Correct Answer: A. wc -l
ADVERTISEMENT

4. Which of the following command is used to go to home directory?

A. cd..
B. cd/
C. cd
D. cd HOME.
E. None of the above

Correct Answer: C. cd
ADVERTISEMENT

5. Which command is used to move all files to the bin sub-directory of the parent directory?

A. mv *.* /bin/
B. mv * /bin/*
C. mv * ../bin
D. mv * ../bin *.*
E. None of the above

Correct Answer: C. mv * ../bin
ADVERTISEMENT
< PREVIOUS POSTUnix - Section 2

Leave A Comment?