1.What syslog.conf facility represents login processes?
A. proc
B. login
C. user
D. auth
2.What syslog.conf facility represents httpd processes?
A. http
B. daemon
C. smtp
D. proc
3.To change all lower case characters in a file to upper case, pick the correct command.
A. tr 'a-z' 'A-Z' file
B. tr [a-z] [A-Z] < file
C. tr "a-z" "A-Z" file
D. tr 'a-z' 'A-Z' < file
E. tr {a-z} {A-Z} > file
4.A directory contains the following files:
#ls
ratas saran jacaw cabal cabin
You issue the command "ls | grep .a[^b]a.", what files are returned by the command? Choose all that
apply.
A. ratas
B. jacaw
C. saran
D. cabal
E. cabin
5.You have just typed the following three commands and got the following output:
prompt> echo $PATH
/usr/bin:/usr/local/bin:usr/sbin:opt/kde/bin
prompt> pwd
/home/anna/games
promt> l
game1 game2 game3
You want to run the program game1, but get the response that it is not found.
What did you forget to do?
A. To type ./game1 rather than game1.
B. To switch the directory /home/anna first.
C. To unset your PATH before running the program.
D. To set execution permissions for the program game1.
6.You have the following file:
-rwxrwxr-x 1 foo root 0 Feb 23 07:48 /bin/foo
Which of the following commands will change the owner of the file /bin/foo from the foo user to the
bar user without affecting group ownership?
A. chown /bin/foo bar
B. chown bar /bin/foo
C. chown bar.foo /bin/foo
D. chown.foo.bar /bin/foo
7.Which of the following programs can be used to the find the foo program in the PATH and associated
man pages, but not list every file containing foo on the system?
A. which
B. search
C. slocate
D. where
E. whereis