Question 1 :
What type of local file server can you use to provide the distribution installation materials to the new machine during a network installation?
You can use an NFS server to provide the distribution installation materials to the machine on which you are performing the installation. Answers a, b, c, and d are all valid items but none of them are file servers. Inetd is the superdaemon which controls all intermittently used network services. The FSSTND is the Linux File System Standard. DNS provides domain name resolution, and NNTP is the transfer protocol for usenet news.
Question 2 :
If you type the command cat dog & > cat what would you see on your display? Choose one:
When you use & > for redirection, it redirects both the standard output and standard error. The output would be saved to the file cat.
Question 3 :
You are covering for another system administrator and one of the users asks you to restore a file for him. You locate the correct tarfile by checking the backup log but do not know how the directory structure was stored. What command can you use to determine this? Choose one:
The t switch will list the files contained in the tarfile. Using the v modifier will display the stored directory structure.
Question 4 :
You have the /var directory on its own partition. You have run out of space. What should you do? Choose one:
The only way to enlarge a partition is to delete it and recreate it. You will then have to restore the necessary files from backup.
Question 5 :
You have a new application on a CD-ROM that you wish to install. What should your first step be? Choose one:
Before you can read any of the files contained on the CD-ROM, you must first mount the CD-ROM.
Question 6 :
What type of server is used to remotely assign IP addresses to machines during the installation process?
You can use a DHCP server to assign IP addresses to individual machines during the installation process. Answers a, b, d, and e list legitimate Linux servers, but these servers do not provide IP addresses. The SMB, or Samba, tool is used for file and print sharing across multi-OS networks. An NFS server is for file sharing across Linux net-works. FTP is a file storage server that allows people to browse and retrieve information by logging in to it, and HTTP is for the Web.
Question 7 :
Which password package should you install to ensure that the central password file couldn't be stolen easily?
The shadow password package moves the central password file to a more secure location. Answers a, b, and e all point to valid packages, but none of these places the password file in a more secure location. Answer d points to an invalid package.
Question 8 :
When using useradd to create a new user account, which of the following tasks is not done automatically. Choose one:
The useradd command will use the system default for the user's home directory. The home directory is not created, however, unless you use the -m option.
Question 9 :
You want to enter a series of commands from the command-line. What would be the quickest way to do this? Choose One
The semi-colon may be used to tell the shell that you are entering multiple commands that should be executed serially. If these were commands that you would frequently want to run, then a script might be more efficient. However, to run these commands only once, enter the commands directly at the command line.
Question 10 :
You attempt to use shadow passwords but are unsuccessful. What characteristic of the /etc/passwd file may cause this? Choose one:
The password field must not be blank before converting to shadow passwords.
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:
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?
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?
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:
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:
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.
Question 16 :
Which of the following commands will show a list of the files in your home directory including hidden files and the contents of all subdirectories? Choose one:
The ls command is used to display a listing of files. The -a option will cause hidden files to be displayed as well. The -R option causes ls to recurse down the directory tree. All of this starts at your home directory.
Question 17 :
You have a directory called /home/ben/memos and want to move it to /home/bob/memos so you issue the command mv /home/ben/memos /home/bob. What is the results of this action? Choose one:
When using the mv command to move a directory, if a directory of the same name exists then a subdirectory is created for the files to be moved.
Question 18 :
Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file? Choose one:
There is no need to link the user's home directory to the shell command. Rather, the specified shell must be present on your system.
Question 19 :
You issue the following command useradd -m bobm But the user cannot logon. What is the problem? Choose one:
The useradd command does not assign a password to newly created accounts. You will still need to use the passwd command to assign a password.
Question 20 :
You wish to print the file vacations with 60 lines to a page. Which of the following commands will accomplish this? Choose one:
The default page length when using pr is 66 lines. The -l option is used to specify a different length.
Question 21 :
Which file defines all users on your system? Choose one:
The /etc/passwd file contains all the information on users who may log into your system. If a user account is not contained in this file, then the user cannot log in.
Question 22 :
Which two commands can you use to delete directories?
You can use rmdir or rm -rf to delete a directory. Answer a is incorrect, because the rm command without any specific flags will not delete a directory, it will only delete files. Answers d and e point to a non-existent command.
Question 23 :
Which partitioning tool is available in all distributions?
The fdisk partitioning tool is available in all Linux distributions. Answers a, c, and e all handle partitioning, but do not come with all distributions. Disk Druid is made by Red Hat and used in its distribution along with some derivatives. Partition Magic and System Commander are tools made by third-party companies. Answer d is not a tool, but a file system type. Specifically, FAT32 is the file system type used in Windows 98.
Question 24 :
Which partitions might you create on the mail server's hard drive(s) other than the root, swap, and boot partitions? [Choose all correct answers]
Separating /var/spool onto its own partition helps to ensure that if something goes wrong with the mail server or spool, the output cannot overrun the file system. Putting /tmp on its own partition prevents either software or user items in the /tmp directory from overrunning the file system. Placing /home off on its own is mostly useful for system re-installs or upgrades, allowing you to not have to wipe the /home hierarchy along with other areas. Answers c and d are not possible, as the /proc portion of the file system is virtual-held in RAM-not placed on the hard drives, and the /bin hierarchy is necessary for basic system functionality and, therefore, not one that you can place on a different partition.
Question 25 :
Of the following technologies, which is considered a client-side script?