Linux – Section 2

21. The location for subdirectories for local programs and executables for user and administrative commands, is:

A. /usr
B. /tmp
C. /opt
D. /mnt
E. None of the above

Correct Answer: A. /usr

22. Which of the following is not a filter command?

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

Correct Answer: D. cat

23. What command is used to display a file contents in octal form?

A. oct
B. of
C. od
D. cd
E. None of the above

Correct Answer: C. od

24. What command is used to assign executable permission to all of the files named “report”?

A. chmod ugo + x report
B. chmod u + x report
C. chmod ugo + rw report
D. chmod ugo + r report
E. None of the above

Correct Answer: A. chmod ugo + x report

25. What command is used to change the working directory?

A. cdir
B. chdir
C. changedir
D. cd
E. None of the above

Correct Answer: D. cd

Leave A Comment?

four × three =