CompTIA XK0-002

CompTIA XK0-002 Linux+ Certification Exam (2005 Objectives)

Practice Test
Version 1.0

CompTIA XK0-002: Practice Exam QUESTION NO: 1 A Linux technician would like to change the default lpr queue to print to a new printer. Which file should be edited to make this change? A. /etc/printers/default.conf B. /etc/vprint C. /etc/printcap D. /etc/lpd.conf Answer: C

QUESTION NO: 2

The man page for the is command states:

The full documentation for ls is maintained as a Texinfo manual. Which of the following commands will retrieve the full documentation for the ls command? A. man -info ls B. info ls C. infoman ls D. text ls Answer: B

QUESTION NO: 4

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

tua

QUESTION NO: 3

lTe

Answer: C

sts

A. showmount e jupiter B. ls -l jupiter C. showmount -e jupiter D. ls jupiter

.co

m

Which of the following commands lists the file systems available for the NFS (Network File System) server upiter?

2

CompTIA XK0-002: Practice Exam A DHCP server has been added to the network. The local system has been reconfigured to connect using DHCP. How could an administrator restart network services and test that the interface and the DHCP server are functioning properly? A. /bin/netstat -R; ping comptia.org B. /usr/bin/network restart; ping comptia.org C. /sbin/route restart; ifconfig lo D. /etc/init.d/network restart; ifconfig eth0 Answer: D

QUESTION NO: 5 Which of the following files contains a list of file systems that can be currently mounted on the system if all supported modules have been loaded? A. /etc/filesystems B. /var/filesystems C. /dev/filesystems D. /proc/filesystems Answer: D

QUESTION NO: 6

A. ifconfig eth0 up 192.168.1.87 netmask 255.255.255.128 B. ifconfig eth0 up 192.168.1.1 netmask 255.255.255.0 C. ifconfig eth0 up 192.168.1.87 netmask 255.255.255.192 broadcast 192.168.1.255 D. ifconfig eth0 up 192.168.1.87 netmask 255.255.255.255 Answer: A

QUESTION NO: 7 Which of the following services commonly uses Port 22? A. SMTP

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

A user is unable to access the Internet from their Client. The client's TCP/IP settings are 192.168.1.87/26. The default gateway's IP address is 192.168.1.1. What command must be entered on the client machine to enable communications to the Internet?

tua

lTe

sts

.co

m

3

find / -name filename & C. B. Any Time. reports that he has access to the file ?var/mail/joe? but should not have this access. Which of the following can be used to determine who has scheduled a job? A. D.CompTIA XK0-002: Practice Exam B. DNS C. User john is forwarding all of his mail to joe.com Ac tua lTe sts QUESTION NO: 9 . User joe's email is still cached by the system although his UID (User ID) has been removed. find / filename & Answer: B "Pass Any Exam. FTP D. User john was created with the same UID (User ID) as the removed user named joe. Which of the following MOST likely caused this? A. SSH (Secure Shell) Answer: D QUESTION NO: 8 A newly created user. User john and joe are sharing a home directory. find / -name filename D." . john. but still can execute other commands while the 'find' command is searching for the file? A. who D. at -d B. whodo Answer: B QUESTION NO: 10 Which of the following commands is used to search the whole directory structure to locate a specific file.actualtests.www. C. at -l C.co Answer: A m 4 . find filename > background B.

rpm? A. Any Time. D.co A recent hard drive addition to a server has a problem: the administrator has to manually mount the drive every time the server is rebooted. Silicon Graphics MIPS processor C.i686. IEEE-1394 card C. Edit the /etc/fstab file.www. IBM PowerPC processor Answer: C QUESTION NO: 14 A USB memory stick is plugged into a server. but the mount command generates the following error: "Pass Any Exam. Intel Pentium III processor D. C. They have a limited budget.com 5 Ac QUESTION NO: 13 tua Answer: B lTe A. sts . Which of the following is the MOST important hardware investment for this user? A. Which of the following needs to be done in order to resolve this issue? m . HP Alpha processor B.5.3-100." .CompTIA XK0-002: Practice Exam QUESTION NO: 11 A company wants to install a Linux server to act as an internal file and print server. Change the default run level in /etc/inittab. Hard drive Answer: D QUESTION NO: 12 Which of the following processors would be fully supported by glibc-2. Video card B. B. Processor D.actualtests. Load a kernel module for the drive. Edit the /dev entry for the device.

/dev/sda does not exist. mkisofs /tmp/tocd | cdrecord dev=0.rpm Answer: B QUESTION NO: 16 Answer: A QUESTION NO: 17 A user wants to copy files in the directory /tmp/tocd to the first recordable CD-ROM (CDRW) device. httpd tua Which of the following services is commonly started from xinetd? lTe sts .rpm B. D.rpm C. B. Any Time. fingerd B.rpm D. dd if=/tmp/tocd of=/dev/write "Pass Any Exam.CompTIA XK0-002: Practice Exam mount: special device /dev/sda1 is not a valid block device Which of the following is the MOST likely cause of this error? A. sendmail C. Which of the following commands could do this? A. rpm -i samba. mkisofs -o /dev/cd /tmp/tocd B. rpm -c samba.0.co m 6 .com Ac A. The kernel module loader is not available.actualtests. smbd D." . A USB 2. rpm -v samba. rpm -V samba.0 socket.0 C. Answer: A QUESTION NO: 15 Which of the following commands can be used to confirm checksums on the Samba package? A. The USB memory stick is not formatted. C.www.0 device was plugged into a USB 1.

Which of the following would accomplish the goal? A.com 7 Ac tua lTe A.actualtests.www. bash -r QUESTION NO: 19 Answer: C QUESTION NO: 20 An administrator types the command s xl and the following is a portion of the output obtained: F UID PID PPID NI VSZ RSS WCHAN TTY TIME COMMAND . ps -au root D. rbash C. cat /proc/sys/proc sts Which of the following commands is used to show all of the root processes running on a system? . ." . 4 0 1707 1706 15 2304 830 wait4 tty1 0:00 -bash 4 0 1708 1706 15 4804 420 wait4 tty1 0:00 awk 4 0 1701 1707 15 4304 820 wait4 tty1 0:00 nmap 4 0 1836 1713 15 4405 941 wait4 tty1 0:00 vi 4 0 1921 1707 15 7205 820 wait4 tty1 0:00 xterm Which process number should be killed to stop the map?and term?processes? "Pass Any Exam. exec bash B. cdrecord -R /tmp/tocd Answer: B QUESTION NO: 18 The company hires a temporary employee and wants to provide limited access to its production server. jobs 0 C. psroot B.CompTIA XK0-002: Practice Exam D.co m Answer: D . bash -limited D. Any Time.

1921 B. Edit the /etc/sysconfig/policies file lTe A user needs the ability to create new users on a system. DNS B. 1707 Answer: D QUESTION NO: 21 Which of the following virtual console sessions does XFree86 use by default? A." .actualtests. 1 D. Any Time. 5 B.CompTIA XK0-002: Practice Exam A. 7 C. 15 D. 820 C. How can the user be given this privilege without the root password? sts QUESTION NO: 22 .co m 8 .www. SMB Answer: D "Pass Any Exam.com Ac tua A. Make the user a member of the operator group B. FTP D. Grant the user execute privileges to useradd. Add the user to the /etc/sudoers file C. groupadd. POP3 C. and usermod D. 3 Answer: B Answer: B QUESTION NO: 23 Which of the following services commonly uses Port 139? A.

. Password attributes in /etc/passwd are moved to a corresponding entry in a new /etc/shadow file. Entries in the /etc/passwd file are added to a new /etc/shadow file. cat /dev/random > /var/log/messages B." .actualtests. /etc/passwd is renamed to /etc/shadow and a new soft link is created.CompTIA XK0-002: Practice Exam QUESTION NO: 24 The /var/log/messages file was deleted and the syslog daemon did not recreate it. D. Any Time.co m If the /etc/shadow file does not exist when pwconv is run. syslogd --recreate-file C. named B. which of the following will occur? . Which of the following commands would remedy this situation? A. mkswapfs "Pass Any Exam. B. kerneld C. Which of the following daemons should the administrator verify is running? tua lTe sts A.com 9 Ac Users begin reporting 'Unable to obtain IP address' error messages. touch /var/log/messages D. The system will give an error message. dhcpd D. The /etc/passwd file is unchanged. routed Answer: C QUESTION NO: 27 Which of the following commands creates a swap file system? A. C.www. logform /var/log/messages Answer: C QUESTION NO: 25 Answer: D QUESTION NO: 26 A.

Which of the following can be used to determine which commands are available? A. export PATH=$PATH:/usr/local/program1/bin lTe What command should be run in order to add /usr/local/program1/bin to the path and make it active in the current shell? sts QUESTION NO: 29 . Any Time.www. & B. man D. help Answer: D "Pass Any Exam. the only information showing is the prompt. mkswap D.actualtests. manual B." . PATH=$PATH:/usr/local/program1/bin B. locate C. X C. Which of the following appears after a user's name in the /etc/passwd file when a user account is disabled? A. setenv PATH=$PATH:/usr/local/program1/bin D.com Ac tua A. * Answer: D Answer: D QUESTION NO: 30 When a user begins to use a shell. swapon C. mkswapfsiso Answer: C QUESTION NO: 28 Shadow passwords are disabled on a Linux server. ? D. setpath PATH=$PATH:/usr/local/program1/bin C.CompTIA XK0-002: Practice Exam B.co m 10 .

conf initdefault 5 C.conf initdefault 3 Answer: A "Pass Any Exam. dhcp B. snmp C. inittab id:5:initdefault: D.www. netstat -a | grep ftp C.CompTIA XK0-002: Practice Exam QUESTION NO: 31 Which of the following commands can be used to confirm that the FTP server is listening? A. In order to correct this. netstat -a ftp B. inittab id:3:initdefault: B." . sysinit.actualtests. rpc D. netstat -u | grep ftp D. which file needs to be edited and what is the correct parameter? tua QUESTION NO: 33 lTe sts . ftp Answer: C A. netstat | grep ftp Answer: B QUESTION NO: 32 Which of the following protocols is used by NIS? A.co m 11 . sysinit.com Ac A Linux machine always reboots shortly after the boot loader completes. Any Time. The system should boot into multi-user mode with a non-graphical interface.

128 gw 192. Install an X server on the local client.0 netmask 255.100. How can this be made secure? .168.255.168.0 netmask 255.200. Configure local X server to allow the remote host.200.5? A.255.5 D.192 gw 192. the administrator added a rule to deny traffic on Port 22. Restart the SSH service "Pass Any Exam.100. route 192.255.192 gw 192.255. In the application's specific codec directory Answer: D QUESTION NO: 37 When remotely administering a Linux machine using SSH (Secure Shell).128 gw 192. Any Time.com 12 Ac tua lTe sts A.0 netmask 255.168.0 netmask 255. where should it be placed? A. . B. route add -net 192. As an accessible device in /dev C. Use SSH (Secure Shell) to forward X11.100.CompTIA XK0-002: Practice Exam QUESTION NO: 34 Which of the following commands would ensure that the Linux server would send packets destined for 192. Once the correct codec is received.100." . In the user's home directory D.0/25 to 192.168.www. SSH is now no longer accepting connections.255. D.5 B.168. In the program's source directory.200.co m A Linux user wants to access the X interface on a remote server.168. route 192.5 Answer: C QUESTION NO: 35 Answer: A QUESTION NO: 36 An error was returned stating that the proper MPEG-2 codec could not be found. route add -net 192.255.255. then compiled into it B.5 C. Which of the following would resolve this problem? A.168.200. C.200. Install a secure version of X.168.100.168.actualtests.255.168.

old /home/joe/help B.co m 13 . Sound card C. ln -s /tmp/help. Keyboard Answer: B QUESTION NO: 40 Which of the following can be used to determine if the entries in /etc/shadow are corrupt? A. From the system console.com Ac tua lTe sts QUESTION NO: 39 . ln -s /home/joe/help /tmp/help.CompTIA XK0-002: Practice Exam B.www. ln -v /home/joe/help /tmp/help. passwd B. Mouse B. Any Time.old? A." .old Answer: C DMA (Direct Memory Access) is required for which of the following items? A. grpck D. Serial port D. Remove the rule before it is activated Answer: B QUESTION NO: 38 Which of the following commands can be used to create a link to the file /home/joe/help in /tmp/help. SSH to Port 23 and remove the rule D.actualtests.old D. remove the Port 22 rule C. ln -s help help. pwd C. pwck Answer: D "Pass Any Exam.old C.

Answer: A QUESTION NO: 44 Which of the following commands will display the last 15 lines of an application log? A.128.5.4. 1755 B.168. The administrator has verified that the default gateway setting is correct.168.4. The netmask is wrong and should be changed to 255. D.0. Any Time.com 14 Ac A Linux workstation that has been configured with the IP address of 192. chmod 077 file B. The Ethernet card is faulty. The Ethernet cable is faulty. C. B. 1777 C.168. It can ping a server at 192.168. 0222 .255.3. The workstation cannot ping a second server at 192. chmod 777 file D. The netmask is wrong and should be changed to 255.4.255.1.255. chmod 700 file Answer: D QUESTION NO: 42 Answer: B QUESTION NO: 43 A.250.255.CompTIA XK0-002: Practice Exam QUESTION NO: 41 Which of the following commands will secure a script file so it could be modified only by the owner? A. chmod 770 file C. 0755 D.actualtests.235/26 and a default gateway of 192. grep -l 15 | cat "Pass Any Exam.www. Which of the following is the problem? tua lTe sts A." .co m Which of the following are the default permissions of /tmp? .

Which of the following shell commands will do this? lTe sts . Which of the following commands should the network administrator have issued? A. cat filename | more 15 C.conf file B. IP forwarding is not working.CompTIA XK0-002: Practice Exam B. Run echo "1" > /proc/sys/net/ipv4/ip_forward --save D. Edit the /etc/sysctl.conf.com 15 Ac tua A user wants the script ame1 to process the contents of the file ame2 then redirect the output to the program ame3. /etc/hosts is used for all NIS.actualtests. Any Time. B. Restart the network daemon C. Run save proc Answer: A QUESTION NO: 46 A. what does the following line do? ~ hosts: nis files dns A. and DNS lookups. name1 < name2 | name3 C. NetBIOS." . NIS is used first for hostname resolution. "Pass Any Exam. tail 15 filename Answer: D QUESTION NO: 45 A network administrator has enabled IP forwarding on a Linux server with the following command: echo "1" > /proc/sys/net/ipv4/ip_forward After the server is restarted several weeks later. cat filename | less 15 D. name1 > name2 | name3 D.co m .www. name1 | name2 < name3 B. name1 | name2 > name3 Answer: B QUESTION NO: 47 In the file /etc/nsswitch.

