Exercise 1

Question 11 :

When you install a new application, documentation on that application is also usually installed. Where would you look for the documentation after installing an application called MyApp? Choose one:

A). /usr/MyApp
B). /lib/doc/MyApp
C). /usr/doc/MyApp
D). In the same directory where the application is installed.
Answer : Option C

Explanation :

The default location for application documentation is in a directory named for the application in the /usr/doc directory.

Question 12 :

What file would you edit in your home directory to change which window manager you want to use?

A). Xinit
B). .xinitrc
C). XF86Setup
D). xstart
E). xf86init
Answer : Option B

Explanation :

The ~/.xinitrc file allows you to set which window man-ager you want to use when logging in to X from that account. Answers a, d, and e are all invalid files. Answer c is the main X server configuration file.

Question 13 :

What command allows you to set a processor-intensive job to use less CPU time?

A). ps
B). nice
C). chps
D). less
E). more
Answer : Option B

Explanation :

The nice command is used to change a job's priority level, so that it runs slower or faster. Answers a, d, and e are valid commands but are not used to change process information. Answer c is an invalid command.

Question 14 :

While logged on as a regular user, your boss calls up and wants you to create a new user account immediately. How can you do this without first having to close your work, log off and logon as root? Choose one:

A). Issue the command rootlog.
B). Issue the command su and type exit when finished.
C). Issue the command su and type logoff when finished.
D). Issue the command logon root and type exit when finishe
Answer : Option B

Explanation :

You can use the su command to imitate any user including root. You will be prompted for the password for the root account. Once you have provided it you are logged in as root and can do any administrative duties.

Question 15 :

There are seven fields in the /etc/passwd file. Which of the following lists all the fields in the correct order? Choose one:

A). username, UID, GID, home directory, command, comment
B). username, UID, GID, comment, home directory, command
C). UID, username, GID, home directory, comment, command
D). username, UID, group name, GID, home directory, comment
Answer : Option B

Explanation :

The seven fields required for each line in the /etc/passwd file are username, UID, GID, comment, home directory, command. Each of these fields must be separated by a colon even if they are empty.