Deck 21: Linux
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/106
Play
Full screen (f)
Deck 21: Linux
1
John needs to view the list of files and directories within the /office directory, including the files in subdirectories. Which of the following commands should he use?
A)ls /office
B)ls -l /office
C)ls -f /office
D)ls -R /office
A)ls /office
B)ls -l /office
C)ls -f /office
D)ls -R /office
ls -R /office
2
Which of the following is an advantage of using a graphical text editor in Linux?
A)Ease of use in an emergency repair situation
B)Easier to use than a text-based editor
C)Ease of use to create an emergency boot diskette
D)Ability to use and work on Microsoft Word files
A)Ease of use in an emergency repair situation
B)Easier to use than a text-based editor
C)Ease of use to create an emergency boot diskette
D)Ability to use and work on Microsoft Word files
Easier to use than a text-based editor
3
Which command can be used from the shell prompt to run the graphical version of Emacs?
A)gemacs
B)emacs -gui
C)xemacs
D)emacs -x
A)gemacs
B)emacs -gui
C)xemacs
D)emacs -x
xemacs
4
Which of the following desktop environments uses gedit as the default graphical text editor?
A)Sawfish
B)KDE
C)GNOME
D)ICE
A)Sawfish
B)KDE
C)GNOME
D)ICE
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following commands should you use to view the last few lines of your /var/xinetd.log file?
A)cat /var/xinetd.log |more
B)head /var/xinetd.log
C)less /var/xinetd.log
D)tail /var/xinetd.log
A)cat /var/xinetd.log |more
B)head /var/xinetd.log
C)less /var/xinetd.log
D)tail /var/xinetd.log
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
6
John wants to develop some computer-aided design applications on the Linux platform. Which of the following Linux distributions is best suited to do this?
A)Red Hat Desktop
B)Red Hat Enterprise Linux WS
C)Red Hat Enterprise Linux AS
D)Red Hat Enterprise Linux ES
A)Red Hat Desktop
B)Red Hat Enterprise Linux WS
C)Red Hat Enterprise Linux AS
D)Red Hat Enterprise Linux ES
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
7
You are installing a new Linux server, which will function as an e-mail server for your small business setup. Which of the following ports should you open on the host firewall?
A)120
B)280
C)125
D)143
A)120
B)280
C)125
D)143
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following partitions is used for virtual memory in a Linux system?
A)pagefile
B)/boot
C)/tmp
D)swap
A)pagefile
B)/boot
C)/tmp
D)swap
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
9
Your Linux system uses two SCSI hard disk drives. The first drive is assigned SCSI ID 0 and the second drive is assigned SCSI ID 1. Which of the following is the first partition on the second SCSI drive in the system?
A)/dev/sda1
B)/dev/sdc1
C)/dev/sdb1
D)/dev/sdd1
A)/dev/sda1
B)/dev/sdc1
C)/dev/sdb1
D)/dev/sdd1
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
10
John has a system which has 2 GB of RAM installed. How big should his swap partition be?
A)256 MB
B)1 GB
C)512 MB
D)4 GB
A)256 MB
B)1 GB
C)512 MB
D)4 GB
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following specifies where the operating system and application configuration parameters are stored on a Linux system?
A)In the text files
B)In the Registry
C)In the .ini files
D)In the system database
A)In the text files
B)In the Registry
C)In the .ini files
D)In the system database
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
12
Which command will start Quick Emacs from the shell prompt?
A)Emacs
B)qemacs
C)quickemacs
A)Emacs
B)qemacs
C)quickemacs
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is an advantage of the vi editor?
A)It provides a syntax checker.
B)It provides a menu-driven user interface.
C)It is small enough to fit on a floppy disk.
D)It can be used to edit Microsoft Word files.
A)It provides a syntax checker.
B)It provides a menu-driven user interface.
C)It is small enough to fit on a floppy disk.
D)It can be used to edit Microsoft Word files.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
14
You are working in the vi normal mode on a file. You locate a word in the file that needs to be deleted and place your cursor at the beginning of that word. Which command should you use to delete this word without deleting the space that follows the word?
A)dw
B)de
C)d$
D)dd
A)dw
B)de
C)d$
D)dd
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
15
You have a terminal window open and the current directory is /tmp. Which command should you use to open a file named ofc in the /etc/xinetd.d directory?
A)vi ofc
B)vi /tmp/ofc
C)vi /etc/xinetd.d/ofc
D)vi /etc/xinetd.d
A)vi ofc
B)vi /tmp/ofc
C)vi /etc/xinetd.d/ofc
D)vi /etc/xinetd.d
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
16
John has opened a text file named data.txt in the vi editor. He moves the cursor using the arrow keys to a position in the file where he needs to make several changes. However, when he tries to enter text nothing happens. Which of the following could be stopping John from entering text?
A)The vi editor is in insert mode. He needs to switch to command mode.
B)The vi editor is in insert mode. He needs to switch to replace mode.
C)The vi editor is in command mode. He needs to switch to insert mode.
D)The text file is corrupt.
A)The vi editor is in insert mode. He needs to switch to command mode.
B)The vi editor is in insert mode. He needs to switch to replace mode.
C)The vi editor is in command mode. He needs to switch to insert mode.
D)The text file is corrupt.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
17
You are using vi to edit a file in insert mode. You try to use the BACKSPACE key to delete a word. The editor does not respond. Which of the following could be the cause?
A)You need to switch to normal mode.
B)You need to switch to replace mode.
C)You need to switch to command mode.
D)The BACKSPACE key does not work in the vi editor.
A)You need to switch to normal mode.
B)You need to switch to replace mode.
C)You need to switch to command mode.
D)The BACKSPACE key does not work in the vi editor.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
18
You want to install Linux on a workstation. The hard drive has been wiped clean and is ready for the new operating system. You insert your first Linux installation CD-ROM in the drive and boot the system. Instead of starting the installation routine, the screen displays an error message indicating that an operating system couldn't be found. Which of the following is the most likely cause of this problem?
A)The boot device priority is set incorrectly in the BIOS.
B)The installation CD-ROM is damaged.
C)The hard drive needs to be replaced.
D)The CD-ROM drive is malfunctioning.
A)The boot device priority is set incorrectly in the BIOS.
B)The installation CD-ROM is damaged.
C)The hard drive needs to be replaced.
D)The CD-ROM drive is malfunctioning.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following specifies the location where you can find the vi symbolic link file on most Linux distributions?
A)/boot
B)/usr/bin
C)/etc
D)/var/vi
A)/boot
B)/usr/bin
C)/etc
D)/var/vi
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
20
By default, which of the following modes does the vi editor open in?
A)Normal mode
B)Command mode
C)Insert mode
D)Replace mode
A)Normal mode
B)Command mode
C)Insert mode
D)Replace mode
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
21
You have a terminal window open and the current directory is your home directory. You need to create a new file in your home directory named office.txt using the vi editor. Which of the following commands should you use to do this?
A)vi office.txt -new
B)vi office.txt
C)vi office
D)vi ~/ office
A)vi office.txt -new
B)vi office.txt
C)vi office
D)vi ~/ office
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following files is used to store user passwords on a Linux system that has been configured to use local authentication?
A)/etc/sales
B)/etc/shadow
C)/etc/passwd
D)/etc/local/accounts
A)/etc/sales
B)/etc/shadow
C)/etc/passwd
D)/etc/local/accounts
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
23
John needs to change the permissions of a file named access.odt such that the file owner can edit the file. The sales staff who are members of the group that owns the file should be able to edit it. The sales staff who are not the owners and do not belong to the owning group can view it, but not modify it. Which of the following commands will help them do this?
A)chmod 555 routine.odt
B)chmod 664 routine.odt
C)chmod 777 routine.odt
D)chmod 644 routine.odt
A)chmod 555 routine.odt
B)chmod 664 routine.odt
C)chmod 777 routine.odt
D)chmod 644 routine.odt
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following software types can be managed with a graphical software utility called YaST?
A)Text-based script files
B)Software compiled from downloaded source code
C)RPM packages
D)Programs compiled from source code written by the end user
A)Text-based script files
B)Software compiled from downloaded source code
C)RPM packages
D)Programs compiled from source code written by the end user
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following does the make install command do when installing an application from source code?
A)It copies the binary executable and other files to the appropriate directories in the file system.
B)It compiles the source code into a binary executable.
C)It checks the local system to verify that the necessary components are available.
D)It verifies that the installation files have not been corrupted or tampered with.
A)It copies the binary executable and other files to the appropriate directories in the file system.
B)It compiles the source code into a binary executable.
C)It checks the local system to verify that the necessary components are available.
D)It verifies that the installation files have not been corrupted or tampered with.
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
26
Which of the following specifies where the RPM Package Manager stores its database of installed packages?
A)/etc/rpm
B)/var/lib/rpm
C)/var/rpmdb
D)/tmp/rpm
A)/etc/rpm
B)/var/lib/rpm
C)/var/rpmdb
D)/tmp/rpm
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
27
Which of the following commands will display the UID of a user named alicewoods when entered at the shell prompt?
A)finger alicewoods
B)UID alicewoods
C)id alicewoods
D)info alicewoods
A)finger alicewoods
B)UID alicewoods
C)id alicewoods
D)info alicewoods
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
28
You want to change the owner of a file named /var/opt/confidential from alice (who is a member of the sales group) to john (who is a member of the engineers group). You want to change both user and group owners. Which of the following commands should you use?
A)chown alice john /var/opt/confidential
B)chown -u "john" -g "engineers" /var/opt/confidential
C)chown john /var/opt/confidential
D)chown john.engineers /var/opt/confidential
A)chown alice john /var/opt/confidential
B)chown -u "john" -g "engineers" /var/opt/confidential
C)chown john /var/opt/confidential
D)chown john.engineers /var/opt/confidential
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
29
You have installed a quota package on your Linux system. Which of the following parameters can you use to set quotas for the file system?
A)Permissions
B)Inodes
C)Number of Users
D)Number of Groups
A)Permissions
B)Inodes
C)Number of Users
D)Number of Groups
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
30
Which of the following mount options should you include in the /etc/fstab file to enable quotas when a file system is mounted?
A)groupquotas=on
B)fsquota
C)grpquota
D)userquotas=on
A)groupquotas=on
B)fsquota
C)grpquota
D)userquotas=on
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
31
You have installed an RPM package file named evolution-2.6.0-41.i586.rpm on your Linux system. Which of the following commands should you use to uninstall this package?
A)rpm -U evolution
B)rpm -U -remove evolution
C)rpm -e evolution
D)rpm -i -remove evolution
A)rpm -U evolution
B)rpm -U -remove evolution
C)rpm -e evolution
D)rpm -i -remove evolution
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
32
You want to check the list of commands you have executed recently. Which of the following files should you check?
A)~/.history
B)/etc/bash_history
C)~/.bash_history
D)~/.bash_commands
A)~/.history
B)/etc/bash_history
C)~/.bash_history
D)~/.bash_commands
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
33
Which of the following configuration files is read when a non-login bash shell is run?
A).bash_profile
B).bash_login
C).bashrc
D).profile
A).bash_profile
B).bash_login
C).bashrc
D).profile
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
34
You want to view a list of the aliases currently on your Linux system. Which of the following commands should you issue at the shell prompt?
A)alias -l
B)display alias
C)alias
D)show alias
A)alias -l
B)display alias
C)alias
D)show alias
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
35
John is using a shell session that has a PID of 2700. He runs the su command to change to the root user account. The su process has a PID of 2757. He then runs vi from the shell prompt as a root user. The vi process has a PID of 2957. Which of the following is the PPID of the vi process?
A)2700
B)2757
C)2957
D)2958
A)2700
B)2757
C)2957
D)2958
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
36
Which of the following is the script that will be stored in your file system when you are running Fedora Linux that uses System V init scripts?
A)/etc/rc.d/init.d
B)/etc/init.d
C)/etc/sysv/init.d
D)/etc/init.d/rc.d
A)/etc/rc.d/init.d
B)/etc/init.d
C)/etc/sysv/init.d
D)/etc/init.d/rc.d
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
37
Which of the following process will be created on a Linux system when you enter vi at the shell prompt?
A)System
B)Daemon
C)User
D)Init
A)System
B)Daemon
C)User
D)Init
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
38
Which of the following file descriptors displays text on the screen after the command has finished processing?
A)stdin
B)stderr
C)stdscreen
D)stdoutput
A)stdin
B)stderr
C)stdscreen
D)stdoutput
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
39
Which of the following best defines a zombied process?
A)A process that has stopped executing as it waits for user input
B)A process that has finished executing but whose parent process has not released the child process PID
C)A process that is traced by another process
D)A process that has gone to the sleep state and cannot be interrupted
A)A process that has stopped executing as it waits for user input
B)A process that has finished executing but whose parent process has not released the child process PID
C)A process that is traced by another process
D)A process that has gone to the sleep state and cannot be interrupted
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
40
Which of the following processes will help you kill a hung process when you know its process name only?
A)kill
B)hangup
C)killall
D)killpro
A)kill
B)hangup
C)killall
D)killpro
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
41
You want to configure your X Windows System to display your graphical desktop on a remote Linux system. Which of the following environment variables should you modify?
A)DISPLAY
B)ENV
C)XWIN
D)DESKTOP
A)DISPLAY
B)ENV
C)XWIN
D)DESKTOP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
42
Which of the following must be included at the beginning of every shell script?
A)#Comment
B)exit 0
C)#!/bin/bash
D)#begin script
A)#Comment
B)exit 0
C)#!/bin/bash
D)#begin script
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
43
Which of the following is the role of the BIOS during a system boot?
A)Creating an initrd image in a ramdisk
B)Providing a menu that chooses which operating system to boot
C)Locating a bootable storage device
D)Pointing to the operating system kernel
A)Creating an initrd image in a ramdisk
B)Providing a menu that chooses which operating system to boot
C)Locating a bootable storage device
D)Pointing to the operating system kernel
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
44
Which of the following shell commands should you use if you want to install GRUB into the first partition on your first SCSI hard disk drive?
A)grub /dev/sda1
B)grub-install /dev/sda
C)grub-install /dev/sda1
D)grub /dev/hda1
A)grub /dev/sda1
B)grub-install /dev/sda
C)grub-install /dev/sda1
D)grub /dev/hda1
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
45
Which of the following should you do after you have finished making changes to the /etc/lilo.conf file?
A)Run lilo from the shell prompt
B)Reboot the system
C)Change to runlevel 3
D)Restart the lilo service
A)Run lilo from the shell prompt
B)Reboot the system
C)Change to runlevel 3
D)Restart the lilo service
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
46
Which of the following is a location where your Linux bootloader can be stored?
A)BIOS
B)initrd image
C)MBR of a storage device
D)System chipset
A)BIOS
B)initrd image
C)MBR of a storage device
D)System chipset
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
47
Which of the following files can you use to add commands that you want to be executed every time the system boots?
A)rc
B)rc.systinit
C)boot
D)rc.local
A)rc
B)rc.systinit
C)boot
D)rc.local
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
48
Which of the following file scan be used to set the default runlevel of a Linux system?
A)/etc/inittab
B)/etc/runlevel.conf
C)/etc/init.conf
D)/etc/sysconfig/init
A)/etc/inittab
B)/etc/runlevel.conf
C)/etc/init.conf
D)/etc/sysconfig/init
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
49
Which of the following directories contains information about how IRQ channels have been assigned in the system?
A)/proc/devices
B)/proc/dma
C)/proc/interrupt
D)/proc/iomem
A)/proc/devices
B)/proc/dma
C)/proc/interrupt
D)/proc/iomem
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
50
You are configuring a dual-boot configuration with the Windows and Linux operating system. The configuration will use the NTLOADER bootloader. Where should you install the GRUB bootloader?
A)In the MBR
B)In the Linux boot partition
C)In the Windows boot partition
D)In the BIOS
A)In the MBR
B)In the Linux boot partition
C)In the Windows boot partition
D)In the BIOS
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
51
The CPU registers and the system RAM are saved into a file on the hard drive. Which of the following power management states are these in?
A)Working
B)Stand-by
C)Hibernation
D)Ready
A)Working
B)Stand-by
C)Hibernation
D)Ready
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
52
Which of the following is the location where the kernel modules are stored?
A)/lib/modules/version/drivers
B)/boot/
C)/lib/modules/version/kernel/drivers
D)/usr/modules/version/drivers/kernel
A)/lib/modules/version/drivers
B)/boot/
C)/lib/modules/version/kernel/drivers
D)/usr/modules/version/drivers/kernel
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
53
A Linux system uses X Windows as its X Server. Which of the following configuration files is used to configure the X Server service?
A)/etc/X11/xorg.conf
B)/etc/X11/XF86Config
C)/etc/X11/xwindows.conf
D)/etc/X11/XFree86.conf
A)/etc/X11/xorg.conf
B)/etc/X11/XF86Config
C)/etc/X11/xwindows.conf
D)/etc/X11/XFree86.conf
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
54
Jack has three hard drives in his Linux system available for a RAID array. Which of the following RAID levels can he configure with these drives?
A)RAID 0+1
B)RAID 1+0
C)RAID 5
D)RAID 5+1
A)RAID 0+1
B)RAID 1+0
C)RAID 5
D)RAID 5+1
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
55
Which of the following commands can be used to switch runlevels while the system is running?
A)runlevel
B)init
C)chrun
D)mode
A)runlevel
B)init
C)chrun
D)mode
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
56
Which of the following utilities should you use to configure X Windows on a Fedora Linux system?
A)xf86config
B)YaST
C)system-config-display
D)xf86cfg
A)xf86config
B)YaST
C)system-config-display
D)xf86cfg
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
57
John wants to get more information about the IDE hard drive in his system. Which of the following commands should he use from the shell prompt?
A)hddump
B)hdparm
C)lsusb
D)sg_scan
A)hddump
B)hdparm
C)lsusb
D)sg_scan
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
58
Which of the following options should you add to the kernel line in your GRUB configuration file to enable ACPI support in the Linux kernel?
A)-acpi on
B)apm=on
C)acpi=on
D)set acpi on
A)-acpi on
B)apm=on
C)acpi=on
D)set acpi on
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
59
Which of the following directories within the /etc/lilo.conf file should be used to specify the menu item that will be automatically loaded if the user does not make a selection?
A)prompt
B)image
C)default
D)boot
A)prompt
B)image
C)default
D)boot
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
60
Which of the following files is used to configure the named daemon?
A)/etc/named.conf
B)/var/lib/named/named.conf
C)/etc/named.d/named.conf
D)/var/lib/named/localhost.zone
A)/etc/named.conf
B)/var/lib/named/named.conf
C)/etc/named.d/named.conf
D)/var/lib/named/localhost.zone
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
61
Which of the following is the default document root used by the Apache2 Web server?
A)/tmp
B)/srv/www/htdocs
C)/home/httpd
D)/var/lib/httpd/htdocs
A)/tmp
B)/srv/www/htdocs
C)/home/httpd
D)/var/lib/httpd/htdocs
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
62
You want to verify that a kernel module has been loaded and an alias is created for a newly installed network board. Which of the following files should you check?
A)/etc/modprobe.conf
B)/etc/sysctl.conf
C)/etc/drivers
D)/etc/aliases
A)/etc/modprobe.conf
B)/etc/sysctl.conf
C)/etc/drivers
D)/etc/aliases
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
63
Which of the following files can be used to enable routing on a Linux system?
A)/proc/sys/net/ipv4/ip_forward
B)/proc/sys/net/ipv4/ip_routing
C)/etc/sysconfig/network/routes
D)/etc/ip-forwarding
A)/proc/sys/net/ipv4/ip_forward
B)/proc/sys/net/ipv4/ip_routing
C)/etc/sysconfig/network/routes
D)/etc/ip-forwarding
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
64
Which of the following commands should you use to add a user named alice to the smbpasswd file?
A)smbuseradd alice
B)smbpasswd alice
C)smbpasswd -a alice
D)useradd -a alice
A)smbuseradd alice
B)smbpasswd alice
C)smbpasswd -a alice
D)useradd -a alice
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
65
You want to view the contents of a NIS map. Which of the following command should you use?
A)/usr/bin/ypcat
B)/bin/ypdomainname
C)/usr/bin/ypwhich
D)/usr/sbin/yppoll
A)/usr/bin/ypcat
B)/bin/ypdomainname
C)/usr/bin/ypwhich
D)/usr/sbin/yppoll
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
66
Which of the following files is used to enable Telnet service on a Linux system?
A)/etc/telnetd.conf
B)/etc/telnetd.d/telnet.conf
C)/etc/xinitd.d/telnet
D)/var/lib/telnet/telnet.conf
A)/etc/telnetd.conf
B)/etc/telnetd.d/telnet.conf
C)/etc/xinitd.d/telnet
D)/var/lib/telnet/telnet.conf
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
67
Which of the following protocols can be used to download e-mail messages from a Mail Delivery Agent?
A)SMTP
B)HTTP
C)POP3
D)FTP
A)SMTP
B)HTTP
C)POP3
D)FTP
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
68
Which of the following commands should you use to add a default gateway router address of 10.200.100. 54 to your route table?
A)route add default gw 10.200.100.54
B)route 10.200.100.54
C)netstat -a default 10.200.100.54
D)gateway 10.200.100.54
A)route add default gw 10.200.100.54
B)route 10.200.100.54
C)netstat -a default 10.200.100.54
D)gateway 10.200.100.54
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following commands should you enter into the shell prompt if you want to use your organization's DHCP server to dynamically assign an IP address to your eth1 network interface?
A)dhcp eth1
B)get address dynamic eth1
C)dhclient eth1
D)ip address=dhcp dev=eth1
A)dhcp eth1
B)get address dynamic eth1
C)dhclient eth1
D)ip address=dhcp dev=eth1
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
70
You want to edit the configuration of an internal 56 K modem that you have installed in your Linux system recently so that it works with your ISP. Which of the following files should you edit?
A)/etc/sysconfig/network/ifcfg-modem0
B)/dev/modem0
C)/etc/sysconfig/modems/ifcfg-modem0
D)/etc/sysconfig/ppp/ifcfg-modem0
A)/etc/sysconfig/network/ifcfg-modem0
B)/dev/modem0
C)/etc/sysconfig/modems/ifcfg-modem0
D)/etc/sysconfig/ppp/ifcfg-modem0
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
71
Which of the following commands should you use to put a system into the Stand-by mode?
A)powersave -e 1
B)powersave -m
C)powersave -S
D)powersave -S1
A)powersave -e 1
B)powersave -m
C)powersave -S
D)powersave -S1
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
72
Which of the following options in your eth0 network interface configuration file should you use to get the IP address information dynamically from a DHCP server?
A)bootproto
B)startmode
C)ipaddr
D)getdhcp
A)bootproto
B)startmode
C)ipaddr
D)getdhcp
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
73
Which of the following directives contains the configuration files that the xinetd daemon uses to manage network daemons?
A)/var/lib/xinetd.d
B)/etc/xinetd
C)/etc/xinetd.d
D)/srv/xinetd.d
A)/var/lib/xinetd.d
B)/etc/xinetd
C)/etc/xinetd.d
D)/srv/xinetd.d
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
74
Which of the following shell commands will send an e-mail message to a user named jack?
A)mail jack
B)mail -s -u jack
C)mail user= jack
D)mail -s jack
A)mail jack
B)mail -s -u jack
C)mail user= jack
D)mail -s jack
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
75
You want to view a list of all users who have authenticated to the Linux system, when they are either logged in or out and where they logged in from. Which of the following log files contains this information?
A)/var/log/wtmp
B)/var/log/faillog
C)/var/log/last
D)/var/log/login
A)/var/log/wtmp
B)/var/log/faillog
C)/var/log/last
D)/var/log/login
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
76
Which of the following commands should be used to switch to the root user account and load root's environment variables?
A)su root
B)su root -e
C)su -
D)su -env
A)su root
B)su root -e
C)su -
D)su -env
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
77
You are installing Linux on a system. The Linux installation process continuously locks up. Which of the following should you do first?
A)Repartition the drive
B)Enable power management in the BIOS
C)Remove all unnecessary hardware
D)Ensure that the network card is installed prior to the installation
A)Repartition the drive
B)Enable power management in the BIOS
C)Remove all unnecessary hardware
D)Ensure that the network card is installed prior to the installation
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
78
Which of the following commands should you use if you need to view the first few lines of the /var/log/boot.msg file?
A)tail /var/log/messages
B)grep -l 10 /var/log/boot.msg
C)head /var/log/messages
D)cat /var/log/boot.msg
A)tail /var/log/messages
B)grep -l 10 /var/log/boot.msg
C)head /var/log/messages
D)cat /var/log/boot.msg
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
79
Which of the following commands will load the updatedb process and leave it running even if the user logs out of the shell?
A)updatedb
B)nohup udatedb &
C)updatedb &
D)updatedb -nohup
A)updatedb
B)nohup udatedb &
C)updatedb &
D)updatedb -nohup
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck
80
Which of the following commands should you use at the shell prompt to initially build Tripwire's database of critical system files?
A)tripwire --init
B)twinstall.sh
C)tripwire-check
D)twprint -mr
A)tripwire --init
B)twinstall.sh
C)tripwire-check
D)twprint -mr
Unlock Deck
Unlock for access to all 106 flashcards in this deck.
Unlock Deck
k this deck