Linux interview questions – page 8

517 questions. Tap “Show answer” to check yourself.

Advertisement
  1. You have made changes to the /etc/inittab file after installing your UPS. How do you institute these configuration changes without having to reboot your computer or have your users log off?Choose one:a. Issue the command source /etc/inittab.b. Change the

  2. Each entry in the /etc/inittab file contains four fields the third of which is the Action field. What is the purpose of this field?Choose one:a. Identifies the entryb. Specifies the command to executec. Defines how to handle the entry.d. Defines which run

  3. You enter the command cat horse | tr 'x' 'X'. What is the purpose of the | character?Choose one:a. The | character is used to send the output from one command to another command as input.b. The | character is used to send the input from on

  4. 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, commentb. username, UID, GID, comment, home directory, commandc. UID, username, GID

  5. You want to review the man page on the files used to control hosts access, however, when you enter man hosts_access you get the man page for the routines used to programaticlly manipulate access. What is the problem?Choose one:a. The page you are looking

  6. Your company has implemented a policy that users' passwords must be reset every ninety days. Since you have over 100 users you created a file with each username and the new password. How are you going to change the old passwords to the new ones?Choose

  7. You issue the following command useradd -m bobm But the user cannot logon. What is the problem?Choose one:a. You need to assign a password to bobm's account using the passwd command.b. You need to create bobm's home directory and set the appropria

  8. You have installed an additional set of man pages but in Spanish. You have one user who wishes to use the Spanish pages rather than English ones. What should you do to accomplish this?Choose one:a. Edit the man.config file located in that user's home

  9. You enter the command cat horse | tr 'x' 'X'. What is the result of this command?Choose one:a. The file horse will be displayed to the screen.b. Any lines in the file horse containing 'x' or 'X' will be displayed to the scr

  10. Which of the following tasks is not necessary when creating a new user by editing the /etc/passwd file?Choose one:a. Create a link from the user's home directory to the shell the user will use.b. Create the user's home directoryc. Use the passwd c

  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/MyAppb. /lib/doc/MyAppc. /usr/doc/MyAppd. In the sa

  12. You wish to have all mail messages except those of type info to the /var/log/mailmessages file. Which of the following lines in your /etc/syslogd.conf file would accomplish this?Choose one:a. mail.*;mail!=info /var/log/mailmessagesb.

  13. Advertisement
  14. What is the results of the command cat horse | tee dog?Choose one:a. The contents of the file horse would be displayed on the screen and saved in a new file called dog.b. The contents of the file horse would be displayed on the screen.c. The contents of t

  15. You are installing Linux into a computer with two IDE hard drives. You plan on dividing each hard drive into two partitions. What are the names of the partitions?Choose one:a. hda1, hda2, hda3, hda4b. hda1, hda2, hdb1, hdb2c. sda1, sda2, sdb1, sdb2d. sda1

  16. You changed /etc/lilo.conf to cause a boot: prompt to show, however, when you restart your computer you still do not have a prompt. What should you do?Choose one:a. Rename your configuration file to /etc/lilo.conf.new.b. Install the configuration changes

  17. You issue the command head *. What would the resulting output be?Choose one:a. The first ten lines of each file in the working directory would be displayed preceeded by the file's name.b. The first five lines of each file in the working directory woul

  18. You need to create a new group called sales with Bob, Mary and Joe as members. Which of the following would accomplish this?Choose one:a. Add the following line to the /etc/group file: sales:44:bob,mary,joeb. Issue the command groupadd sales.c. Issue the

  19. You wish to find the man page that discusses how to change a password. You type man password but get the message that no manual entry for password exists. What command will find the appropriate page?Choose one:a. man -C passwordb. man -k passwordc. man -c

  20. You are entering a long, complex command line and you reach the right side of your screen before you have finished typing. You want to finish typing the necessary commands but have the display wrap around to the left. Which of the following key combinatio

  21. You have a computer with Windows 95 installed and want to install Linux on it. However, there is no free space available. How could you manage to install Linux on this computer with the least amount of effort?Choose one:a. Use fips to resize the partition

  22. You have created special configuration files that you want copied to each user's home directories when creating new user accounts. You copy the files to /etc/skel. Which of the following commands will make this happen?Choose one:a. useradd -m username

  23. 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 determ

  24. Mary has recently gotten married and wants to change her username from mstone to mknight. Which of the following commands should you run to accomplish this?Choose one:a. usermod -l mknight mstoneb. usermod -l mstone mknightc. usermod -u mknight mstoned. u

  25. All groups are defined in the /etc/group file. Each entry contains four fields in the following order.Choose one:a. groupname, password, GID, member listb. GID, groupname, password, member listc. groupname, GID, password, member listd. GID, member list, g

  26. Advertisement
  27. You boot your system using LILO. Although you have four different boot images on your system, you cannot remember what you named them and you do not want to boot your default image. What should you do?Choose one:a. At the boot: prompt, press the Alt key.b

  28. After bob leaves the company you issue the command userdel bob. Although his entry in the /etc/passwd file has been deleted, his home directory is still there. What command could you have used to make sure that his home directory was also deleted?Choose o

  29. You have a problem installing an older CD-ROM drive on one of your Linux servers. You have checked the HOWTOs and FAQs but have not found your answer. Where could you go to search the newsgroups to look fora solution?Choose one:a. http://www.deja.comb. ht

  30. What happens to your ipchains settings when you reboot a machine?A) They are automatically saved.B) They are automatically saved if you set them to be.C) They cannot be saved.D) They cannot be automatically saved unless you do something like make an alias

  31. Which of the following Web sites would you go to in order to keep up with the latest Linux security information? [Choose all correct answers]A) http://www.ilda.org/B) http://www.cert.org/C) http://www.ciac.org/D) http://www.sans.org/E) http://www.lsfa.org

  32. When booting your system after installing LILO you see LIL and then nothing happens. What could be the problem.Choose one:a. LILO loaded successfully but the kernel is corrupt.b. LILO is not installed properly.c. LILO could only complete the first stage,

Advertisement