NIS requests are forwarded to DNS. find -name rpm | grep <filename> D.co m 16 . whois B. DNS. ipuser D.arpa file. B. Update the resolv.hints file. fuser lTe The administrator notices malicious network traffic from the example. rpm -query <filename> C. D. whoip C.root file.CompTIA XK0-002: Practice Exam C.com administrator. Update the in-addr.www. rpmfind <name of package> Answer: A "Pass Any Exam. D. C. rpm -qa | grep <name of package> B. and remote files.com Ac tua A. Update the named." . Any Time.com domain and would like to contact the example. Update the root.conf file.actualtests. Answer: B QUESTION NO: 48 The DNS administrator learns that the IP address of one of the Internet root name servers has been changed. Answer: C QUESTION NO: 49 Answer: A QUESTION NO: 50 A system administrator wants to see if an RPM package is installed on a user workstation. Which of the following commands would display contact information for this domain? sts . Which is the next course of action? A. Which of the following commands should be used? A. NSS (Network Security Services) lookup is enabled for NIS.

All hidden files D.co m 17 . README.CompTIA XK0-002: Practice Exam QUESTION NO: 51 Which of the following files is commonly included with source code to automate the compilation? A.com Ac Which of the following tools can be used to identify poor password usage from the user by auditing password usage? tua lTe sts . Auto.so B." .actualtests.config D. Makefile Answer: D QUESTION NO: 52 The following command run as root will search the system for which of the following? find / -name '.*' A. crypt C. All directories Answer: C QUESTION NO: 53 A. crack D. Any Time.www. All files created in / B. Autorun C. All files created today C. crackpasswd B. passwd Answer: C QUESTION NO: 54 Which of the following commands can be used to find all instances of files in the /etc directory containing tp in the file name? "Pass Any Exam.

nmap D. swap D. arp B. vfat C. ifconfig C.CompTIA XK0-002: Practice Exam A.actualtests.co m 18 .www. MPEG-2 encoder D. find ntp* D. Sound card tua lTe A technician is creating MPEG-2 video files in Linux. find *ntp B. find /etc/ntp Answer: B QUESTION NO: 55 Which of the following is a common tool used to determine what services and ports are running on a remote Linux box? A. reiserfs Answer: C "Pass Any Exam. ext3 B.com Ac A. netstat Answer: C QUESTION NO: 56 Answer: C QUESTION NO: 57 Which of the following file systems are compatible with a partition that is typed as 82? A. find /etc/*ntp* C. Any Time. MPEG-2 capable camera C. XFree86 B." . which of the following multimedia components is also required? sts . In addition to a video card with input source.

