COMP 328 Week 4 Midterm Exam COMP 328 Week 4 Midterm Exam | Page 2

a. cal b. dis cal c. view Cal d. calendar 5. Which command can be used to display the contents of a file on the screen? a. ls b. grep c. dog d. cat 6. To list the permissions on files, which of the following commands will work? a. ls b. ls –a c. ls –l d. more –al 7. The ________ command will display the absolute pathname for the directory that you are wokring in. a. dir b. whereami c. pwd d. ls 8. To change access modes on files you can use the chmod command. a. True b. False 9. What does a Java class contain that identifies it as a Java application?