Which of the following commands returns the actual number of times user mj is logged
into your Linux computer?
A -
wc -l
B -
who | grep mj
C -
who | wc -l
D -
who | grep mj | wc -l
2-
Youre maintaining a large queue of print jobs on your network, and you need some job
numbers to make sure the engineers get highest priority on the printer.Which of the following
commands lists print job numbers?
A -
lpr -l
B -
lpq -l
C -
lprm -l
D -
lpd
3-
Which of the following commands would you use to add the /usr/sbin directory to your
PATH?
A -
$PATH=$PATH:/usr/sbin
B -
$PATH=PATH:/usr/sbin
C -
PATH=$PATH:/sbin
D -
PATH=$PATH:/usr/sbin
4-
When you run the umask command, you see the following result: 0000. The next time you
create a file, what will be the permissions?
A -
drwxrwxrwx
B -
----------
C -
-rwxr-xr-x
D -
-rw-rw-rw-
5-
Youve just added several new users by directly editing the /etc/passwd file. Which of the
following things do you need to do to make sure that passwords are properly encrypted per
the Shadow Password Suite?
A -
pwconv
B -
pwunconv
C -
grpconv
D -
grpunconv
6-
Youve logged in as a regular user. Youve taken advice to heart to keep your use of the
superuser account to a minimum. Which of the following commands would run a single
program named rooter that requires superuser privileges and then automatically returns to
the regular account?
A -
su rooter
B -
su -c rooter
C -
superuser rooter
D -
/sbin/su -c rooter
7-
In which of the following directories can you find scripts or links to scripts organized by
runlevel?
A -
/etc/rc.d/init.d
B -
/etc/rc.d
C -
/rc.d
D -
/etc/init.d
8-
Based on the following line from one of your users crontab file, when will the
Berkeleylives program be run?
0 1 2 3 * Berkeleylives
A -
At 2:00 A.M. on March 2
B -
At 1:00 A.M. on February 3
C -
At 1:23 A.M. every day
D -
At 1:00 A.M. on March 2
9-
Which of the following commands would you use to store the contents of /home in a
compressed tarball?
A -
/sbin/tarball czvf /home
B -
tar czvf home.tar.gz /home
C -
tar xzvf home.tar.gz /home
D -
tarball czvf home.tar.gz /home
10-
Which of the following sets of numbers, in order, correspond to an appropriate network
address, subnet mask, and broadcast address?