"Pass Any Exam. rw-r--r-Answer: D QUESTION NO: 59 Answer: D QUESTION NO: 60 A user created the following grub.gz title Linux Server (2." .4.htaccess D. B. default=0 timeout=10 splashimage=(hda1)/grub/splash.co Which Apache configuration file controls the mapping of SSL certificates? m .4.0). srm. D.actualtests. .conf B.CompTIA XK0-002: Practice Exam QUESTION NO: 58 The UMASK value is set to 22 Which of the following will the default permissions be on lilename. The correct path should be /boot/vmlinuz-2. The root partition should be mounted "rw". C.22. Any Time. not (hda1).22 ro root=LABEL=/ hdc=ide-scsi rhgb initrd initrd-2.22) root(hda1) kernel /vmlinuz-2.www. not "ro".xpm.22 Which of the following is wrong with this file? A. The hard drive label should be (hd0.4.conf file. httpd. The splashimage should not be gzipped.com 19 Ac tua lTe sts A.conf .conf C. r-xr-wr-w D. access. rwxr-xr-x B. ----w--wC.4.txt when the file is created? A.

co m ." . an automatic disk check is run and numerous inode errors are reported and corrected. After reboot.actualtests. jfs Answer: A "Pass Any Exam. Any Time. chmod u+wx B.www. John currently has read-only permission. ext3 C. killall -HUP sendmail B.com 20 Ac tua lTe sts . Which of the following commands can be used to add write and execute permissions for him without changing anyone else's permissions? A. /etc/init. chown -f Answer: A QUESTION NO: 62 Which of the following commands should be run after editing the /etc/aliases file in order for sendmail to recognize any changes to that file? A. chown -u +wx D. chmod 700 C. write. and execute permissions to the following file: /home/john/resume. makemap newaliases D. newaliases Answer: D QUESTION NO: 63 A Linux system is powered down unexpectedly.d/aliasd restart C. ext2 B. ReiserFS D. Which of the following file systems was MOST likely used? A.CompTIA XK0-002: Practice Exam Answer: A QUESTION NO: 61 A user named 'john' needs to have read.

actualtests. dd sts .www. Which of the following commands will do this? m .conf B. /etc/acpi. nispasswd D. which of the following files would be edited to map the power button to the desired command? A. which of the following directories would MOST likely be on a separate partition? "Pass Any Exam. /etc/acpi/events/power C. cpd C. yppasswd Answer: B QUESTION NO: 65 Answer: D QUESTION NO: 66 If a system uses ACPI (Advanced Control and Power Interface). cp --disk D." .conf Answer: B QUESTION NO: 67 When a file server is installed. xcopy B. Any Time. /etc/modules. ypcat passwd C.CompTIA XK0-002: Practice Exam QUESTION NO: 64 Which of the following commands can be used to verify that an NIS client is reading authentication information from the NIS server? A. /proc/acpi/powerbutton D. ypwhich B.co A user wants to create an image of a system boot disk in order to copy it.com 21 Ac tua lTe A.

/usr C. /home D. NVRAM Answer: B QUESTION NO: 70 The following line is found in /etc/inittab ~ 3:2345:respawn:/sbin/mingetty tty3 ~ What is the meaning of the second field in this configuration line? A.www. Any Time.CompTIA XK0-002: Practice Exam A. C. Creates a new file called 'hello' and sends it to all users. Appends 'hello' to the end of the file llusers? if it exists. Answer: B QUESTION NO: 69 Which of the following is the economical choice for high capacity off-site archiving? A. SCSI B." . Sends the message 'hello' to all users on the system.co m . B.com 22 Ac tua lTe sts . /var B. A list of runlevels B. A timeout value "Pass Any Exam.actualtests. Optical Recordable D. D. which of the following would be accomplished? echo hello >> allusers A. Tape C. Sends the message 'hello' to all currently logged in users. /local Answer: C QUESTION NO: 68 If the command below is executed in a user's home directory.

A terminal id Answer: A QUESTION NO: 71 An administrator wants to install Linux onto a computer that does not have a CD-ROM drive.5" diskette drive. Which of the following is the BEST way to complete the installation? A. Any Time.www. ps --all | grep john B. Install via NFS (Network File Server) from a Web server. ps -r john D. B. Install via TFTP (Trivial File Transfer Protocol) from the network.actualtests. at -m Answer: A "Pass Any Exam. crontab -l B. Which of the following commands would accomplish this? A. D. Install via FTP from an FTP server.com Ac tua lTe sts . crond -q D." .CompTIA XK0-002: Practice Exam C. ps -U john C. Copy the CD-ROM files to the machine using the 3. Answer: B QUESTION NO: 72 The system administrator needs to examine the processes owned by the user with the login 'john'. A flag or option code D.co m 23 . cat /proc/timer/crond C. C. ps john Answer: B QUESTION NO: 73 Which of the following commands can be used to verify if a specific cron job is scheduled? A.

and packet logging .cshrc C. jfs Answer: B QUESTION NO: 75 Answer: D QUESTION NO: 76 How can a user change their default BASH shell prompt? A. password cracking. and malware detection B. vulnerability assessment. reiserfs D. Intrusion detection. packet sniffing. Which of the following is the appropriate shell to set? A. Intrusion detection. Change the $PROMPT variable in ~/.co m The primary usages of the Snort application include which of the following? .CompTIA XK0-002: Practice Exam QUESTION NO: 74 Which of the following file system types should be used for the /boot partition. /bin/false "Pass Any Exam. Intrusion detection. virus detection. Change the $PS1 variable in ~/.cshrc D. ext2 C. ext3 B. and network mapping C. /bin/disable B. Change the $PS1 variable in ~/. Change the $PROMPT variable in ~/.profile Answer: A QUESTION NO: 77 A system administrator wants to disable shell access for a user. /bin/sh C. Intrusion detection.profile B. and network scanning D. assuming it should be accessible from a minimal boot kernel? A." .com 24 Ac tua lTe sts A.actualtests. Any Time.www.

168.0.255.www. Sets eth0 to listen for all addresses.168. Any Time.co m 25 . dmesg B.168." . the eth0 will be set to 192. At the next reboot. D.120 on eth0.0 up Which of the following will this command accomplish? A.120.120. Quits and restarts sendmail every five minutes D. Processes mail every five minutes Answer: D "Pass Any Exam.168. Which of the following files can be viewed to determine the source of the problem? sts QUESTION NO: 79 .CompTIA XK0-002: Practice Exam D.0.0.0. Answer: B Answer: D QUESTION NO: 80 What are the results of the following command? sendmail -qp5m A. B. wtmp D.com Ac tua A. messages lTe A daemon unexpectedly terminates. Adds an alias for 192.120 netmask 255. Processes mail in blocks of five messages B.log C.actualtests. /bin/passwd Answer: C QUESTION NO: 78 The following command is about to be executed: ifconfig eth0 192. boot.255. Sets eth0 to 192. C. Limits queue to five messages C.

conf D. Which of the following must be edited to accomplish this? A. ~/. Boot using a rescue disk." .conf file and run "fixboot --mbr -t lilo".co m . named. verify the lilo.conf file and run "fdisk /mbr". How can this be fixed? A.com 26 Ac tua lTe sts . /etc/group C. resolv. verify the lilo.www. Boot using the Linux distribution installation CD and run fsck on the /boot partition. nameserver. B. D.actualtests.conf.conf B. Any Time. Answer: B QUESTION NO: 82 A set of computers is used for technical support.conf C.bashrc B. C.conf Answer: D QUESTION NO: 84 The administrator needs to set permissions on the /tmp directory as follows: drwxrwxrwt 9 root root 4096 Jun 13 09:42 tmp "Pass Any Exam.conf D. and run lilo.conf Answer: C QUESTION NO: 83 An administrator wants to add a new forward DNS Zone file to the Linux DNS server. /etc/pam. Boot using a rescue disk. dns. verify the lilo.CompTIA XK0-002: Practice Exam QUESTION NO: 81 The MBR (master boot record) created from lilo on a system is corrupt. The manager has asked that users have restricted time periods in which they can login. /etc/logon. Which of the following files should be edited to ensure the server will return answers for this zone? A. Boot using a live CD distribution and run chroot.

com Ac A. /proc B.actualtests.noatime. /var Answer: A QUESTION NO: 86 Answer: C QUESTION NO: 87 Which of the following settings of the UMASK would cause new files to be created with mode 640? A.www. Any Time. /usr C.noatime. 367 C.noatime. 177 D.notail 0 0 B.notail 0 0 tua Which of the following is a valid entry for /etc/fstab? lTe sts . /dev/hdb1 /mnt/hdb1 reiser defaults. 640 "Pass Any Exam. /dev D. chmod 2777 /tmp C. /dev/hdb1 /mnt/hdb1 ext3 defaults. chmod 4777 /tmp Answer: C QUESTION NO: 85 Where is the ACPI (Advanced Control and Power Interface) power management dynamic information stored when devfs is compiled into the kernel? A.notail 0 0 D. 037 B. chmod 1777 /tmp D. chmod 0777 /tmp B.notail 0 0 C. /dev/hda1 /proc/hda1 ntfs defaults.noatime." .co m 27 . /dev/hd1 /mnt/hda1 ntfs defaults.CompTIA XK0-002: Practice Exam Which of the following commands will accomplish this? A.

httpd -r /home/user/html Answer: B QUESTION NO: 90 After properly installing both the sound card and modules. Add enyLogin to /root/. but no sound was heard.co m .actualtests. B. The sound module was not added to the kernel. The sound card does not support MP3 playback. Answer: D QUESTION NO: 91 Before performing a new Linux server installation. The sound card is not on the HCL (Hardware Compatibility List). the technician attempted to play an MP3 file.com 28 Ac tua lTe sts . Add ermitLogin no to /root/.ssh/sshd_config B. Which of the following is MOST likely to be the problem? A.CompTIA XK0-002: Practice Exam Answer: A QUESTION NO: 88 How should a Linux administrator prevent the root user from logging in remotely via SSH (Secure Shell)? A.ssh/sshd_config D. Add enyRootLogin to /etc/ssh/sshd_config Answer: B QUESTION NO: 89 How can the Apache working directory be set to /home/user/html from the command line? A. Any Time. D. Add ermitRootLogin no to /etc/ssh/sshd_config C. The ALSA (Advanced Linux Sound Architecture) sound server was not started. httpd --root /home/user/html B. httpd --directory /home/user/html D. httpd -d /home/user/html C. what part of the installation should be planned and documented? "Pass Any Exam." .www. C.

root password. Change the Webserver TTL (Time-To-Live) record to 5 minutes. :30s/test/TEST/g B. Partition map. user passwords C." . Which of the following is the BEST way to minimize the downtime? A. partition map. where should the system be placed on the network? sts . Any Time. Change the Webserver PTR record to the new hostname. On an isolated network segment B.30s/test/TEST/g C.www. required services. Any downtime would have a major impact. On the network perimeter C. required services.com Ac tua A. Update /etc/resolv. On the core network router lTe When a new Snort system is installed.co m 29 . D. Near the system administrator's workstation D.conf on the Webserver. required packages. Notify the domain registrar of the change in advance. performance baseline D.CompTIA XK0-002: Practice Exam A. performance baseline B. :s/test/TEST/g D. :/s/test/TEST/g Answer: B QUESTION NO: 93 Answer: B QUESTION NO: 94 The DNS administrator needs to change the IP address of the primary Webserver. C. Partition map. required packages. partition map Answer: D QUESTION NO: 92 How can a Linux user use vi to edit the first 30 lines of a 60-line file and replace all occurrences of test to TEST? A.actualtests. System hardware. B. Answer: B "Pass Any Exam. daemon configuration. required packages. System hardware. :1.

Any Time. Which of the following is the FIRST step the new administrator should do to reset the root password? A.co m .com 30 Ac tua lTe sts . var D. Answer: B QUESTION NO: 96 Which of the following encryption algorithms are natively supported for the /etc/shadow file? A. twofish C.actualtests. 3DES D. C. D. Boot to single user mode." . B. Reinstall the operating system. Use view to edit the password file. sar Answer: D QUESTION NO: 98 Which of the following is the FIRST step that should be taken prior to installing Linux on new hardware? "Pass Any Exam. DES B. RC4 Answer: A QUESTION NO: 97 Which of the following is the BEST tool to measure system performance baseline over a period of time? A.CompTIA XK0-002: Practice Exam QUESTION NO: 95 A new administrator is asked to reconfigure a Linux machine.www. The prior administrator did not give the root password to the current administrator. netstat B. Run a password recovery utility. pmap C.

myData D. printData > myData C. printData .co m 31 . RAID 3 C. RAID 1 D.www. RAID 0 lTe Which of the following RAID configurations is BEST for a streaming-video server where reliability is NOT important? sts QUESTION NO: 100 . printData < myData Answer: D "Pass Any Exam. mail someone@localhost -s 'Our Aliases' < /etc/aliases Answer: D Answer: D QUESTION NO: 101 Which of the following strings indicates that the input of the program called printData should be redirected from the file called yData? A.com Ac tua A. Run the sysprep utility from the Linux vendor's CD. RAID 5 B. B. sendmail someone@localhost -s 'Our Aliases' > /etc/aliases D. C. Any Time. printData | myData B. postfix someone@localhost -s 'Our Aliases' < /etc/aliases C. Download all appropriate device drivers from the Linux vendor's Website.CompTIA XK0-002: Practice Exam A. Answer: B QUESTION NO: 99 How would a user send /etc/aliases as the text of an email to another user on the same system? A. Review the HCL (Hardware Compatibility List) on the Linux distributor's Website. Verify that the hard drive has been formatted. D.actualtests." . wall -s 'Our Aliases' > /etc/aliases B.

Which method is considered best practice? m 32 . FILES C. Edit /etc/hosts.com Ac tua lTe A. /etc/host.lpd to only include the database server sts .conf D.allow Answer: D QUESTION NO: 105 Using SSH (Secure Shell)." . /etc/resolv.www. Any Time. HOME D. /etc/hosts B. SHELL B. what is the correct syntax for the user doe4?to login remotely to the example. Edit /etc/printcap and add a filter to only include the database server B.conf C.com server? "Pass Any Exam.actualtests. PATH Answer: C QUESTION NO: 103 Answer: D QUESTION NO: 104 Which of the following files should be edited to provide static name to IP address mapping? A. Limit file permissions on the spool directory to users on the database server D.co A Linux print server must limit access to its printers. Only the database server must be allowed to print. Limit file permissions on the printer filter to users on the database server C.CompTIA XK0-002: Practice Exam QUESTION NO: 102 Which of the following environment variables specifies the location where user files are stored by default? A. /etc/hosts.

ssh jdoe4 example.actualtests. Which of the following is the correct parameter to pass to the kernel at boot time? sts .com B.CompTIA XK0-002: Practice Exam A. ssh --user jdoe4@example. hosts." .com jdoe4:password Answer: A QUESTION NO: 106 How could a user substitute all instances of C with omputer in a file named nstructions and display the results in the terminal window? A.com Ac A.co m 33 . Any Time. ssh -l jdoe4 example. sed s/PC/computer/g instructions D. ssh example. block-cpu-1 D.com D.allow "Pass Any Exam. a technician needs to boot an SMP (Symmetric Multi-Processor) system to use a single CPU. cat instructions | awk C omputer B.com C. sed -s PC -r computer instructions Answer: C QUESTION NO: 107 Answer: B QUESTION NO: 108 LPR access for specific hosts can be configured in which of the following files? A. enable_smp=no tua lTe For troubleshooting. disable-smp B. cat instructions | awk '/PC/ print omputer' C. hosts. lpd. nosmp C.www.equiv D. printcap C.allow B.

which of the following needs to be done to implement the changes? A.co m . loadlin D. M C. fdisk-mbr B.com 34 Ac tua lTe A. The server is now generating I/O errors when the kernel module for the network card is loaded. R D. Reconfigure the network card to use a different IP address. lilo. Which of the following actions will solve the problem? . Any Time. which of the following interactive commands in op will display the process with highest memory usage? A.www." . Change the server BIOS setting to disable the network card BIOS. sts A technician added a PCI network card to a stable Linux server. I B. Move the network card to another available slot. Disable the power management in the BIOS.actualtests. C. B.conf C. D. lilo Answer: D QUESTION NO: 110 Answer: D QUESTION NO: 111 When the application op is used.CompTIA XK0-002: Practice Exam Answer: C QUESTION NO: 109 After the LILO configuration file is edited. L Answer: B QUESTION NO: 112 "Pass Any Exam.

actualtests. In an office. In a binder. to be filed and labeled appropriately with the rest of the system documentation tua After the Linux technician has completed the server configuration documentation.conf B. securely stored in an area located near the server C. located in a secure off-site facility B. NIS B. according to best practice? lTe QUESTION NO: 114 sts . In an approved fire-proof container. Imapd D.CompTIA XK0-002: Practice Exam Which of the following contains user default configuration files and directories? A. Makefile "Pass Any Exam.make B.in D. Config. In a predetermined secure location on-site." . /etc/skel C. Samba Answer: A Answer: B QUESTION NO: 115 Which of the following is the default file name for the ake command? A.www. Config. /usr/default. where should this documentation be stored.com Ac A.conf D. but not in the server room D.co m 35 . Any Time. Make C. NFS (Network File System) C. /usr/config Answer: B QUESTION NO: 113 Which of the following packages is needed on a server to allow other Linux workstations to authenticate local users through the server? A. /etc/users.

LDAP B. Which of the following must the system have to allow this to work at full functionality? A. 64 bit processor Answer: A QUESTION NO: 119 "Pass Any Exam. MD4 C.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 116 A company currently has four Linux servers and wants to install a fifth server to perform user authentication.com Ac QUESTION NO: 118 tua lTe sts . 64 bit memory path D. 64 bit diskette C." .co m 36 . 3DES Answer: A QUESTION NO: 117 When a RAID 5 array is configured with a hot-spare disk under Linux. Which of the following is a valid protocol for centralized user authentication? A. Any Time. 3 D.www. which of the following is the minimum number of drives required? A. 2 Answer: B A Linux technician is preparing to install a 64-bit Ultra 320 SCSI PCI controller on a x86 system.actualtests. 5 B. 4 C. 64 bit PCI slot B. SHA1 D.

Issue the command "mount /dev/dvdrom /mnt/dvdrom". B. B. gzip archive D. Check the Linux distribution's Website. then re-issue the mount command. Check the /dev directory.actualtests. D. C. the error "mount: no medium found" is returned. Create the directory /mnt/dvdrom." . Check the /etc/sysconfig directory. After issuing mount /mnt/dvdrom. C.co m 37 . How can the Linux technician confirm that the device is supported by the Linux distribution? A. the user decides to test the DVD drive to ensure it was installed properly.com Ac After setup has completed. Which of the following actions will MOST likely solve this problem? tua lTe sts . bzip2 tarball Answer: D QUESTION NO: 121 A. D. The model number is available to identify the card. Ensure that /mnt/dvdrom has an entry in /etc/fstab.CompTIA XK0-002: Practice Exam A telecommunications controller will be installed in a Linux server. lha tarball C. Check the government's telecommunications Website. Answer: C QUESTION NO: 122 Which of the following is used to register a new printer with CUPS on a system using default settings? "Pass Any Exam. Any Time. jar archive B.www. Insert a DVD into the drive. Answer: A QUESTION NO: 120 When executed. what type of installation file is created by the following command? tar cvvjf filename file4 file2 file12 A.

CompTIA XK0-002: Practice Exam A. cupsctl B. edit /etc/cups/printcap C. lynx http://127.0.0.1:631 D. cups --add-printer Answer: C

QUESTION NO: 123 A Linux technician needs to check the current resource utilization for processes. Which of the following commands should be used? A. netstat B. top C. sar D. pmap Answer: B

QUESTION NO: 124

drwxr-sr-x 2 578 578 4096 Jun 13 13:50 user1 The output indicates which of the following?

A. The user1 directory has 578 inodes. B. User1 is a system administrator. C. The user1 directory is now owned by user 578. D. The user1 entry was deleted from /etc/passwd. Answer: C

QUESTION NO: 125 Which of the following files can be edited to enable the Telnet service? A. /etc/xinetd.d/telnet B. /sbin/init C. /bin/init "Pass Any Exam. Any Time." - www.actualtests.com 38

Ac

tua

lTe

The administrator issues the 'ls -l /home' command and sees the following output:

sts

.co

m

CompTIA XK0-002: Practice Exam D. /etc/init.d/telnet Answer: A

QUESTION NO: 126 Which of the following services needs to be installed on a server to support new diskless client workstations? A. PXE (Preboot eXecution Environment) and tftpd B. named and httpd C. remoted and dhcpd D. dhcpcd and rexec

QUESTION NO: 127

Answer: D

QUESTION NO: 128

A Linux system is configured with a RAID 5 array consisting of six 20GB hard drives. How much usable storage space is available? A. 100 B. 120 C. 80 D. 50 Answer: A

QUESTION NO: 129

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

tua

lTe

A. rpm -Uvh B. rpm -i C. rpm --list D. rpm -qa

sts

Which of the following commands will list all RPM packages installed on the system?

.co

m

Answer: A

39

CompTIA XK0-002: Practice Exam Which of the following is used to secure http communications? A. SSH (Secure Shell) B. TLS (Transport Layer Security) C. Blowfish D. PGP (Pretty Good Privacy) Answer: B

QUESTION NO: 130 Which of the following configuration files should a Linux administrator edit in order to restrict the use of su to a single group? A. /etc/sysctl.conf B. /etc/environment C. /etc/pam.d/su D. /etc/login.conf Answer: C

A. Use fdisk to repair the partition table. B. Use Disk Druid to repair the array. C. Run fsck on the faulty drive. D. Remove the faulty drive from the system. Answer: D

QUESTION NO: 132 An update CD-ROM for a distribution contains the latest RPMs for all packages that they provide. Which of the following is the BEST command to use to update all of the existing RPMs on a server without making any other changes? A. rpm -i /mnt/cdrom/RPMS/*.rpm

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

tua

In a Linux software RAID 1 array created during the installation process, the primary IDE master has a hardware failure. Now the system will not boot. Which of the following will allow the system to boot properly and salvage the information?

lTe

QUESTION NO: 131

sts

.co

m

40

rpm Answer: D QUESTION NO: 133 Which of the following files holds the XFree86 configuration by default? A.conf has the following entry: mail.conf B.www.conf D. Any Time. rpm --update /mnt/cdrom/RPMS/*. 2 B. XF86Config C. 3 D.actualtests. The events logged by a program called ail? C. "Pass Any Exam." .CompTIA XK0-002: Practice Exam B. The events generated by a user called ail? D.com Ac tua lTe sts .log? A.* -/var/log/mail. XFree86Config Answer: B QUESTION NO: 134 In which of the following runlevels is X Windows started by default? A. B.rpm D. The events logged from any host that begins with the name mail. 5 C. rpm -F /mnt/cdrom/RPMS/*.log Which of the following log events will this line cause to be logged to mail. 6 Answer: B QUESTION NO: 135 If /etc/syslog. The events logged to the mail facility at any priority. rpm -update /mnt/cdrom/RPMS/*. XF86.rpm C.co m 41 . XFree86.

Any Time.actualtests. uname -s Answer: B QUESTION NO: 138 An administrator who logged in as a standard user needs to kill process 1010 that was started by the root user." . Which of the following commands will kill the process? A. cat /proc/shell B. shell D. killall -9 1010 C. kill 1010 D.CompTIA XK0-002: Practice Exam Answer: A QUESTION NO: 136 The following is part of the Samba configuration file: [aprinter] path = /usr/spool/public read only = yes printable = yes Which of the following lines needs to be added to the file to allow print access to everyone? A. printall = yes C.com Ac tua lTe QUESTION NO: 137 sts . users = * Answer: C Which of the following commands displays the name of the current shell? A. su -c "kill 1010" "Pass Any Exam. su "kill 1010" B. guest ok = yes D.co m 42 .www. anonymous = yes B. echo $SHELL C.

The system is extremely slow. Answer: B QUESTION NO: 140 Which of the following services could be used to provide remote configuration of the networking address. dhcpd Answer: D QUESTION NO: 142 "Pass Any Exam. and DNS settings for other devices on a network? A. routing. The /root file system is full. Any Time. D. The server is not allowing the client to connect.co The root user receives a 'Permission denied' error message when trying to write files to an NFS (Network File System) mounted directory.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 139 A system is very likely compromised if which of the following has occurred? A. Some commands behave abnormally. netsetup B. B.actualtests. Which of the following is the MOST likely cause of this error? m 43 . One of the hard drives has crashed. The server needs to allow NFS UDP packets.www. netconfig C." . B. routed D. C. The server share needs to specify no_root_squash.com Ac QUESTION NO: 141 tua Answer: A lTe A. C. D. sts . The directory needs to be remounted as NFSv3.

/dev/hdb C. cd /etc. FTP C." . Any Time.txt B.txt D. find /etc/passwd bob >> bob_groups.actualtests. /dev/hda Answer: B QUESTION NO: 143 Which of the following Linux files is used to assign users to groups? A.CompTIA XK0-002: Practice Exam A user wants to install Linux as a dual-boot option on the second hard drive on the primary IDE controller.com Ac A. cat groups | grep bob | vi > bob_groups. SMNP "Pass Any Exam. /dev/sdb B. /etc/group D. /usr/group B.co m 44 .www.txt C. POP3 B. Which of the following devices would be the target of the Linux partitioning? A. whereis bob >> bob_groups.txt tua Which of the following is the quickest way to create a file that lists groups to which the user 'bob' belongs? lTe QUESTION NO: 144 sts . /dev/sda D. SMTP D. grep bob /etc/group > bob_groups. /etc/passwd Answer: C Answer: C QUESTION NO: 145 Which of the following services commonly uses Port 25? A. /etc/users C.

Any Time. last sts A system administrator routinely needs to see the list of who has logged in and logged out on a machine as well as their login times. 6 D.co m 45 .www. who C." . 2 B. 0 C. 1 Answer: D QUESTION NO: 149 "Pass Any Exam. find /mnt -suid -type f -ls D. find /mnt -setuid -ls B. Which of the following commands searches the "/var/log/wtmp" file and displays who has logged onto the machine and when they logged on? . log --list B.com Ac tua lTe A.actualtests. w D. find /mnt -mode s -ls C.CompTIA XK0-002: Practice Exam Answer: C QUESTION NO: 146 Which of the following commands can be used to display the location of all the setuid regular files on /mnt? A. find /mnt -type f -perm -u+s -ls Answer: D QUESTION NO: 147 Answer: D QUESTION NO: 148 Which runlevel would be used to repair a system and grant access to the root user only? A.

CompTIA XK0-002: Practice Exam Which of the following tripwire commands can be run to analyze the current status of the system? A. and type tartx Answer: B QUESTION NO: 151 A user wants to know how to set up SSH (Secure Shell) to communicate between systems without requiring passwords. Answer: A QUESTION NO: 152 A Linux specialist wants to check which shares are offered by a Windows server. D. Press <Ctrl><Alt><F5>.co m 46 . Change consoles and type the command ill -9 X D.www. smbserver D. tripwire --status D. B. showshares B. Use RSH (Remote Shell) rather than SSH because it does not require passwords.com Ac tua lTe sts .actualtests.hosts file. tripwire --check B. Press <Ctrl><Alt><Backspace> C. Which of the following commands is used to perform this task? A. Any Time. smbclient C. C. Press <Ctrl><Alt><Delete> B. Use ssh-keygen to generate public-private keys. listshares "Pass Any Exam. Add systems that do not need passwords to the /etc/ssh. login." . Which of the following is the BEST way to accomplish this? A. tripwire --verify Answer: A QUESTION NO: 150 How can the X window server be restarted? A. Disable passwords on specific accounts that will use SSH. tripwire --monitor C.

www.1 assigned to eth0? A. Which of the following commands would accomplish this? A.155." .log C. The gateway address will be replaced with 192.168.5 up Which of the following is the effect of typing this on a machine that already has an address of 192. follow -f -s 15 -n 3 messages.168. The address of 192.168. The current IP address will be replaced with 192.155. echo testing | lpr D.CompTIA XK0-002: Practice Exam Answer: B QUESTION NO: 153 An administrator would like to test a newly installed printer.log Answer: B "Pass Any Exam.168. 192.155. B.5 will be assigned to the second physical NIC. which of the following commands should be issued? A. C.168. tail -f -s 15 -n 3 messages. lpr -test < /dev/zero B.log B. lpr -P/dev/zero Answer: C QUESTION NO: 154 A user typed the following command on a machine: ifconfig eth0:1 192.log and update it every 15 seconds. print -check C.155. watch -f -s 15 -n 3 messages.com Ac Answer: D tua lTe sts .log D.5.155.155. Any Time.5 will be assigned to eth0 as a second IP address.168. D.actualtests. sar -f -s 15 -n 3 messages.co m 47 . QUESTION NO: 155 If a user wishes to monitor the last three lines of the log file messages.5.

1.1. Any Time. rpm -a NewFonts B. Which of the following is the BEST choice for this situation? tua lTe sts .15 subnet 255. RSH (Remote Shell) D.rpm on several desktop computers.255.255.15 netmask 255.1.255.15 netmask 255.0 B.rpm is already installed? A.actualtests." .168.15 subnet 255.168.15/24 to the second NIC (Network Interface Card) in a workstation? A.0 Answer: B QUESTION NO: 158 A. FreeRADIUS Answer: A QUESTION NO: 159 Which of the following commands can be run to remove all the rules in an iptables table? A. Which of the following commands would determine if NewFonts.1.1.CompTIA XK0-002: Practice Exam QUESTION NO: 156 An administrator wants to create a script that installs NewFonts. Kerberos C.co m . ifconfig eth1 192. rpm -q NewFonts Answer: D QUESTION NO: 157 Which of the following ifconfig commands can be used to assign the IP address 192. rpm --checksig NewFonts D. iptables --delete "Pass Any Exam.0 C. ifconfig eth2 192. SSH (Secure Shell) B.255.0 D.com 48 Ac A Linux administrator is trying to set up a server that provides the MOST secure communication for remote administration.www.168.168.255. ifconfig eth2 192.255.255.168. ifconfig eth1 192. The script should check if the RPM is already installed. rpm --list NewFonts C.255.

from the remote system: export DISPLAY=local:0. from the remote system: export DISPLAY=remote:0. C. There is an entry in /etc/shells for repositoryuser's shell.com 49 Ac tua A new user must have local FTP access but not interactive login access.actualtests.0 D.www. The repositoryuser is not in the FTP group. B." . iptables -A Answer: C QUESTION NO: 160 How can a user view an X Window from a remote system on their local system? A. Which of the following ifconfig commands will do this correctly? "Pass Any Exam. from the local system: export DISPLAY=local:0.0 Answer: D QUESTION NO: 161 repositoryuser:x:502:502::/home/repositoryuser:/bin/false Upon testing. iptables -F D. D.CompTIA XK0-002: Practice Exam B. There is an entry in /etc/ftpusers for repositoryuser.co m . iptables -L C. Any Time. from the local system: export DISPLAY=remote:0.0 C. The following entry in /etc/passwd corresponds to this user: lTe sts . Answer: B QUESTION NO: 162 A technician wants to allow the computer to sniff incoming and outgoing packets on the Ethernet interface.0 B. Which of the following is MOST likely the problem? A. repositoryuser cannot login to the FTP server. There is no entry in /etc/exports for repositoryuser's home directory.

ifconfig eth0 promisc B. ifconfig eth0 unicast Answer: A QUESTION NO: 163 A new tape drive has been added to a Linux system. df D. fdisk -l Answer: C "Pass Any Exam. 1024MB D. ifconfig eth0 multicast D. ls -la C. tar -xvf ftape Answer: B QUESTION NO: 164 Answer: B QUESTION NO: 165 Which of the following commands is used to obtain the summary of mounted hard drive partitions? A.CompTIA XK0-002: Practice Exam A. Which of the following commands can be used to verify that the tape drive is operational? A. The server has 256MB of RAM. 128MB B. dmseg | grep ftape C. 512MB C. Any Time. 256MB tua lTe A Linux administrator is about to install a Linux server. fsck B. Which of the following sizes of the swap partition is generally recommended? sts . mount -f ftape B." .co m 50 .actualtests. ifconfig eth0 listenall C.com Ac A. tcpdump ftape D.www.

BIND sts . VirtualHost B. Apache B.com Ac tua lTe A. testparm C.actualtests. smbcheck B." . NamedSiteEntry Answer: A QUESTION NO: 169 "Pass Any Exam. The browser header will be examined by Apache to determine which Web space the client will be sent. Squid D. smbd --check D. Any Time.www. HeaderSite C. Samba C.co A business wants to be able to track all Websites that are visited by its employees. Which of the following commands should be run to verify that the configuration is correct? A.CompTIA XK0-002: Practice Exam QUESTION NO: 166 A Samba server is not functioning properly. Which of the following directives can be used to accomplish this? A. chkconfig samba Answer: B QUESTION NO: 167 Answer: C QUESTION NO: 168 A user wants to define a new Web space. VirtualWebsite D. Which of the following Linux packages would BEST serve this need? m 51 . rather than by examining the port number of IP address.

Set the sticky bit using hmod 2770 /home/ourgroup "Pass Any Exam. Any Time. Which of the following actions will accomplish this? A.255.0/24 network using the route command? lTe sts .255. dhcpd C. a user wants to find out if the card was detected properly at boot.255.168. route del -net 192. bind D.actualtests. named Answer: D QUESTION NO: 171 A.100.co m 52 .www. dmesg | grep eth D.168.168. Assign private permissions on the directory using hown g+s /home/ourgroup B.255.168.0 netmask 255.100. resolvd B.CompTIA XK0-002: Practice Exam After replacing the network card in a Linux machine.255.255.100.0 netmask 255. cat /proc/net | grep eth Answer: C QUESTION NO: 170 Users begin reporting that they receive 'Unable to resolve hostname' error messages.0 reject D.255.100. ls -l /dev/eth* C. Which of the following daemons should the administrator verify is running? A.168. route add -net 192.100. hwstat | grep eth B.0 netmask 255." .0 deny C.com Ac tua Which of the following commands can be used to configure a router to reject the address for the 192. route del -net 192.0 reject Answer: C QUESTION NO: 172 Files created in the /home/ourgroup directory need to automatically have group ownership that is identical to the directory itself. route add -net 192. Which of the following commands will provide this information? A.0 deny B.0 netmask 255.255.

Any Time.actualtests. "Pass Any Exam. mount /dev/uda1 /mnt/usb D. Boot the system from a live CD distribution and run the fsck tool on the partition where the package is installed. B. /usr/src B.co m .CompTIA XK0-002: Practice Exam C. Set permanent permissions on the directory by running kdir g+s /home/ourgroup D. When it is compiled it asks for the location of the kernel sources. /opt/kernel Answer: A QUESTION NO: 174 Which of the following commands will mount a USB flash drive successfully in Linux? A.www. mount /dev/sda1 /mnt/usb B. /usr/kernel D. Set the SGID bit using hmod g+s /home/ourgroup Answer: D QUESTION NO: 173 A new driver version has been downloaded.com 53 Ac tua lTe sts . D. How can it be verified that the package has not been altered? A. Download the MD5 hash file from the original software developer's website and compare it against the MD5 hash generated from the downloaded file. C. mount -t usbfs /dev/usb001 /mnt/usb C. Uninstall the application and re-install it while in single user mode and carefully watch the install logs for suspicious activity." . Where are the kernel sources normally located? A. /usr/kernel/src C. mount /dev/hde1 /mnt/usb Answer: A QUESTION NO: 175 A systems administrator has recently downloaded a network analysis tool from an FTP repository. suspicious behavior is noted. After installation of the tool. Download the MD5 hash file from the original FTP site and compare it against the MD5 hash generated from the downloaded file.

3 C.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 176 Which of the following commands will display information in the manual page for the passwd file? A.actualtests. tail -r /var/log/messages D. man 2 passwd Answer: B QUESTION NO: 177 Answer: B QUESTION NO: 178 Which of the following commands should be used to monitor system logs in real time? A.www.co To which of the following IRQ settings does ttyS1 default on a Linux server? m 54 . 12 B. tail -f /var/log/messages Answer: D QUESTION NO: 179 A user complained that a laptop system seems slow.com Ac tua lTe sts A." . man -k 2 passwd B. man -k 5 passwd D. 4 . tail -v /var/log/messages B. 5 D. man 5 passwd C. tail -s /var/log/messages C. Any Time. Which of the following commands can be used to see what processor was detected on boot? "Pass Any Exam.

CompTIA XK0-002: Practice Exam A. find / -perm -4000 "Pass Any Exam. Which of the following commands will do this? A.1 onto the local mount point called /usr.co m . dmesg D. Any Time. remount tua lTe An administrator wishes to mount an NFS (Network File System) export of the directory /usr located on 10. :cmd ps -aux C. mountd D. mount C. :! ps -aux Answer: D QUESTION NO: 181 Answer: B QUESTION NO: 182 The system administrator suspects the machine has been compromised and would like to search the system for any setuid programs.0. Which of the following commands would accomplish this? A.www.actualtests.0. :# ps -aux D. Which of the following commands should be used? sts . locate --suid C. cpuinfo C. rpm -Va D. :// ps -aux B." . search u+s B. smbmount B. proc Answer: C QUESTION NO: 180 A user is editing a file in vi and wants to run the command s ux without leaving vi. POST B.com 55 Ac A.

actualtests. however the job apparently did not run the night before.www. rpm --erase exim sts . B. /etc/localtime D. Answer: C QUESTION NO: 186 "Pass Any Exam. Any Time. Check the user's cron job for syntax errors and correct as needed. rpm --uninstall exim B. uninstall exim D. Which of the following commands could be used to uninstall the software? m 56 .CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 183 Which of the following files sets the default time zone used by the date command? A. D.com Ac tua lTe A.co A Linux administrator has decided to remove a software package called exim." . Check the process list for an instance of crond running. /etc/default_time C. /etc/defaults/date Answer: C QUESTION NO: 184 Answer: D QUESTION NO: 185 A user has a cron job that clears print queues at midnight each day. C. Which of the following should be done FIRST to resolve the problem? A. rm -r exim C. /etc/timezone B. Check to make sure the printer is connected to the server and powered on.rpm. The cron job has run correctly for several months. Check to make sure the user was properly logged into the network the night before.

:s/coexistence B.CompTIA XK0-002: Practice Exam Which of the following is an IDS (Intrusion Detection System)? A. ifconfig eth0 down "Pass Any Exam.find_forward coexistence C. SSH (Secure Shell) C. Use the custom tool provided by the hard drive manufacturer.www. Answer: D QUESTION NO: 189 An administrator wants to temporarily disable the eth0 network interface on a server. Use a bootable Linux medium to boot into Linux and run fdisk.com Ac A. ethereal D. Which of the following commands will accomplish this from within the editor's command mode? lTe QUESTION NO: 188 sts Answer: B . Which of the following should be done to repair the file system? A. D. :f coexistence D. C. Use a bootable Linux medium to boot into Linux and run fsck." . Reinstall Linux from the original install drive and apply all patches.actualtests. Any Time. B. Which of the following commands will accomplish this? A. openssl Answer: A QUESTION NO: 187 A Linux system will not boot. ifconfig disable B.co m 57 . ifconfig eth0 disable C. Snort B. but hard drive diagnostics indicate that the drive is working properly. /coexistence tua A user who has a file open in vi wants to search for the next occurrence of the word 'coexistence'. even in single-user mode. -.

CompTIA XK0-002: Practice Exam D.0 D. which of the following commands can be used to find the MAC address of that host? A.com Ac tua A.168. Reboot to runlevel 6. C.actualtests.168.co m Answer: B 58 . ifconfig eth0 off Answer: C QUESTION NO: 190 After a power outage. 192.255. 255.192 lTe sts The administrator must change the IP address of the server to 192.5.168. dig B.255.255. traceroute D. 255. QUESTION NO: 191 Answer: D QUESTION NO: 192 If the IP address of a host on the network is known. B. arp C. Run fsck on each file system and try to mount again.255.5. Which of the following is the correct representation of the subnet mask? .www.255 B. Which of the following should be done FIRST? A." . Reinstall the operating system.5. 192. The file systems are unable to be mounted manually. D. nslookup Answer: B "Pass Any Exam.0 C. Edit /etc/fstab and correct any problems identified. a Linux machine reboots but fails to mount all of its file systems. Any Time.4/26.

" .user . ufs D.quota D.ssh/trusted_keys "Pass Any Exam. reiserfs B. xfs Answer: B QUESTION NO: 194 Using the BASH shell.co m A Linux system administrator needs to edit the quotas for a user. set NEWSIZE=1000 Answer: B QUESTION NO: 196 Which of the following files contains the key or keys required to login using SSH (Secure Shell) without a password? A. Any Time. which of the following file systems would be accessible from both Windows and Linux operating systems? A. edquota user C. vfat C. vi /~user/. Which of the following commands can be used to do this? .actualtests. alias HISTORY=1000 B.CompTIA XK0-002: Practice Exam QUESTION NO: 193 On a dual-boot system. vi /quota. which of the following commands will set number of entries in the command history to 1000? A. .com 59 Ac tua QUESTION NO: 195 lTe Answer: B sts A. quota -e user B. setenv HSIZE=1000 D. export HISTSIZE=1000 C.www.

com 60 Ac A.g-w-r. verify <package_name> B. It disables the function keys. D. chmod u+x.1 root root 4096 Apr 20 17:40 filename to -rwx-w---. Which of the following commands should be run as a FIRST step to troubleshooting this problem? A.www. chmod 710 filename Answer: C QUESTION NO: 198 Answer: B QUESTION NO: 199 A new RPM package returns a large number of errors and has never run successfully. chmod u+x.CompTIA XK0-002: Practice Exam B. B.o-r filename C. diff --rpm <package_name> <installation_file> "Pass Any Exam. Any Time.ssh/allowed_keys D. It enables application shortcut keys. C. tua What does enabling the "dead keys" option during installation do? lTe sts .1 root root 4096 Apr 20 17:40 filename Which of the following commands will accomplish this? A. It disables unused keys based on the language option selected.ssh/authorized_keys C.g+w-r. rpmdb -v <installation_file> C. chown 720 filename B.actualtests. .o-r filename D.ssh/known_keys Answer: B QUESTION NO: 197 A superuser wants to transform the following permission set from -rw-r--r-." .co m . It provides the ability to create special characters. . .

dig D.www.[A-Z]% > rpmlist.text sts The system administrator wants to create a list of all of the RPM packages installed on a server in alphabetical order.text B. nslookup B. rpm -q --dump rpmlist.actualtests. Any Time. usbcore C.CompTIA XK0-002: Practice Exam D. rpm -q -a | sort > rpmlist.text D. rpm -V <package_name> Answer: D QUESTION NO: 200 Which of the following modules is the first to load to provide any USB functionality? A.co QUESTION NO: 201 m 61 .text C. usb-ohci D. slocate Answer: B QUESTION NO: 203 "Pass Any Exam. usbmain Answer: B Answer: D QUESTION NO: 202 Which of the following is a popular open source tool that is used for vulnerability assessment? A. rpmdb --dump rpmlist. usb-storage B. Which of the following is a quick and easy way to do this? . nessus C. rpm -qa %-1.com Ac tua lTe A." .

cat fstab | grep CD Answer: A QUESTION NO: 205 Answer: A QUESTION NO: 206 Which is the correct way to define a default route to 10. route default add gateway=10.10.1 "Pass Any Exam.10.10. md -m /home/gawd/tools/security Answer: C QUESTION NO: 204 A workstation user is unable to mount a CD-ROM drive.CompTIA XK0-002: Practice Exam Which of the following commands will create the directory /home/gawd/tools/security regardless of the existence of its parent directories? A. dmesg | grep CD B.1 D. mkdir --makepath /home/gawd/tools/security C. ifconfig default_route=10.10.com Ac A. find cdrom D.10. Any Time. crit C. err D. route add default gw 10.1 C.actualtests.1 for a Linux host? A.10. cat mtab | grep cdrom C.10. mkdir -p /home/gawd/tools/security D.www. alert tua Which of the following syslog keywords has the highest priority? lTe sts .co m 62 .10.10." . ifconfig eth0 defaultgw 10.10. emerg B. Which of the following commands can be used to confirm the operating system recognizes the drive? A.1 B. mkdir -m /home/gawd/tools/security B.

fdisk -l B.www. True negatives C. cat /proc/disks Answer: A The IDS (Intrusion Detection System) reports many events that are not security incidents.actualtests. 16 C." . ls /dev/disks/* D. Any Time. Which of the following is the term for these types of events? A.co m 63 .CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 207 A Linux technician is installing a new SCSI tape drive. False negatives D.com Ac QUESTION NO: 209 tua lTe sts . Which of the following is the default ID on a SCSI controller card? A. showdrives C. 11 D. True positives Answer: A QUESTION NO: 210 "Pass Any Exam. 1 Answer: A QUESTION NO: 208 Which of the following commands could be used to display all recognized drives and all existing partitions? A. 7 B. False positives B.

lpq -A C. D. The administrator wants to do this by adding perl_module to the Apache configuration. The kernel will halt mounting the root file system.actualtests. "Pass Any Exam. How can this be done? A. Virus D.com Ac tua A production Web server is experiencing an unusually large amount of new incoming TCP connections. DoS (Denial of Service) C. but neglected to update /etc/fstab. Run http -lm perl_module from the command line. NIC malfunction B. lpq -a Answer: D QUESTION NO: 211 A Linux administrator converted the root file system from ext2 to ext3. except journaling will be disabled. Answer: D QUESTION NO: 212 A.www." . C. The file system will be automatically detected as ext3. Which of the following will happen the next time the system boots? A.co m 64 . printq -A D. The root file system will be corrupted. The system will boot as normal. printq -a B. B. Any Time.CompTIA XK0-002: Practice Exam Which of the following commands will allow a Linux administrator to view waiting print jobs for all printers? A. Which of the following is MOST likely the problem? lTe sts . Too many users Answer: B QUESTION NO: 213 An administrator needs to add support for PERL to Apache for the company's Website.

echo "1" > /proc/sys/net/ipv4/ip_forward C. it has been determined that IP forwarding is not enabled on the Linux server.so in httpd.co m 65 . Answer: C QUESTION NO: 214 A Linux server has been configured as a gateway to allow local LAN access to the Internet.conf.actualtests.conf.forwarding = 1 Answer: B QUESTION NO: 215 A network problem occurs somewhere between a Linux PC and a remote Website. sysctl -n net. netview C. D.ipv4. After further troubleshooting. Remove the # from #LoadModule perl_module libexec/httpd/libssl. pathping Answer: C QUESTION NO: 216 How can an administrator prevent /etc/hosts from overriding DNS resolution? A. netstat B.com Ac tua lTe sts . Move the NIS entry beneath the DNS entries in /etc/resolv.conf.conf file. C. Run httpd --module perl_module from the command line. Which of the following commands will help locate the point of failure? A.eth0. D. "Pass Any Exam. Users can ping the gateway address but cannot access the Internet.conf. Use a higher serial number in the DNS zone file. Change the order in which DNS and hosts are used by editing /etc/nsswitch.forwarding = 1 D. sysctl -a net.www.so in httpd.CompTIA XK0-002: Practice Exam B.conf file. Remove the # from #AddModule perl_module libexec/httpd/libssl. B.ipv4. C. traceroute D. Which of the following commands will enable routing? A. Use a firewall to close the port used by "hosts". route add IP_FORWARD eth0 B. Any Time." .

power Answer: B QUESTION NO: 220 A system administrator inherits a Linux system with a 2.com 66 Ac The company wants to have its laptops perform a clean shutdown of the Linux operating system when the power button is pressed. locate -t2 B.www. linux extended B. i2c-core D. Which of the following is the likely cause? "Pass Any Exam. grep / -ctime 2 C. After upgrading to a 2. APM (Advanced Power Management) B. ACPI (Advanced Control and Power Interface) C.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 217 When using fdisk and a partition type of 85 is selected. which kind of partition will be created? A.4 kernel." . reiserfs D.2 kernel. swap Answer: A QUESTION NO: 218 Answer: C QUESTION NO: 219 A. linux native C. the ipchains commands no longer function. find / -mtime 2 D.co Which of the following commands will locate files that have been modified in the past two days? m . Any Time.actualtests. Which of the following modules must be installed to accomplish this? tua lTe sts A. whereis -time 2 .

$PATH D. The ipchains package needs to be upgraded Answer: B QUESTION NO: 221 Once a Linux Installation Disk image has been downloaded. The 2.CompTIA XK0-002: Practice Exam A. Pipe the output to the cat command B. Run chkdsk on the .co m .iso system image B.com 67 Ac tua After confirming gcc is installed on the system." . Which of the following would capture the output for evaluation? A. the system returns the error: command not found sts . The new kernel was not compiled with ipchains support C.conf to a lower number "Pass Any Exam.iso D. $DISPLAY C. $PROMPT Answer: C QUESTION NO: 223 A new shell command generates too much output to read on the screen and does not write to a log file.actualtests. which of the following is the next step? A. Verify the checksum match for the . Run /sbin/verify_iso C. The old ipchains module needs to be loaded D. which environmental variable must be modified to correct this problem? lTe When the command 'gcc' is run in a newly created directory.4 kernel does not support ipchains B.www. Any Time. Reduce MOG_LEVEL=6 in /etc/syslog. Check the file size to ensure the file is uncorrupted Answer: C QUESTION NO: 222 A. $EXECUTABLES B.

echo 90 >/proc/me/limits/time C.co m Answer: C 68 . nobody D. Run the command as a daemon Answer: C QUESTION NO: 224 Which of the following is the default permission of /tmp? A. 1777 D.CompTIA XK0-002: Practice Exam C.www." .actualtests. 0755 QUESTION NO: 225 Answer: D QUESTION NO: 226 Which of the following group-level permissions is needed to create user accounts? A. Any Time. limits -t 90 D. 1755 B. ulimit -t 90 lTe sts Which of the following BASH shell built-in commands can be used to apply a CPU time limit of 90 seconds on the current shell session? . setlimit -t 90 B. 0222 C. adm C.com Ac tua A. root Answer: D QUESTION NO: 227 "Pass Any Exam. Use on the command line D. ntadmin B.

com Ac tua lTe sts . xfs C. cat /proc/self/status B.bz2 C. tar x --bz2 backup.bz2 Answer: C QUESTION NO: 229 When the command mke2fs -j is run. rpm -i samba. cat /proc/sys/net/ipv4/ip_forward Answer: D QUESTION NO: 228 A technician needs to extract the entire archive 'backup.tar. jfs D. rpm -v samba. but the administrator notices that packets are no longer being routed. Which of the following should the administrator run on the server to verify routing functionality? A. ext3 B. tar xbf backup. ext2 Answer: A QUESTION NO: 230 Which of the following commands can be used to confirm checksums on the Samba package? A. Which of the following commands will accomplish this? A.tar.d/network status C. what type of file system is created? A.bz2 B.rpm "Pass Any Exam.tar. tar xZa backup. /etc/rc.tar.co m 69 .bz2 D. /etc/rc.tar. tar xjf backup. Any Time.d/squid status D.rpm C. rpm -V samba.bz2'.rpm B.CompTIA XK0-002: Practice Exam A Linux server is configured as a router.www.actualtests." .

CompTIA XK0-002: Practice Exam D. rpm -c samba.rpm Answer: C

QUESTION NO: 231 Which of the following commands could be used to set the number of days a user can maintain the same password? A. uname B. chfn C. usermod D. chpasswd

QUESTION NO: 232

Answer: B

QUESTION NO: 233

Which of the following commands enables a user to make a newly-created shell script executable by only its owner? A. chmod u+x <filename> B. chown 755 <filename> C. ./<filename> D. ./configure <filename> Answer: A

QUESTION NO: 234

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

tua

lTe

A. atrrib -h help.new B. mv help.new .help.new C. cp help.new .help.new D. chmod 4000 help.new

sts

Which of the following commands can be used to hide the file "help.new"?

.co

m

Answer: C

70

CompTIA XK0-002: Practice Exam The root user types cho $PATH and sees the following output: .:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/src Which of the following parts of this path is considered to be a security risk? A. . B. /usr/src C. /sbin D. /usr/X11R6/bin Answer: A

QUESTION NO: 235

A. ftp B. sftp C. rcp D. telnet Answer: B

QUESTION NO: 237 Which of the following commands will allow a system administrator to determine which users have attempted to logon but failed?

"Pass Any Exam. Any Time." - www.actualtests.com

Ac

A user wants to remotely connect to a Linux system to transfer files from an overseas IP address. Which of the following programs allows the user to do this securely?

tua

QUESTION NO: 236

lTe

Answer: A

sts

A. System hardware and daemon configuration B. Root password and performance baseline C. Daemon configuration and performance baseline D. System hardware and user passwords

.co

m

In addition to selected packages and partition maps, which of the following should also be documented during a Linux server installation?

71

CompTIA XK0-002: Practice Exam A. last B. cat /var/log/btmp C. lastb D. cat /var/log/wtmp Answer: C

QUESTION NO: 238 When a user runs s l the following output is displayed: drwxrwxrwt 3 john1 users2 4096 Aug 06 13:42 research Who has permission to delete files in this directory? A. Only root and file owner B. Only root, file owner, and group owner C. All users D. Only root and group owner Answer: A

QUESTION NO: 239

In which subdirectory of the Apache root should scripts be placed? A. cgi-bin B. bin C. htdocs D. htbin Answer: A

QUESTION NO: 240 After a printer is removed from a Linux workstation, which of the following commands can be used to restart the printing module? A. cups restart B. /etc/init.d/lp restart C. lp restart D. /etc/init.d/cups restart "Pass Any Exam. Any Time." - www.actualtests.com 72

Ac

tua

lTe

sts

.co

m

3 D. mkfs /dev/hda6 B. Full access to the owner only D. mkfs. mkfs -reiserfs /dev/hda6 C." . Full access to root only Answer: B QUESTION NO: 242 Answer: C QUESTION NO: 243 A. 6 B. Any Time. 5 Answer: C QUESTION NO: 244 Which of the following will happen when the following command is run? userdel johnd "Pass Any Exam.www.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 241 Which of the following are the default permissions for a symbolic link file? A. reiserfs /dev/hda6 .actualtests. 0 C.reiserfs /dev/hda6 D. Same as the target file B.co Which of the following is a valid command to format a partition as Reiser FS? m 73 . Full access to everyone C.com Ac Which of the following runlevels is generally used to ensure the Linux server will boot into full multi-user mode without starting X Windows? tua lTe sts A.

The user johnd is removed from the system. C. B. D. Use an IP alias.www. security = share "Pass Any Exam. The user johnd is removed from the system while keeping all of the data in his home directory. D. The user johnd is removed from the system and all data in the home directory is moved to the /home/deletedusers directory. Use a static IP address. Which of the following is the BEST way to configure its Ethernet adapter? A.co m 74 . deleting all of the data in his home directory. Answer: C QUESTION NO: 245 A Linux server is to be used as a Web server.CompTIA XK0-002: Practice Exam A.actualtests. Any Time. B." .com Ac tua lTe sts . The user johnd is removed from the system and all of his data is moved to the /var/archive directory. Answer: D QUESTION NO: 246 Review the following Samba configuration file entry: [global] workgroup = NT-FAKERS netbios name = DUDE security = share browseable = yes [public] guest ok = yes writeable = yes security = share browseable = yes path = /export/public Which of the following lines allows the user to access the public share on this server without authentication? A. Configure the DHCP Client. C. Configure the DHCP Server.

The computer BIOS has the wrong boot order. The MD5 sum is erroneous. Which of the following could solve the problem? A. Reinstall the wireless network card drivers on the system. C. Check the order of execution of services in the boot scripts. After boot. D. Any Time.com Ac tua A." . Answer: B QUESTION NO: 248 Answer: B QUESTION NO: 249 A user has added a PCMCIA wireless network card to a Linux laptop.www. guest ok = yes D. However. writeable = yes Answer: C QUESTION NO: 247 Which of the following is the BEST security practice for compiling the package from the source? A. C. the computer boots into Windows. Compile as root and install as a normal user. Compile and install the package as root. network services load properly. C. The network services fail on boot. Compile as a normal user and install as root. B.actualtests. "Pass Any Exam. if they are restarted by hand. lTe A user who is installing Linux inserts the install CD-ROM and then reboots the computer. B. Compile and install the package as a normal user. B.CompTIA XK0-002: Practice Exam B. The hard drive does not support Linux. Reconfigure the wireless access point to access Linux connections.co m 75 . D. The user needs to install a Windows driver. Which of the following MOST likely caused the problem? sts . D. browseable = yes C. Check that the PCMCIA ports are enabled in the BIOS.

It maps a hostname to a MAC address. Answer: B QUESTION NO: 253 Which of the following allows for secure remote command line access? A.co Which of the following commands is used to check the current iptables configuration? m 76 . It maps a MAC address to a hostname. iptables -LFZ C. iptables -n -L B. iptables -A -D -C D. SSH (Secure Shell) "Pass Any Exam." . B. mkraid --status D.com Ac tua lTe sts A.www. C.CompTIA XK0-002: Practice Exam Answer: C QUESTION NO: 250 Which of the following commands is used to check the status of a software RAID? A. D. It maps a MAC address to an IP address. cat /proc/mdstat Answer: D QUESTION NO: 251 Answer: A QUESTION NO: 252 Which of the following is the function of the ARP (Address Resolution Protocol)? A. Any Time. iptables natadd . cat /proc/ide/raid C.actualtests. It maps an IP address to a MAC address. mkraid --verify B.

actualtests.www. tar tf backup. Change the root application. tar tvf backup." .tar D. D.txt sts . Any Time. Change the root password. tar lvf backup. tar lf backup. How can the detailed file information in the file be viewed without extracting the contents? A. 6 B. Change the root directory for the shell.com 77 Ac tua lTe -rw-r-xrwx 5 root root 4096 Apr 20 10:03 file.tar C. SSL C.CompTIA XK0-002: Practice Exam B. Change the root login name. B. Answer: D QUESTION NO: 255 The output of an "ls -la" is the following: How many hard links have been created to this file? A. 5 D. 0 C. C. Rlogin D.tar "Pass Any Exam.tar. 4 Answer: D QUESTION NO: 256 A Linux user has a file named ackup.tar B. Telnet Answer: A QUESTION NO: 254 Which of the following is the function of the chroot command? A.co m .

route add default gw 10.actualtests.1. dmesg | grep CPU D. cat /var/log/messages | grep CPU B.1. Any Time.1 sts A new router is installed to share the Internet connection for all users on the LAN (Local Area Network). MySQL B.1. ifconfig eth0 gateway 10.1.1 B. route change gateway 10. Which of the following commands on the client allows Internet access on the Linux workstations? . PHP Answer: A QUESTION NO: 258 Answer: B QUESTION NO: 259 Which of the following commands can be used to gather information about the CPU found during boot? A.1. ifconfig eth0 dstaddr 10. find /var/log/dmesg | grep CPU C. cat /proc/cpuinfo | grep CPU Answer: C QUESTION NO: 260 "Pass Any Exam.1.1 on the LAN-side interface.1 C.1 D. KDE C.1.1.co m .CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 257 A mid-sized technology firm wants a dedicated machine to analyze data from previous client projects.1. LDAP (Lightweight Directory Access Protocol) D." . Which of the following server packages would MOST likely be installed? A. The router has an IP address of 10.1.com 78 Ac tua lTe A.www.

whatis -r D. hid Answer: B QUESTION NO: 263 "Pass Any Exam. Any Time. tulip B. The first field D. The second field Answer: D QUESTION NO: 262 Which of the following modules is a dependency module for PCMCIA card services? A. The third field B. parport_pc D.www." . The fourth field C. man --rebuilddb B. makewhatis C.co m 79 .actualtests. man -k Answer: B QUESTION NO: 261 Examine the following /etc/passwd file: root:X:11423:0:99999:7::: dgringold:X:11423:0:99999:7::: jjones:!!:11432:0:99999:7::11688: tgold:!!:11342:11231:11678:7::: Which of the following is the password field? A.CompTIA XK0-002: Practice Exam Which of the following commands is used to rebuild the man page database used by the hatis command? A. yenta_socket C.com Ac tua lTe sts .

Which of the following programs should be run? A.bash_login. kill -HUP 1 C. ~/. ~/. ~/.bash_login. ~/.profile C. ~/. auth.www. and use crontab to install the file. Edit /etc/periodic/cron.bash_profile.conf would BEST accomplish this? A.profile D. in which of the following sequences are the scripts sourced? A. /etc/profile.bash_profile Answer: C QUESTION NO: 266 Company security policy requires that all authentication errors be logged to a printed hard copy. ~/. ~/.conf Answer: A QUESTION NO: 264 After installing or updating a dynamically linked library. Any Time.bash_profile. Create a file to specify the schedule. using the cron service? A. C. /etc/profile.bash_login." .profile.bash_login. ldupdate B.daily D. the technician needs to reload /etc/ld. Which of the following entries in /etc/syslog. /etc/profile B. ldconfig Answer: D QUESTION NO: 265 When BASH is invoked as an interactive login shell.CompTIA XK0-002: Practice Exam How could a user arrange for a command to be run daily at a certain time on a Linux system. ~/. ~/. B.com Ac tua lTe sts . Specify the schedule using entries in a file at /etc/cron.profile.co m 80 . ~/. /etc/profile. Use a text editor to create a file in /var/cron that specifies the schedule.so.err | lpr "Pass Any Exam. ~/.bash_profile. ld --reload D.conf and refresh the dynamic linker's cache so new programs that need the new library can run. ~/.actualtests.

err +/dev/lp0 C. dig -t ms comptia.bash_logout D. Any Time. ~/." .logoff_now C.org D. ~/.org B.www.org C.co m 81 .bash_exit Answer: C QUESTION NO: 269 A company's mail server is unable to send mail to the domain comptia. Which of the following commands might help determine if their DNS records are correct? A. BASH reads and executes commands from which of the following files? A.org Answer: D "Pass Any Exam. dig -t mx comptia. auth.err -print Answer: A QUESTION NO: 267 Which of the following describes the contents of the file etc/ftpusers? A. ~/.err -/var/log/auth -lpr D.com Ac tua lTe sts .logoff_shell B. mailtest comptia. Users that may not log in using FTP C.org. Hosts that may not connect through FTP B.actualtests. auth. ~/. dig comptia. Hosts that may connect through FTP Answer: B QUESTION NO: 268 When a login shell exits. Users that may log in using FTP D. auth.CompTIA XK0-002: Practice Exam B.

Answer: A Answer: D Which of the following command lines can be used to show a map of the current process hierarchy. ps --map -u B.com Ac QUESTION NO: 272 tua lTe A. mkfs -t ext2 /dev/fd0 mount /dev/fd0 /mnt/floppy C. Any Time.www. Which of the following commands should be used to prepare the diskette for writing? m QUESTION NO: 271 82 . The ksh service needs to be restarted. mount /dev/fd0 /mnt/floppy mkfs -t msdos /dev/fd0 B. psgraph -u Answer: B QUESTION NO: 273 "Pass Any Exam.CompTIA XK0-002: Practice Exam QUESTION NO: 270 The system administrator notices the following file in a user's home directory: -rwsr-xr-x 1 root user1 628684 Jun 13 09:38 ksh Which of the following does this file indicate? A. C. mkdosfs /dev/fd0 mount -t msdos /dev/fd0 /mnt/floppy sts . The system has been compromised. The diskette is unformatted. D. including information about userid transition points? A.co A technician needs to create a diskette to transfer data from a Linux server to a Windows 2000 server.actualtests. mount /dev/fd0 /mnt/floppy mkdosfs /dev/fd0 D." . pstree -u C. Only root has shared access for ksh. B. ksh was inadvertently installed in user's directory. top --map -u D.

After extracting the file.CompTIA XK0-002: Practice Exam At boot time. run rpm Answer: A QUESTION NO: 275 A system administrator of a 200-server network wants to simplify routine monitoring of log files on each server. Specify the administrator's workstation as the destination and "*" for which log files to forward. Create a new server called 'loghost'. Create a script on the administrator's workstation to attach to each server and copy its log files to the local drive. Which of the following is considered the BEST practice method to do this? A. make.conf file on each server so log files are forwarded to 'loghost'. move the extracted directory to /usr/local/application D. C. D." . run apt-get C. Run logcp at each server. Answer: C QUESTION NO: 274 An administrator needs to add a new application to an existing Linux machine.gz". The application is available in source code and distributed in a file called "application. B. D.com Ac tua lTe sts . The drive is configured using an improper file system and needs to be reformatted. B. The boot sector is corrupt and needs to be replaced. Any Time.www. run configure. make install B.co m 83 . which of the following is the next step in installing the application? A. Create a script on each server to analyze each of the log files on the server and forward important information to the administrator's workstation. Modify the syslog. Which of the following is the problem and how is it corrected? A.actualtests.tar. the computer reported that there are problems with inodes and blocks. The partition table has become corrupt and needs to be repaired. The file system has become corrupt and needs to be repaired. C. Answer: C QUESTION NO: 276 "Pass Any Exam.

Answer: A "Pass Any Exam. Which of the following would BEST accomplish this? A. B.conf C. sshd_config Answer: D Which of the following is a reversible encryption standard? A. Run named on a non-standard port. MD5 Answer: A QUESTION NO: 277 No users can connect via SSH (Secure Shell).actualtests. Which of the following configuration files may need to be edited to permit logins? A. DES B." . AES D.CompTIA XK0-002: Practice Exam Which of the following encryption schemes is the LEAST secure? A. D.so D. pam_deny. C. AES D.co m . /etc/xinetd. MD4 B. Blowfish C.com 84 Ac tua lTe QUESTION NO: 278 sts . Run named as root. SHA C. /etc/passwd B. Run named in a chroot jail. Any Time. The SSH daemon is confirmed to be running. MD5 Answer: C QUESTION NO: 279 The named service needs to be secured.www. Run named in UDP mode only.

txt .www.txt to have the following access privileges? -rwxr----.1 user1 staff 0 8 May 11:45 test.CompTIA XK0-002: Practice Exam QUESTION NO: 280 A technician is installing hardware in a Linux system that is not supported by the current kernel.org Website B.com 85 Ac tua lTe A. The hardware manufacturer's Website Answer: A QUESTION NO: 281 Answer: A QUESTION NO: 282 When a USB memory stick is used on a Linux server. The Linux distribution does not provide any updates. /dev/usb/auer0 C.txt sts Using octal permissions. /dev/usb/hd1 D. The SourceForge Website C.txt C. which of the following device files would likely be used to access it? A. chmod 013 test.actualtests.txt D. Where should the user obtain a newer kernel? A. how would a user modify the file test. /dev/ram0 Answer: A QUESTION NO: 283 "Pass Any Exam.org Website D. Any Time. The gnu. chmod 310 test.txt B. The kernel.co m ." . chmod 047 test. chmod 740 test. /dev/sda B.

d C. fstab D. Incremental D. The permissions on the printer's spool directory are set to allow access to all users. Modular C. B. Partial . Any Time.actualtests." . Answer: B QUESTION NO: 284 Answer: C QUESTION NO: 285 Which of the following files is used to specify drives to be mounted on boot? A. nfs B. The SUID bit on this printer's spool directory is not set. C. Users can print to other printers on the server. B. D. Root does not have read permission on the print filter. Which of the following is MOST likely the problem? A. -uid 0 "Pass Any Exam. Users do not have execute permission on the print filter. Full B. grep -u root . The /etc/printcap file is missing. The technician determines that all of the users and machines have the right to print to the server. find .co m Which backup type only copies files that have changed since the previous backup? 86 . mtab Answer: C QUESTION NO: 286 Which of the following commands will recursively search through all subdirectories from the current directory for files owned by the root user? A.CompTIA XK0-002: Practice Exam Users are unable to print to a remote printer on a Linux server. inet.www.com Ac tua lTe sts A.

Truncate the log files. Answer: C QUESTION NO: 288 Which of the following commands can be used to check for file corruption? A." . D. ln file2 /usr/var/file C. cat -vet C. grep -r root .www. tar --checksum Answer: A QUESTION NO: 289 A Linux user wants to create a hard link named ile2 in the current directory that points to /usr/var/file. Remove unnecessary applications that may be using too much disk space. -uname root Answer: B QUESTION NO: 287 A system report indicates that /var is full. Ensure that users have not exceeded disk quota. Which of the following is the MOST likely resolution to the problem? A.CompTIA XK0-002: Practice Exam C.com Ac tua lTe sts . C.co m 87 . B. ln -h file2 /usr/var/file B. ln -h /usr/var/file file2 D. ln /usr/var/file file2 Answer: D "Pass Any Exam.actualtests. Increase the allowable size of swap file. md5sum B. Which of the following commands can be used? A. find . D. Any Time. checkfile D.

conf Answer: A QUESTION NO: 293 A system is running slowly and the administrator wants to find the process that is using the MOST resources. xinetd. useradd -u bsmith -c 555-1234 B. Copy the command to the /boot directory.CompTIA XK0-002: Practice Exam QUESTION NO: 290 How would an administrator ensure that the command /usr/local/radius/startrad.actualtests. Use op to list processes ranked by CPU utilization. /etc/services C. Which of the following files should be edited or replaced to correct the problem? A. C.www. Web pages are no longer available and are replaced with a default page. "Pass Any Exam. Which of the following will accomplish this? A.cfg file. httpd. Place the command in the /etc/rc. modinfo -u bsmith 555-1234 D." .pl was executed after each reboot? A. Any Time.com 88 Ac tua QUESTION NO: 292 lTe Answer: B sts A. B. groupadd -u bsmith -c 555-1234 . Answer: B QUESTION NO: 291 After an upgrade of Apache.conf D. Place the command in the /etc/rc. srm. Place the command in the /etc/sysconfig/startup.local file.co m Which of the following commands allows an administrator to add an existing user's phone number to the system as a comment? . D.boot file. usermod -c 555-1234 bsmith C.conf B.

Answer: A QUESTION NO: 294 Six Linux servers share a tape library in a different room located 80 meters away. but all attempts by the owner of /home/owner/A to delete the one file result in the output: "Pass Any Exam. Use obs to list CPU-intensive processes in order.sbin.co m . C." . D. B. The getty program should not run with 38400 baud. C. Answer: A QUESTION NO: 296 The directory /home is on an ext2 file system. The cron process should have a lower PID (Process ID). Fibre Channel Answer: D The administrator suspects the system has been compromised and runs the ps command: 615 ? Ss 0:00 /usr/sbin/sshd 624 ? Ss 0:00 /usr/bin/X11/xfs -daemon 707 ? Ss 0:00 /usr/sbin/cron 709 ? Ss 0:00 /usr/. The httpd program is not normally in /usr/. Use ice -l -n 1 to list the process with highest CPU utilization. Any Time. IEEE-1394 B. The owner is able to delete other files in the directory. D.CompTIA XK0-002: Practice Exam B. Differential SCSI D.sbin/httpd 775 ? Ss 0:00 /usr/bin/X11/xdm 776 tty1 Ss+ 0:00 /sbin/getty 38400 tty1 Which of the following should be investigated? A.actualtests. Single-Ended SCSI C. Which of the following technologies would allow these servers to connect directly to the tape library? A. Use is free to list processes with the highest foreground priority. The xfs process should not be run in daemon modes.com 89 Ac tua lTe sts QUESTION NO: 295 .www.

Permission denied Given the file listing: -rw-r--r-. The correct location for the NIS 'www' user is /mnt/www. useradd C. "Pass Any Exam. user2group Answer: B On an NIS client. Any Time. Remove the www user from the local passwd file. Change the home directory for the www user in the local passwd file. groupset D. C. rm -r /home/owner Answer: C QUESTION NO: 297 Which of the following commands will add a user to a group from a Telnet session? A. mkfs C. lsattr /home/owner/A E. 'ypcat passwd | grep www' reports: www:X:73:NIS www user:/mnt/www:/bin/sh Which of the following is the BEST solution to the problem? A.1 owner owner 5 Jun 13 12:14 A Which of the following should be checked next in order to diagnose this problem? B. dmesg D.CompTIA XK0-002: Practice Exam bash: A. Remove the www user from the NIS passwd map. B.actualtests.www. groupuse B. 'cd ~www' changes to /var/www.com Ac QUESTION NO: 298 tua lTe sts .co m 90 ." .

Hunt sts Which of the following packages helps to identify simple passwords? . The command runs with permissions of the superuser. The command restricts permissions to the superuser. Change the home directory for the www user in the NIS passwd map. The command will have the sticky bit set.CompTIA XK0-002: Practice Exam D. chmod 744 filename QUESTION NO: 300 Answer: A QUESTION NO: 301 The /usr/bin/passwd command has the following permissions: -r-s--x--x 1 root root passwd Which of the following will occur? A. D." . Answer: D "Pass Any Exam. Crack B.com Ac tua lTe A. chmod 755 filename B. C.co m Answer: D 91 . B.www. Hack D.actualtests. chmod u=rw filename C. Any Time. Answer: C QUESTION NO: 299 Which command would set a file's permissions to the following? rwxr--r-A. gnupg C. The command would use SSL (Secure Socket Layer) by default. chmod o+x filename D.

The network card is in promiscuous mode. The workstation is connected to an unmanaged switch. / Answer: C QUESTION NO: 304 The user of a Linux workstation reports slow network performance during heavy Web access. Using the ls command.actualtests. The network card is bad. The network card duplex setting is incorrect. The network card is disabled. the technician observes the following: drwxr-xr-x 2 root root 4096 May 24 13:11 dirname Which of the following is the BEST way to enable User12 to use the directory without letting other users manipulate its content? A. Any Time. Which of the following is MOST likely the problem? A. chgrp User12 dirname Answer: C QUESTION NO: 303 Which of the following symbols is added to the beginning of the password field in the /etc/passwd file so that the user cannot log in? A.www. + B. C. chmod 700 dirname C.com Ac tua lTe sts . B." . chown User12:User12 dirname D.co m 92 . ! D. D. C. chown dirname User12 B.CompTIA XK0-002: Practice Exam QUESTION NO: 302 A technician created a new directory for use by a user "User12". Answer: B "Pass Any Exam. User12 is unable to create new files or subdirectories within this new directory.

top /var/log/boot. /etc/sudoers D. No permission to others.com 93 Ac tua lTe sts .log D.log file? A.log B. Answer: C QUESTION NO: 307 An administrator needs to check which users are utilizing the u command and when it is being utilized. Read and write permissions to the owner. D. C. and read-only permission to the group. first /var/log/boot.actualtests. tail /var/log/boot. B. head /var/log/boot. Read and execute permissions to root.CompTIA XK0-002: Practice Exam QUESTION NO: 305 Which of the following commands can be used to view the first 10 lines of the boot. and read-only permission to the group.www.log C. and read-only permission to the group. Read and write permissions to root. /etc/wtmp Answer: A QUESTION NO: 308 "Pass Any Exam. Any Time. No permission to others.co m . No permission to others. Read and execute permissions to the owner. No permission to others. /var/log/lastlog C. /var/log/messages B. Which of the following log files reveals this information? A. and read-only permission to the group.log Answer: D QUESTION NO: 306 A file with permission set to octet 540 allows which of the following? A." .

168. rlookup 192.50 Answer: B QUESTION NO: 310 Answer: B QUESTION NO: 311 Which of the following processes has the lowest PID (Process ID)? A. The user suspects that the IDE drive may not be using DMA. grep dma /proc/ide/hda/settings C.0.CompTIA XK0-002: Practice Exam A hard drive is taking a long time to complete file copies. grep dma /proc/hdinfo B.co m 94 . Blowfish B. Kerberos C.50 B.168.0.com Ac A. Any Time. kswapd "Pass Any Exam.www.50 C. hostname -r 192.0." . init C.0. dig -x 192.50 D. fdisk -l /dev/hda Answer: B QUESTION NO: 309 Which of the following commands can be used to provide a reverse lookup of an IP address? A. MD5 D. sysinfo /dev/hda D.168. RC5 tua Which of the following is a secure authentication method? lTe sts .168.actualtests. Which of the following commands can be used to verify the hard drive connected on /dev/hda has DMA enabled? A. rarp 192. syslogd B. klogd D.

actualtests. time Answer: A QUESTION NO: 314 Which of the following packages is used to implement Telnet services on major Linux distributions? A." .1 jsmith root 113 Jun 16 12:59 employees -rw-r----.com Ac tua lTe sts .1 salary belso 4230 Jun 18 18:01 salary Which of the following should be done to accomplish the goal? A.co m 95 . xinetd "Pass Any Exam. Which of the following services will allow the workstation to automatically set the time? A. NTP (Network Time Protocol) B. sshd C. utime C. NNTP (Network News Transport Protocol) D.www. rsh D. Add jsmith to the group root Answer: C QUESTION NO: 313 An administrator needs to synchronize a workstation's system time with a network server. Remove jsmith to the group salary C. rtelnetd B. User jsmith is member of the groups smith and elso? -rw-rw---. Remove jsmith from the group jsmith B. Remove jsmith from the group belso D.CompTIA XK0-002: Practice Exam Answer: B QUESTION NO: 312 User jsmith needs read and write access to the file named employees but should have no access to the file named alary . Any Time.

o" >> /etc/modules.20.actualtests.gz 2.com Ac Answer: C tua A.conf lTe sts An Acme SCSI controller was installed on the server to support the boot drive.4.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 315 Ping requests to a network gateway fail.gz 2.255. rpm -ql /etc/exports Answer: A "Pass Any Exam.4.o C. ethtool eth0 subnet_mask=255.20 B." . modprobe -p acme. The driver is also available in the modules directory on the server's hard drive. rpm --verify /etc/exports C.co m 96 . It is determined that an interface's subnet mask is incorrect.255. if eth0 subnet 255.4. mkinitrd -f --with=acme. rpm -qf /etc/exports B.20.0 Answer: D QUESTION NO: 316 QUESTION NO: 317 Which of the following commands can be run to determine which package owns /etc/exports? A. will no longer boot.0 up D. Any Time.www. ifup eth0 subnet_mask=255. Which of the following commands will correct this issue? A.20. lilo append=acme.4. ifconfig eth0 netmask 255.255. the Acme driver (acme.o /boot/initrd-2.255.0 C.255.255.0 B. cat "alias scsi_hostcontroller acme. After booting from the recovery CD-ROM. The system.255.o -v /boot/initrd-2. rpm --file /etc/exports D.o) is manually loaded and works. which runs LILO and uses kernel 2.20 D.4.255. Which of the following commands will fix the problem? .

start and stop C.com Ac QUESTION NO: 320 tua lTe sts ." . mail B. C.co m 97 . mailq Answer: D QUESTION NO: 321 "Pass Any Exam. D. They are granted limited access. enable and disable B.actualtests.www. They have full access. sendmail -bd D. the following is a portion of the output of cat /etc/passwd: +Joe::::::: +Sam::::::: +:*::::::::/bin/false Which of the following is true for all users other than Joe and Sam? A. Answer: A QUESTION NO: 319 Which of the following commands can be used to start and stop printers and classes? A. They are denied access. Any Time.CompTIA XK0-002: Practice Exam QUESTION NO: 318 On an NIS client. lpr Answer: A Which of the following commands allows a user to view undelivered messages on a server using sendmail as the MTA (Mail Transport Agent)? A. lprm D. B. smtpd C. They gain access after being prompted for a shell.

gimp "Pass Any Exam.pdf file will print correctly.pdf document using the following command: lpr flyer. e2label -t ext3 /dev/hda2 C.pdf Which of the following results will MOST likely occur? A. Apache C. e2image -j /dev/hda2 . D.co m Which of the following commands could be used to convert the ext2 file system on /dev/hda2 to use the ext3 file system? 98 . An error message will appear.www.actualtests. B. The flyer. C. The flyer.CompTIA XK0-002: Practice Exam A user is trying to print a . tune2fs -j /dev/hda2 D. mkfs -t ext3 -j /dev/hda2 B. sane B. The printer will print pages with strange characters. Squid Answer: B QUESTION NO: 324 Which of the following is necessary for a user to scan images from a flatbed scanner? A. Bind B. Mozilla D. Answer: A QUESTION NO: 322 Which of the following packages would be selected during installation to provide a Web server? A.pdf file will be displayed." . Any Time.com Ac tua QUESTION NO: 323 lTe Answer: C sts A.

cups D.bz2 B. C. Decrease the APM (Advanced Power Management) value for the hard drive. Which of the following can improve the hard drive performance? A. the hard drive performance significantly decreases.www.rpm. D. bunzip2 package. Answer: D QUESTION NO: 326 A Linux administrator wants to disable the use of setuid and setgid files for the /var file system.com Ac tua lTe sts . B. Add an entry to the options list in /etc/fstab B.co m 99 .bz2 C.bz2 Answer: A "Pass Any Exam. Add an entry to /etc/setuid. twain Answer: A QUESTION NO: 325 When a Linux laptop runs on battery. bunzip package.conf Answer: A QUESTION NO: 327 A user receives a file named package.bz2 D. Increase the APM (Advanced Power Management) value for the hard drive. Which of the following commands will uncompress the file for use? A. Add an entry to the options list in /etc/sysctl. Increase the amount of swap space on the disk. Any Time.rpm.conf C.actualtests. How would this be accomplished? A.rpm.bz2.rpm. Decrease the amount of swap space on the disk. Run the command "tune2fs --nosuid /var" D." . bzip -d package. bzip2 --uncompress package.rpm.CompTIA XK0-002: Practice Exam C.

com Ac tua QUESTION NO: 330 lTe Answer: A sts A.co m Which of the following programs could be used to display a remote login prompt on a serial line or terminal? 100 .actualtests. console C. agetty B. which of the following cables should be used? A. /etc/doc B. sshd ." . Any Time. The output of ls -l b is: lrwxrwxrwx 1 root root 1 Jun 13 12:44 b -> a Which of the following is the effect if root issues the command hmod 600 b? "Pass Any Exam. /documents D. 80 pin 80 wire Answer: B QUESTION NO: 331 Suppose b is a link to another file.CompTIA XK0-002: Practice Exam QUESTION NO: 328 The user would like to find documentation files of an installed package. Which of the following is the MOST likely place to find the documentation? A. /usr/share/doc C. 80 pin 40 wire D. /usr/local/doc Answer: B QUESTION NO: 329 When an ATA-133 hard drive is installed. 40 pin 80 wire C. portmap D. 68 pin 68 wire B.www.

no_root_squash) lTe sts . Any Time.1 D.1? A. The user will receive an error message.10. A directory or filename C. A hostname D.actualtests.10.10. Permissions listed for both the symbolic link and the target file are changed. A username B.CompTIA XK0-002: Practice Exam A. A program name Answer: C QUESTION NO: 334 A Linux system has been installed using Chinese.10. Permissions for the target file are set to 600 while the permissions listed for the link are unchanged. the name ogger is which of the following? tua The /etc/exports file on a Linux system contains the following entry: /var logger(ro." . Which of the following commands can be used to do this? "Pass Any Exam.com Ac In this file.www.10.1 C.10. The system administrator has been asked to change the language setting to English. B. C.1 Answer: A QUESTION NO: 333 A. Permissions associated with the symbolic link itself are set to 600 while the permissions for the target file are unchanged. Answer: C QUESTION NO: 332 Which of the following is the correct way to specify the algorithm for an SSH (Secure Shell) connection to 10. D.10. ssh -c 3des 10.10. ssh --alg=3des 10.1 B. ssh --crypto=3des 10.10.co m 101 . ssh -a 3des 10.10.

www. netstat D. Which of the following commands can be used to change the current MTU value to a new one? A. NTFS B. route B. depmod D. lsmod B. sudo --single B. HFS (Hierarchical File System) C. chroot -so D.actualtests. keyboard C.CompTIA XK0-002: Practice Exam A. ifconfig C. FAT D. iptables Answer: B QUESTION NO: 336 Which of the following commands could an administrator use to switch to single-user mode without rebooting the system? A. Ext2 "Pass Any Exam. Any Time. xmodmap Answer: D QUESTION NO: 335 An administrator needs to adjust the MTU (Maximum Transmission Unit) value on an Ethernet interface.com 102 Ac tua lTe sts .co m . init 1 C." . su --single Answer: B QUESTION NO: 337 Which of the following types of partitions can be used to provide a reliable shared partition on a dual-boot system with Linux and Windows 98? A.

NTLMv2 C. RC2 D.com Ac tua lTe A. chap B. www. Which of the following is needed to make these drivers work? . The distributor's source code B.co m 103 . The drivers may be downloaded in source code form only.CompTIA XK0-002: Practice Exam Answer: C QUESTION NO: 338 A RAID controller is to be installed in Linux as the boot device. The manufacturer's installation kit C. Any Time." . but no binary drivers are provided. Internet search engine B.actualtests. Which of the following sources will BEST confirm that the hardware is supported by the version of Linux being installed? A. RAID manufacturer's Website Answer: C QUESTION NO: 339 Answer: C QUESTION NO: 340 Which of the following is supported when creating a Linux VPN (Virtual Private Network)? A. Linux distribution Website D.linuxdoc. The manufacturer's development library sts The network card in the server is on the Linux distributor's HCL (Hardware Compatibility List).www. The Linux kernel sources for the installed kernel D.org C. 3DES Answer: D QUESTION NO: 341 "Pass Any Exam.

File server D.com Ac tua lTe sts . cat /etc/shadow C.co m 104 .CompTIA XK0-002: Practice Exam A customer requires that the following packages be installed on a server: quota raidtools Samba Amanda yp-serv For which of the following purposes is this server MOST likely to be used? A. cat /etc/services B. Database server Answer: C QUESTION NO: 342 Which of the following can be used to view username. Firewall C. Streaming media server B. cups --queue -h printhost B." . lpr --list-jobs -h printhost D. Any Time. GID (Group ID). UID (User ID). cat /etc/passwd Answer: D QUESTION NO: 343 Which of the following commands could be used to show the waiting print jobs on printhost using the CUPS printing system? A.www. and default shell information? A. full name. showqueue -h printhost C. home directory. cat /etc/group D. lpstat -h printhost Answer: D "Pass Any Exam.actualtests.

/etc/init." . /etc/nameserver. chown -R user /home/user Answer: B QUESTION NO: 345 Which of the following Linux systems would MOST likely be without a monitor and keyboard? A. Portable network traffic analyzer C. Any Time. Which of the following files must be checked to confirm DNS settings? .conf . Thin client workstation B.conf D. Database server appliance D. chmod 700 /home/user C. /etc/named. /etc/resolv. chmod 711 /home/user B. chown user /home/user/* D.www.d B.conf C.co m A workstation is unable to browse a Website by name.com 105 Ac tua QUESTION NO: 346 lTe Answer: B sts A.CompTIA XK0-002: Practice Exam QUESTION NO: 344 Which of the following commands can be used to ensure that all the files in /home/user and its subdirectories are accessible only by the owner of /home/user? A.actualtests. Web browser kiosk Answer: C QUESTION NO: 347 The following is an extract of a password file: Smith:*:1133:334:John Smith:/usr/people/jsmith:/bin/tcsh Which of the following is the purpose of the ??in Smith's password field? "Pass Any Exam.

It deactivates Smith's account.CompTIA XK0-002: Practice Exam A.log be found effectively? A. find / -daystart -amin 60 -name error. find -name error.log C. It indicates that Smith is a superuser. BLUE C. Answer: B QUESTION NO: 348 A script set to run using /bin/sh has executed a grep command.co m 106 . B. and grep has returned an error. It indicates that Smith's home directory is shared by other members of his group.log should be viewed. If the grep result is analyzed by the following logic: if [ "$?" = 0 ] then echo BLUE else echo GREEN fi Which of the following will be the script's output? A. but no location is provided. D. Error: Unexpected input "$" B.actualtests. C. find / -n error. Any Time. How can this file for the error.log B. It forces Smith to change his password at his next login. GREEN D.log Answer: D QUESTION NO: 350 "Pass Any Exam.www.com Ac tua lTe sts ." . find / -name error.log D. end Answer: C QUESTION NO: 349 An application is failing and indicates that the error.

1.0 netmask 255.1 D.0. To suspend a user account C.1. To run fsck on a damaged filesystem B.1.1. ALL: 192. route remove 192.3.1.1 0.0 0.com Ac tua lTe sts .0 192.255.255.0 U 0 0 0 eth 0 0.1 with a subnet mask of 255. route remove -net 192.168.0 netmask 255.0.255/255.3. All services are currently denied.CompTIA XK0-002: Practice Exam The administrator has added a specific route for 192. To check the root and postmaster mail boxes D.255.168.co m 107 .243 B.1/24 B.3.255.168.0 UG 0 0 0 eth0 Which of the following is a valid method for removing the route? A.actualtests.168.3.0.255/24 C.255.0 gw 192.3.168.255.0 UG 0 0 0 eth0 192.0.168.255.243 255.168. To reset a forgotten user password Answer: A QUESTION NO: 352 A Linux machine has a local address of 192.0.0 255.0 gw 192. route del -net 192.168.168.255.168.allow file to permit access to the Web service on the local subnet? A.0 192.0 255.1.0 Answer: A QUESTION NO: 351 Under which of the following scenarios should an administrator initiate single user mode? A.168.0. Which of the following lines should be appended to the hosts.168.1.0/24 D.1. Any Time.1.0/24 to the routing table as shown below: Destination Gateway Genmask Flags Metric Ref Use Iface 192.255.255. httpd: 192. ALL except httpd: 192.1.255. edit /proc/net/netstat C.0.www.168.255. 192.255.168.0:httpd Answer: C "Pass Any Exam." .168.255.

" . vmstat --time='1 min' 10 B. vmstat 10. Any Time. userdel -r "Pass Any Exam. POST B. vmstat -10 -1min D.sysinit D. Which of the following commands accomplishes this? A. sleep 60 Answer: B QUESTION NO: 354 A Linux administrator just installed Xfree86. /etc/rc. vmstat 10 6 C. systeminfo C. /etc/inittab B. Which of the following commands will remove the user from the system and maintain the contents of the employee's home directory? A.com 108 Ac tua QUESTION NO: 355 lTe Answer: C sts A.actualtests. Which of the following files should the administrator edit in order to change the default system runlevel from 3 to 5? A. /etc/runlevels C.www.co m Which of the following commands will display a list of system hardware after the Linux system boots? . proc . dmesg D. /etc/defaultrunlevel Answer: A QUESTION NO: 356 An employee has been terminated from the company.CompTIA XK0-002: Practice Exam QUESTION NO: 353 The system administrator wishes to view vmstat output once every 10 seconds for the next minute.

co m 109 . The Apache Web server is running. Answer: D QUESTION NO: 358 Answer: C QUESTION NO: 359 A server requires more swap space. There are too many users. C. After editing the configuration. Which of the following configuration files should be edited to support the specific country keyboard? sts . The SSH (Secure Shell) is disabled.com Ac tua A.CompTIA XK0-002: Practice Exam B." . mkfs -swap B. keyb. which of the following commands is used to activate the new partition? A. The system is unpatched. sfdisk /dev/sdb2 Answer: C "Pass Any Exam. D.www. Any Time. A new swap partition is created at /dev/sdb2 using fdisk.conf C. mount -t vfs /dev/sdb2 C.bash_profiles lTe After a company-standard installation.actualtests. Xmodmap B. usermod -f D. userdel Answer: D QUESTION NO: 357 A Linux server may have vulnerabilities if which of the following occurs? A. B. . passwd -l C. a user with a Swedish keyboard has the English character set loaded. XF86Config D. swapon -a D.

15 C.com Ac tua lTe A. 14 D. and the result is: -rwxrw---x 5 root wheel 8192 Jan 01 21:00 file Which of the following chmod commands corresponds to the current permissions of the file? A. chmod 761 file QUESTION NO: 361 Answer: C QUESTION NO: 362 Which of the following is used to terminate a hile loop in a BASH shell? A. chmod 623 file D. Any Time.www." . 7 sts Which of the following IRQs is commonly used by /dev/hda? . elihw C. wend B.actualtests. done Answer: D QUESTION NO: 363 "Pass Any Exam.CompTIA XK0-002: Practice Exam QUESTION NO: 360 The command is -l file is issued. chmod 726 file C. 3 B. end D.co m Answer: D 110 . chmod 471 file B.

access_log Answer: A QUESTION NO: 366 When a new user account is created. apache_log C. Any Time. Which of the following files needs to be edited? A. Where can the technician find detailed messages about this problem? lTe sts . error_log B. B. The user wants to change the mount point from /media/cdrom to /cdrom." .1 with a default install of Apache. /etc/exports B. /etc/mount C. and received a orbidden message. /etc/mtab D. httpd_log D. It prevents the system from being rebooted remotely. It creates accountability by writing all "su" attempts to a su log.0. It restricts sudoers who can su to root. C. default settings are copied from which of the following? A.co m 111 .0. /etc/start "Pass Any Exam. It stops bruteforcing attempts on the root account over the network. /etc/fstab Answer: D QUESTION NO: 365 A.com Ac tua A Linux technician accessed the Web server on http://127. Answer: C QUESTION NO: 364 A user complains that the mount point the system uses for the CD-ROM device is too long.www. D. /etc/skel B.actualtests.CompTIA XK0-002: Practice Exam Root logins should NOT be allowed over the network for which of the following reasons? A.

fsck B.password=mywindowspassword B. Which of the following commands is designed to display the contents of this file in human-readable format? A.actualtests. smbmount -t smbfs //servername/sharename /mountdirectory -o username=mywindowsusername. showtmp C. demesg Answer: D Which of the following commands can be used to mount a Samba share? A.com 112 Ac tua lTe sts QUESTION NO: 368 . debug D. mount -t smbfs \\servername\sharename /mountdirectory -o username=mywindowsusername.CompTIA XK0-002: Practice Exam C. How can this information be recalled? A." . mount -t samba /servername/sharename /mountdirectory -o username=mywindowsusername. wshow "Pass Any Exam. It went by too quickly on the screen for the administrator to read the details. /usr/default Answer: A QUESTION NO: 367 An administrator watches a Linux system boot and noticed an error with one of the hda partitions.co m .password=mywindowspassword Answer: D QUESTION NO: 369 An administrator is seeking to view the information contained in the wtmp log file.www. Any Time. last B. smbmount //servername/sharename /mountdirectory -o username=mywindowsusername.password=mywindowspassword C. top C.password=mywindowspassword D. /home/default D.

sane Answer: C QUESTION NO: 373 "Pass Any Exam.www. change 4755 filename D.com Ac tua lTe A. lprd B. cupsd D. chmod 6755 filename B. postfix C. Any Time.CompTIA XK0-002: Practice Exam D.co m Answer: A 113 ." . USB cards D. PCI cards C. PCMCIA cards sts Which of the following configurations does cardmgr read at startup on a Linux system? . chmod 1755 filename QUESTION NO: 371 Answer: D QUESTION NO: 372 Which of the following daemons could be used for printing on a Linux system? A. chown 2755 filename C. SCSI cards B. displaytmp Answer: A QUESTION NO: 370 Which of the following commands sets the permissions of a file to the following? -rwsr-sr-x A.actualtests.

crontab -l B. C. tar -cvf . gtar zcvf backup. crontab -e C. The account is using a service UID (User ID). The technician checked the server records and noted that shadow passwords are disabled.actualtests.com Ac tua lTe sts . tar zcvf backup.www.tgz * Answer: B QUESTION NO: 375 Which of the following commands can be used to view a user's crontab entry? A.tgz B.tgz * C. The account is expired. Jones used the wrong password. The account is disabled.tgz * D. cronview Answer: A QUESTION NO: 376 Why should "/tmp" be located on a separate partition from the "/" file system? "Pass Any Exam.* | gunzip > backup.co m 114 . D. Any Time. The technician also noted that /etc/passwd contains the following entry: jones:*:1001:300:Bob Jones:/home/jones:/bin/bash Which of the following is MOST likely to be the problem? A." . Answer: C QUESTION NO: 374 Which of the following commands can be used to back up all the files in the current directory and compress them? A. crontab -v D. B.CompTIA XK0-002: Practice Exam User 'jones' cannot login to a Linux server. tar -Zxvf backup.

/tmp file system is cleared after every reboot. RAID device tua Which of the following BEST describes the /dev/md0 device? lTe sts ." . Answer: A QUESTION NO: 377 A Linux disk indicates that it has errors. /tmp requires a lot of space. ATA device D.actualtests.co m .com 115 Ac A. LOOP device B. B. Which of the following commands tests an entire ext2 file system and repairs errors without user interaction? A. Any Time. "Pass Any Exam. /tmp is used to simulate RAM.CompTIA XK0-002: Practice Exam A. D. B. It creates the /etc/shadow file. e2fsck -y B.www. It creates the /usr/lib/shadow file. moves the encrypted passwords into it and places an x in the password field of the /etc/passwd file. SCSI device C. e2fsck -V D. C. fdisk -V C. moves the encrypted passwords into it. and places an x in the password field of the /etc/passwd file. /tmp could become full and fill up the root file system. e2fsck -a Answer: A QUESTION NO: 378 The administrator sees this line in /etc/fstab: /dev/md0 / ext3 defaults 0 1 Answer: D QUESTION NO: 379 The pwconv command does which of the following? A.

Which of the following DOS utilities would the administrator use to write a diskette image onto a 3. Answer: A QUESTION NO: 380 The administrator wants to deny ICMP traffic from being forwarded.actualtests. the administrator discovers the machine does not have a bootable CD-ROM drive.5" diskette? sts .CompTIA XK0-002: Practice Exam C. PPPoE "Pass Any Exam.co m . iptables -A FORWARD -p udp --dport icmp -j DROP Answer: A QUESTION NO: 381 Answer: D QUESTION NO: 382 Which of the following protocols is used while configuring a Linux workstation to use a connection via a DSL modem? A. linload D. It removes the /usr/lib/shadow file and places the encrypted passwords in the second field of the /etc/passwd file. SLIP C. It removes the /etc/shadow file and places the encrypted passwords in the second field of the /etc/passwd file. iptables -A FORWARD -p icmp -j DENY D. copy C. D.com 116 Ac A. Any Time. iptables -A FORWARD -a all -proto ICMP -j REJECT C. xcopy B. ATM B. iptables -A FORWARD -p icmp -j DROP B. Which of the following commands would accomplish this? A." . PPTP D.www. rawwrite tua lTe After downloading a new Linux distribution for a new installation.

CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 383 Which of the following fstab entries will mount a Samba share at boot time? A." . Access control lists QUESTION NO: 385 A user downloads the software package "package. Which of the following command lines can be used to extract the contents of the package? A.co m 117 .tar.tar. //servername/sharename /mountdirectory sambafs username=windowsusername. bzip2 -d < package. smbmount //servername/sharename /mountdirectory -o username=windowsusername. tar xf package.actualtests. servername:sharename /mountdirectory smbfs username=windowsusername.tar | tar xvf package.com Ac Answer: A tua lTe sts .bz2" from the vendor. Infrared remote control configuration files C.tar.password=windowspassword 0 0 D. Any Time.password=windowspassword 0 0 B.tar. tar xvf package.tar.bz2 C.bz2 | tar xvf Answer: D "Pass Any Exam.password=windowspassword 00 C.bz2 | bzip2 -d B.bz2 D.d directory? A. Service startup scripts B. //servername/sharename /mountdirectory smbfs username=windowsusername.password=windowspassword Answer: A QUESTION NO: 384 Which of the following is contained in the init.www. New user templates D. bzip2 package.

actualtests. /dev/ecp1 D. /dev/epp2 C. Which of the following device identifiers needs to be used during configuration? . /dev/lp1 B.com 118 Ac tua QUESTION NO: 388 lTe Answer: A sts A.168. su "rm -rf /tmp/*" B. mtrr. if any." . No driver is required. when issued from a non-root user. rm -rf /tmp/* -su C. /dev/prn2 . cache.168. rmdir -rf /tmp/* Answer: C QUESTION NO: 387 Which driver. sshd -l user 192.o C.co m A user wants to set up a parallel port printer on the workstation's second parallel port.www. ssh -6 -l user 192.168.0.100? A. msr.0. is required to support L3 cache on the system processor? A.100 "Pass Any Exam.o Answer: A QUESTION NO: 389 Which of the following commands should be used to allow SSH (Secure Shell) to connect to a server with IP address 192. Any Time.100 B.0. will remove all files from the /tmp directory after prompting the user for the root password? A. su -c "rm -rf /tmp/*" D.o D. B.CompTIA XK0-002: Practice Exam QUESTION NO: 386 Which of the following commands.

Set LILO=/dev/hda and then run "liloconf /dev/hda" C. How should this be accomplished? A. Which of the following applications would allow the user to configure the WEP (Wired Equivalent Privacy) key? A. Any Time.100 Answer: C QUESTION NO: 390 A user needs to attach a Linux laptop to a wireless access point using 802.0. keygen-ssh C. ssh-keygen Answer: D "Pass Any Exam.168. Run "lilo -o /dev/hda" Answer: A QUESTION NO: 392 The administrator discovers that the SSH (Secure Shell) key may have been compromised. wl-keygen D.conf and run "liloconf -v -v" D. WINE Answer: A QUESTION NO: 391 The LILO boot configuration needs to be updated to support a new IDE hard drive that was installed.0.actualtests." . sshd -6 192. make ssh-key D.www.com Ac tua lTe sts .conf and run "lilo -v -v" B. Edit lilo. Edit lilo. netconfig C. ssh -l user 192. Which of the following commands would the administrator run to create a new key? A.168.100 D.CompTIA XK0-002: Practice Exam C.co m 119 . make clean | ssh-key B. wlancfg B.11b.

Sign up to vote on this title
UsefulNot useful