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

Edit the /dev entry for the device. Hard drive Answer: D QUESTION NO: 12 Which of the following processors would be fully supported by glibc-2.com 5 Ac QUESTION NO: 13 tua Answer: B lTe A. Any Time. IBM PowerPC processor Answer: C QUESTION NO: 14 A USB memory stick is plugged into a server. Which of the following needs to be done in order to resolve this issue? m . C.www. Edit the /etc/fstab file.5.actualtests.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. Video card B. They have a limited budget. HP Alpha processor B. sts .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. Processor D. but the mount command generates the following error: "Pass Any Exam.3-100. Which of the following is the MOST important hardware investment for this user? A.i686. Silicon Graphics MIPS processor C." . Change the default run level in /etc/inittab. Load a kernel module for the drive. B.rpm? A. D. Intel Pentium III processor D. IEEE-1394 card C.

Which of the following commands could do this? A. httpd tua Which of the following services is commonly started from xinetd? lTe sts ." .0 C.rpm B. rpm -V samba. fingerd B.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. Any Time. C.0 device was plugged into a USB 1. A USB 2. sendmail C.0.rpm C. rpm -c samba.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. Answer: A QUESTION NO: 15 Which of the following commands can be used to confirm checksums on the Samba package? A. B. dd if=/tmp/tocd of=/dev/write "Pass Any Exam. rpm -i samba. The USB memory stick is not formatted.actualtests. /dev/sda does not exist. The kernel module loader is not available. rpm -v samba. mkisofs /tmp/tocd | cdrecord dev=0.co m 6 . smbd D.0 socket. mkisofs -o /dev/cd /tmp/tocd B.rpm D.www.com Ac A. D.

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.actualtests. . 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 . 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. rbash C." . psroot B. Any Time.www.co m Answer: D . bash -limited D. Which of the following would accomplish the goal? A. cat /proc/sys/proc sts Which of the following commands is used to show all of the root processes running on a system? . ps -au root D.CompTIA XK0-002: Practice Exam D.com 7 Ac tua lTe A. exec bash B. jobs 0 C.

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

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

Which of the following appears after a user's name in the /etc/passwd file when a user account is disabled? A. man D. X C. swapon C." . 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 . * Answer: D Answer: D QUESTION NO: 30 When a user begins to use a shell. & B. mkswap D. PATH=$PATH:/usr/local/program1/bin B.com Ac tua A. the only information showing is the prompt.co m 10 . ? D. Any Time.actualtests.www.CompTIA XK0-002: Practice Exam B. help Answer: D "Pass Any Exam. mkswapfsiso Answer: C QUESTION NO: 28 Shadow passwords are disabled on a Linux server. setpath PATH=$PATH:/usr/local/program1/bin C. manual B. locate C. setenv PATH=$PATH:/usr/local/program1/bin D.

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

C.255.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 192. Use SSH (Secure Shell) to forward X11.200. route add -net 192.100.actualtests.com 12 Ac tua lTe sts A.5 C.128 gw 192.0 netmask 255.168.255.200.255.100. In the program's source directory.192 gw 192.128 gw 192. route add -net 192.100.255.255.168. SSH is now no longer accepting connections. How can this be made secure? .200.255. Configure local X server to allow the remote host. route 192. .www. Install an X server on the local client. where should it be placed? A.100.168.168.255. D. In the application's specific codec directory Answer: D QUESTION NO: 37 When remotely administering a Linux machine using SSH (Secure Shell). the administrator added a rule to deny traffic on Port 22.100.0 netmask 255.co m A Linux user wants to access the X interface on a remote server. Which of the following would resolve this problem? A." .192 gw 192. As an accessible device in /dev C.255.200.168.168.0 netmask 255.168. Install a secure version of X.5? A.5 D.168. B.0/25 to 192.200. In the user's home directory D. Once the correct codec is received.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.5 B.168. Any Time. Restart the SSH service "Pass Any Exam.168.0 netmask 255. then compiled into it B.

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

chmod 770 file C.255. Any Time.168. C.4. Answer: A QUESTION NO: 44 Which of the following commands will display the last 15 lines of an application log? A. chmod 077 file B. D. The Ethernet card is faulty.168. 0755 D. chmod 777 file D. The Ethernet cable is faulty.5. 1777 C.co m Which of the following are the default permissions of /tmp? .250.235/26 and a default gateway of 192. 0222 . The netmask is wrong and should be changed to 255. 1755 B.255. The workstation cannot ping a second server at 192. B.4.4. It can ping a server at 192.255. chmod 700 file Answer: D QUESTION NO: 42 Answer: B QUESTION NO: 43 A.0." .168. Which of the following is the problem? tua lTe sts A.168.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. grep -l 15 | cat "Pass Any Exam. The administrator has verified that the default gateway setting is correct.255.com 14 Ac A Linux workstation that has been configured with the IP address of 192.1.www. The netmask is wrong and should be changed to 255.3.128.actualtests.

name1 < name2 | name3 C. cat filename | less 15 D. and DNS lookups.CompTIA XK0-002: Practice Exam B. IP forwarding is not working. 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.conf. /etc/hosts is used for all NIS. name1 > name2 | name3 D. NIS is used first for hostname resolution.Which of the following shell commands will do this? lTe sts . NetBIOS. Which of the following commands should the network administrator have issued? A. Run save proc Answer: A QUESTION NO: 46 A. what does the following line do? ~ hosts: nis files dns A. B. Restart the network daemon C. cat filename | more 15 C. Run echo "1" > /proc/sys/net/ipv4/ip_forward --save D.co m . Edit the /etc/sysctl. Any Time.www.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.conf file B.actualtests." . name1 | name2 < name3 B. name1 | name2 > name3 Answer: B QUESTION NO: 47 In the file /etc/nsswitch. "Pass Any Exam.

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

actualtests. Auto. crackpasswd B. README. All files created today C.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 '.CompTIA XK0-002: Practice Exam QUESTION NO: 51 Which of the following files is commonly included with source code to automate the compilation? A. Any Time.*' A.co m 17 . crack D. Autorun C.www. crypt C.so B. All directories Answer: C QUESTION NO: 53 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 . All hidden files D. 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. All files created in / B." .

CompTIA XK0-002: Practice Exam 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.www. nmap D. 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. MPEG-2 encoder D. ifconfig C. ext3 B. find /etc/*ntp* C. find *ntp B.co m 18 . XFree86 B." .actualtests. In addition to a video card with input source. MPEG-2 capable camera C. Sound card tua lTe A technician is creating MPEG-2 video files in Linux. swap D. reiserfs Answer: C "Pass Any Exam. find ntp* D. vfat C. Any Time.com Ac A. which of the following multimedia components is also required? sts . arp B.

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

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

/etc/acpi. ypcat passwd C.actualtests.co A user wants to create an image of a system boot disk in order to copy it. /etc/modules." . /etc/acpi/events/power C.com 21 Ac tua lTe A. cpd C. which of the following directories would MOST likely be on a separate partition? "Pass Any Exam.www. xcopy B.conf Answer: B QUESTION NO: 67 When a file server is installed.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. nispasswd D. which of the following files would be edited to map the power button to the desired command? A. yppasswd Answer: B QUESTION NO: 65 Answer: D QUESTION NO: 66 If a system uses ACPI (Advanced Control and Power Interface).conf B. ypwhich B. Which of the following commands will do this? m . /proc/acpi/powerbutton D. dd sts . Any Time. cp --disk 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. Any Time. Creates a new file called 'hello' and sends it to all users. Tape C.CompTIA XK0-002: Practice Exam A. Sends the message 'hello' to all currently logged in users.com 22 Ac tua lTe sts . /var B. SCSI B. C. B. D. A list of runlevels B. /usr C.www." . which of the following would be accomplished? echo hello >> allusers A. Answer: B QUESTION NO: 69 Which of the following is the economical choice for high capacity off-site archiving? A. Optical Recordable D. /local Answer: C QUESTION NO: 68 If the command below is executed in a user's home directory.actualtests.co m . /home D. Appends 'hello' to the end of the file llusers? if it exists. Sends the message 'hello' to all users on the system. A timeout value "Pass Any Exam.

Any Time. B. crond -q D. Which of the following commands would accomplish this? A. 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.co m 23 . ps -r john D. D.www. Which of the following is the BEST way to complete the installation? A. ps -U john C.CompTIA XK0-002: Practice Exam C.actualtests. at -m Answer: A "Pass Any Exam. C. Copy the CD-ROM files to the machine using the 3. cat /proc/timer/crond C.5" diskette drive. Answer: B QUESTION NO: 72 The system administrator needs to examine the processes owned by the user with the login 'john'. Install via FTP from an FTP server. crontab -l B." . ps --all | grep john B. Install via TFTP (Trivial File Transfer Protocol) from the network. A flag or option code D. Install via NFS (Network File Server) from a Web server. 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.com Ac tua lTe sts .

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

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

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

/dev D.actualtests.com Ac A. 367 C. /usr C. /dev/hdb1 /mnt/hdb1 reiser defaults. 037 B. 640 "Pass Any Exam. /dev/hdb1 /mnt/hdb1 ext3 defaults.notail 0 0 D.notail 0 0 C.co m 27 . /proc B. Any Time. /dev/hda1 /proc/hda1 ntfs defaults.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.CompTIA XK0-002: Practice Exam Which of the following commands will accomplish this? A. /dev/hd1 /mnt/hda1 ntfs defaults. 177 D.www.notail 0 0 B.noatime.noatime. chmod 2777 /tmp C. 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." . chmod 1777 /tmp D.notail 0 0 tua Which of the following is a valid entry for /etc/fstab? lTe sts . chmod 0777 /tmp B.noatime.

Add ermitLogin no to /root/.co m . Answer: D QUESTION NO: 91 Before performing a new Linux server installation. Any Time.www. httpd --directory /home/user/html D. The sound module was not added to the kernel. httpd -r /home/user/html Answer: B QUESTION NO: 90 After properly installing both the sound card and modules. 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. httpd -d /home/user/html C. C. The ALSA (Advanced Linux Sound Architecture) sound server was not started.ssh/sshd_config D. Add ermitRootLogin no to /etc/ssh/sshd_config C. Which of the following is MOST likely to be the problem? A. Add enyLogin to /root/.actualtests." . D. B.com 28 Ac tua lTe sts .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. but no sound was heard. The sound card does not support MP3 playback.ssh/sshd_config B. httpd --root /home/user/html B. what part of the installation should be planned and documented? "Pass Any Exam. the technician attempted to play an MP3 file. The sound card is not on the HCL (Hardware Compatibility List).

Partition map. On the network perimeter C. On an isolated network segment B. required packages. Which of the following is the BEST way to minimize the downtime? A.www. daemon configuration. On the core network router lTe When a new Snort system is installed. required services.actualtests. Notify the domain registrar of the change in advance.30s/test/TEST/g C. user passwords C. required services." . Near the system administrator's workstation D. where should the system be placed on the network? sts . :/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. System hardware. Any Time. required packages. D. Any downtime would have a major impact. required packages. System hardware. Change the Webserver TTL (Time-To-Live) record to 5 minutes.co m 29 . Change the Webserver PTR record to the new hostname. partition map. :30s/test/TEST/g B. C. :1. root password. :s/test/TEST/g D. Partition map. performance baseline D.CompTIA XK0-002: Practice Exam A. Answer: B "Pass Any Exam. 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. B.com Ac tua A.conf on the Webserver. performance baseline B. Update /etc/resolv.

" . 3DES D. netstat B. 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. var D. D. Run a password recovery utility.actualtests. Which of the following is the FIRST step the new administrator should do to reset the root password? A. pmap C. The prior administrator did not give the root password to the current administrator.CompTIA XK0-002: Practice Exam QUESTION NO: 95 A new administrator is asked to reconfigure a Linux machine. B.co m . Reinstall the operating system. Answer: B QUESTION NO: 96 Which of the following encryption algorithms are natively supported for the /etc/shadow file? A. twofish C. DES B.www. Any Time. Boot to single user mode. Use view to edit the password file.com 30 Ac tua lTe sts . 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. C.

sendmail someone@localhost -s 'Our Aliases' > /etc/aliases D.CompTIA XK0-002: Practice Exam A.actualtests. printData < myData Answer: D "Pass Any Exam. Verify that the hard drive has been formatted. C. printData | myData B. B. Any Time. 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. printData . myData D.www. Review the HCL (Hardware Compatibility List) on the Linux distributor's Website. wall -s 'Our Aliases' > /etc/aliases B. printData > myData C." . 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. Run the sysprep utility from the Linux vendor's CD. RAID 5 B.com Ac tua A.co m 31 . postfix someone@localhost -s 'Our Aliases' < /etc/aliases C. Download all appropriate device drivers from the Linux vendor's Website. RAID 3 C. D. 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 . RAID 1 D.

SHELL B. /etc/resolv. Limit file permissions on the printer filter to users on the database server C.www. 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. 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.com Ac tua lTe A.lpd to only include the database server sts . what is the correct syntax for the user doe4?to login remotely to the example. Edit /etc/hosts. HOME D.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 B.conf C.com server? "Pass Any Exam. /etc/hosts.actualtests. Any Time. FILES C. Edit /etc/printcap and add a filter to only include the database server B. Only the database server must be allowed to print.conf D." .allow Answer: D QUESTION NO: 105 Using SSH (Secure Shell). /etc/host. Which method is considered best practice? m 32 .

allow "Pass Any Exam. printcap C." . cat instructions | awk '/PC/ print omputer' C.com B. ssh --user jdoe4@example.com Ac A. hosts.com D.www. lpd. ssh example. sed s/PC/computer/g instructions D. disable-smp B. Any Time.allow B.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. hosts. block-cpu-1 D.com C. ssh jdoe4 example.actualtests. nosmp C.CompTIA XK0-002: Practice Exam A.equiv D. a technician needs to boot an SMP (Symmetric Multi-Processor) system to use a single CPU.co m 33 . cat instructions | awk C omputer B. enable_smp=no tua lTe For troubleshooting. Which of the following is the correct parameter to pass to the kernel at boot time? sts . 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. ssh -l jdoe4 example.

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

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

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

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

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

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

echo $SHELL C.com Ac tua lTe QUESTION NO: 137 sts .www. shell D. cat /proc/shell B.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. guest ok = yes D. su -c "kill 1010" "Pass Any Exam. kill 1010 D. Any Time. anonymous = yes B.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. users = * Answer: C Which of the following commands displays the name of the current shell? A. Which of the following commands will kill the process? A. printall = yes C. su "kill 1010" B.co m 42 . killall -9 1010 C." .

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

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.actualtests. grep bob /etc/group > bob_groups. /dev/hda Answer: B QUESTION NO: 143 Which of the following Linux files is used to assign users to groups? A. /dev/sdb B.txt C. POP3 B. /dev/sda D.www.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 . FTP C. /dev/hdb C.co m 44 . Any Time.com Ac A. SMTP D.txt B. /etc/users C. whereis bob >> bob_groups. cd /etc. SMNP "Pass Any Exam. find /etc/passwd bob >> bob_groups. /etc/group D.txt D. cat groups | grep bob | vi > bob_groups. Which of the following devices would be the target of the Linux partitioning? A." . /etc/passwd Answer: C Answer: C QUESTION NO: 145 Which of the following services commonly uses Port 25? A. /usr/group B.

6 D. 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. 0 C. 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. w D. who C. 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? . 2 B.actualtests.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. 1 Answer: D QUESTION NO: 149 "Pass Any Exam.co m 45 .com Ac tua lTe A.www. Any Time. log --list B. find /mnt -mode s -ls C. find /mnt -suid -type f -ls D.

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

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

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

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

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

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

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

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

actualtests.co To which of the following IRQ settings does ttyS1 default on a Linux server? m 54 .com Ac tua lTe sts A. 4 . 5 D.www. Any Time." . man -k 2 passwd B. tail -v /var/log/messages B. 3 C. man 5 passwd C. 12 B.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. tail -f /var/log/messages Answer: D QUESTION NO: 179 A user complained that a laptop system seems slow. 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. tail -r /var/log/messages D. tail -s /var/log/messages C. Which of the following commands can be used to see what processor was detected on boot? "Pass Any Exam. man -k 5 passwd D.

rpm -Va D. smbmount B. :cmd ps -aux C. locate --suid C. remount tua lTe An administrator wishes to mount an NFS (Network File System) export of the directory /usr located on 10. Which of the following commands should be used? sts .1 onto the local mount point called /usr. Any Time.com 55 Ac A. mountd D. Which of the following commands would accomplish this? A. find / -perm -4000 "Pass Any Exam. 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. search u+s 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. cpuinfo C.CompTIA XK0-002: Practice Exam A.actualtests. :// ps -aux B. Which of the following commands will do this? A.www. dmesg D.0. :# ps -aux D.co m .

The cron job has run correctly for several months. /etc/default_time C. rpm --uninstall exim B. Answer: C QUESTION NO: 186 "Pass Any Exam. Any Time.actualtests. /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. uninstall exim D. rm -r exim C.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. C. D. B. /etc/localtime D. however the job apparently did not run the night before.rpm.co A Linux administrator has decided to remove a software package called exim. Which of the following should be done FIRST to resolve the problem? A. Check the user's cron job for syntax errors and correct as needed. Check to make sure the printer is connected to the server and powered on. Which of the following commands could be used to uninstall the software? m 56 . rpm --erase exim sts . Check the process list for an instance of crond running. Check to make sure the user was properly logged into the network the night before." .com Ac tua lTe A. /etc/timezone B.www.

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

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

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

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

dig D. nslookup B.text sts The system administrator wants to create a list of all of the RPM packages installed on a server in alphabetical order.co QUESTION NO: 201 m 61 .CompTIA XK0-002: Practice Exam D. Which of the following is a quick and easy way to do this? . rpm -q --dump rpmlist." . rpm -qa %-1. rpmdb --dump rpmlist. 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. slocate Answer: B QUESTION NO: 203 "Pass Any Exam.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.[A-Z]% > rpmlist.www.actualtests.com Ac tua lTe A. rpm -q -a | sort > rpmlist.text B. usb-ohci D. usbcore C. usb-storage B. Any Time. nessus C.text C.

route default add gateway=10.10. 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.10.co m 62 . err D. cat mtab | grep cdrom C.1 "Pass Any Exam.10.10. dmesg | grep CD B. alert tua Which of the following syslog keywords has the highest priority? lTe sts .actualtests.10. mkdir -p /home/gawd/tools/security D. ifconfig eth0 defaultgw 10.10.1 for a Linux host? A. route add default gw 10. md -m /home/gawd/tools/security Answer: C QUESTION NO: 204 A workstation user is unable to mount a CD-ROM drive." .10. find cdrom D.10. mkdir --makepath /home/gawd/tools/security C.10.10.1 C.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. 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. ifconfig default_route=10.1 D. emerg B. crit C. Any Time.www.com Ac A.

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

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

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

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

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

Any Time. 1755 B.com Ac tua A. 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? . 0222 C." . Use on the command line D. echo 90 >/proc/me/limits/time C. root Answer: D QUESTION NO: 227 "Pass Any Exam. 1777 D. ntadmin B.CompTIA XK0-002: Practice Exam C.www. Run the command as a daemon Answer: C QUESTION NO: 224 Which of the following is the default permission of /tmp? A.actualtests. adm C. 0755 QUESTION NO: 225 Answer: D QUESTION NO: 226 Which of the following group-level permissions is needed to create user accounts? A.co m Answer: C 68 . setlimit -t 90 B. limits -t 90 D. nobody D.

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

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

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. 0 C." . Full access to the owner only D. mkfs -reiserfs /dev/hda6 C. mkfs /dev/hda6 B.co Which of the following is a valid command to format a partition as Reiser FS? m 73 . Same as the target file B.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.actualtests.reiserfs /dev/hda6 D. Full access to everyone C. Full access to root only Answer: B QUESTION NO: 242 Answer: C QUESTION NO: 243 A.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 . mkfs. 3 D.

The user johnd is removed from the system and all data in the home directory is moved to the /home/deletedusers directory.www. The user johnd is removed from the system and all of his data is moved to the /var/archive directory. Which of the following is the BEST way to configure its Ethernet adapter? A.com Ac tua lTe sts .CompTIA XK0-002: Practice Exam A. Configure the DHCP Client. B. security = share "Pass Any Exam.co m 74 ." . D. C. C. 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. Any Time. Use an IP alias. Use a static IP address. deleting all of the data in his home directory. Configure the DHCP Server. The user johnd is removed from the system. D. Answer: C QUESTION NO: 245 A Linux server is to be used as a Web server. The user johnd is removed from the system while keeping all of the data in his home directory. B.actualtests.

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

SSH (Secure Shell) "Pass Any Exam. iptables -n -L B. C. iptables natadd . Any Time. Answer: B QUESTION NO: 253 Which of the following allows for secure remote command line access? A. It maps an IP address to a MAC address.www. mkraid --status D. It maps a MAC address to an IP address. cat /proc/ide/raid C.actualtests. It maps a hostname to a MAC address. iptables -LFZ C. It maps a MAC address to a hostname.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. 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. B. iptables -A -D -C D. mkraid --verify B.co Which of the following commands is used to check the current iptables configuration? m 76 .com Ac tua lTe sts A." . D.

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

1 sts A new router is installed to share the Internet connection for all users on the LAN (Local Area Network).1. route change gateway 10.co m .1.1.1. route add default gw 10.1.1 on the LAN-side interface. ifconfig eth0 gateway 10. LDAP (Lightweight Directory Access Protocol) D.1 C. dmesg | grep CPU D. cat /proc/cpuinfo | grep CPU Answer: C QUESTION NO: 260 "Pass Any Exam. Which of the following commands on the client allows Internet access on the Linux workstations? . Any Time. ifconfig eth0 dstaddr 10.1.www. KDE C. find /var/log/dmesg | grep CPU C.actualtests.1. Which of the following server packages would MOST likely be installed? A. 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. MySQL B." .1.1 B.com 78 Ac tua lTe A.1 D.1. cat /var/log/messages | grep CPU B.1.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. The router has an IP address of 10.

The third field B. makewhatis C.CompTIA XK0-002: Practice Exam Which of the following commands is used to rebuild the man page database used by the hatis command? A." . whatis -r D.www.co m 79 . The first field D. hid Answer: B QUESTION NO: 263 "Pass Any Exam. man --rebuilddb B. tulip B. The second field Answer: D QUESTION NO: 262 Which of the following modules is a dependency module for PCMCIA card services? A. yenta_socket C. 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. The fourth field C.actualtests. parport_pc D.com Ac tua lTe sts . Any Time.

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

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

mkfs -t ext2 /dev/fd0 mount /dev/fd0 /mnt/floppy C. B. The system has been compromised.www.com Ac QUESTION NO: 272 tua lTe A. mount /dev/fd0 /mnt/floppy mkdosfs /dev/fd0 D. top --map -u D. ksh was inadvertently installed in user's directory.actualtests. Which of the following commands should be used to prepare the diskette for writing? m QUESTION NO: 271 82 . mkdosfs /dev/fd0 mount -t msdos /dev/fd0 /mnt/floppy sts .co A technician needs to create a diskette to transfer data from a Linux server to a Windows 2000 server. The diskette is unformatted. The ksh service needs to be restarted. including information about userid transition points? A. ps --map -u B." . Answer: A Answer: D Which of the following command lines can be used to show a map of the current process hierarchy. mount /dev/fd0 /mnt/floppy mkfs -t msdos /dev/fd0 B. pstree -u C. Only root has shared access for ksh. D.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. psgraph -u Answer: B QUESTION NO: 273 "Pass Any Exam. C. Any Time.

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

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

how would a user modify the file test.org Website D. Where should the user obtain a newer kernel? A.txt D. /dev/usb/hd1 D.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.txt .txt to have the following access privileges? -rwxr----. chmod 013 test. /dev/usb/auer0 C.com 85 Ac tua lTe A.1 user1 staff 0 8 May 11:45 test.org Website B.www. /dev/ram0 Answer: A QUESTION NO: 283 "Pass Any Exam.txt sts Using octal permissions.txt C. The SourceForge Website C. 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.actualtests. chmod 047 test.co m ." . The Linux distribution does not provide any updates. which of the following device files would likely be used to access it? A.txt B. The gnu. Any Time. /dev/sda B. chmod 310 test. The kernel. chmod 740 test.

d C. Users can print to other printers on the server. Partial .com Ac tua lTe sts A. -uid 0 "Pass Any Exam. Incremental D. nfs B.actualtests. The permissions on the printer's spool directory are set to allow access to all users. 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. Which of the following is MOST likely the problem? A. 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." . Root does not have read permission on the print filter. D.CompTIA XK0-002: Practice Exam Users are unable to print to a remote printer on a Linux server. inet. Users do not have execute permission on the print filter. Full B. find . fstab D. The technician determines that all of the users and machines have the right to print to the server. The /etc/printcap file is missing. grep -u root . C. B.www. Any Time. Modular C.co m Which backup type only copies files that have changed since the previous backup? 86 . B. The SUID bit on this printer's spool directory is not set.

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

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

The getty program should not run with 38400 baud. 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/. Use obs to list CPU-intensive processes in order. Use ice -l -n 1 to list the process with highest CPU utilization. Differential SCSI D. B. Use is free to list processes with the highest foreground priority.com 89 Ac tua lTe sts QUESTION NO: 295 .co m . D. The owner is able to delete other files in the directory. D. Answer: A QUESTION NO: 296 The directory /home is on an ext2 file system.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. The cron process should have a lower PID (Process ID). IEEE-1394 B. Single-Ended SCSI C.actualtests. The xfs process should not be run in daemon modes. C. but all attempts by the owner of /home/owner/A to delete the one file result in the output: "Pass Any Exam. The httpd program is not normally in /usr/.CompTIA XK0-002: Practice Exam B.sbin.www. Answer: A QUESTION NO: 294 Six Linux servers share a tape library in a different room located 80 meters away." . Which of the following technologies would allow these servers to connect directly to the tape library? A. Any Time. C.

lsattr /home/owner/A E.com Ac QUESTION NO: 298 tua lTe sts . C. B.1 owner owner 5 Jun 13 12:14 A Which of the following should be checked next in order to diagnose this problem? B. '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." . Change the home directory for the www user in the local passwd file. dmesg D.CompTIA XK0-002: Practice Exam bash: A. 'cd ~www' changes to /var/www. Remove the www user from the NIS passwd map.www. Remove the www user from the local passwd file. groupuse B. Permission denied Given the file listing: -rw-r--r-.actualtests.co m 90 . groupset D. "Pass Any Exam. useradd C. The correct location for the NIS 'www' user is /mnt/www. user2group Answer: B On an NIS client. mkfs 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. Any Time.

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

The network card is disabled. Any Time.co m 92 . chown dirname User12 B. 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. The network card is in promiscuous mode." . + B. Using the ls command. Answer: B "Pass Any Exam. 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. Which of the following is MOST likely the problem? A. B. User12 is unable to create new files or subdirectories within this new directory. C.CompTIA XK0-002: Practice Exam QUESTION NO: 302 A technician created a new directory for use by a user "User12".actualtests. The network card duplex setting is incorrect. The network card is bad. / Answer: C QUESTION NO: 304 The user of a Linux workstation reports slow network performance during heavy Web access. chown User12:User12 dirname D. C. ! D.com Ac tua lTe sts .www. The workstation is connected to an unmanaged switch. chmod 700 dirname C. D.

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

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

Any Time. Remove jsmith from the group belso D. NNTP (Network News Transport Protocol) D.1 jsmith root 113 Jun 16 12:59 employees -rw-r----. Remove jsmith to the group salary C. utime C. rtelnetd B. time Answer: A QUESTION NO: 314 Which of the following packages is used to implement Telnet services on major Linux distributions? A. Remove jsmith from the group jsmith B. User jsmith is member of the groups smith and elso? -rw-rw---. rsh D.actualtests.com Ac tua lTe sts ." . sshd C. 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.www. Which of the following services will allow the workstation to automatically set the time? A. NTP (Network Time Protocol) B.1 salary belso 4230 Jun 18 18:01 salary Which of the following should be done to accomplish the goal? A.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 . xinetd "Pass Any Exam.co m 95 .

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

www. C. They gain access after being prompted for a shell. B. D.com Ac QUESTION NO: 320 tua lTe sts .actualtests. lprm D.CompTIA XK0-002: Practice Exam QUESTION NO: 318 On an NIS client. They have full access. Any Time. They are denied access. enable and disable B. mailq Answer: D QUESTION NO: 321 "Pass Any Exam. They are granted limited access.co m 97 . start and stop C. Answer: A QUESTION NO: 319 Which of the following commands can be used to start and stop printers and classes? A." . mail B. 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. smtpd C. 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. sendmail -bd D.

sane B.pdf file will print correctly. e2label -t ext3 /dev/hda2 C.www. The flyer. Answer: A QUESTION NO: 322 Which of the following packages would be selected during installation to provide a Web server? A. Apache C. Mozilla D. Any Time. mkfs -t ext3 -j /dev/hda2 B.pdf document using the following command: lpr flyer. gimp "Pass Any Exam. e2image -j /dev/hda2 . 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. 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 . The printer will print pages with strange characters. An error message will appear. The flyer.com Ac tua QUESTION NO: 323 lTe Answer: C sts A.pdf Which of the following results will MOST likely occur? A.actualtests. B." . C. tune2fs -j /dev/hda2 D.pdf file will be displayed.CompTIA XK0-002: Practice Exam A user is trying to print a .

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

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

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

" . Any Time.www.co m . xmodmap Answer: D QUESTION NO: 335 An administrator needs to adjust the MTU (Maximum Transmission Unit) value on an Ethernet interface. init 1 C. depmod D. netstat D.actualtests.com 102 Ac tua lTe sts . HFS (Hierarchical File System) C. lsmod B. sudo --single B. Ext2 "Pass Any Exam. Which of the following commands can be used to change the current MTU value to a new one? A. FAT D. NTFS B. ifconfig C. route B. chroot -so D. 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.CompTIA XK0-002: Practice Exam A. keyboard C. 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.

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

lpr --list-jobs -h printhost D." . showqueue -h printhost C. Database server Answer: C QUESTION NO: 342 Which of the following can be used to view username. Firewall C. home directory.www. GID (Group ID). cat /etc/shadow C. cups --queue -h printhost B.actualtests. full name. 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. File server D.co m 104 . lpstat -h printhost Answer: D "Pass Any Exam. cat /etc/services B. cat /etc/group D.com Ac tua lTe sts . Any Time. and default shell information? A.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. Streaming media server B.

/etc/init.conf C. 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. Thin client workstation B.www.d B.com 105 Ac tua QUESTION NO: 346 lTe Answer: B sts A. /etc/named. chmod 711 /home/user B." . Any Time.co m A workstation is unable to browse a Website by name.conf D.actualtests. Which of the following files must be checked to confirm DNS settings? . 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.conf . chown user /home/user/* D. chmod 700 /home/user C.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. Database server appliance D. /etc/nameserver. /etc/resolv.

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

168.255.0:httpd Answer: C "Pass Any Exam.168.243 255.168.168.168. edit /proc/net/netstat C.0.0. Any Time.255.0 255.168.168.255.1.255/255. To reset a forgotten user password Answer: A QUESTION NO: 352 A Linux machine has a local address of 192.0 192.243 B.255.0. ALL: 192.1.255. ALL except httpd: 192.0.168. To suspend a user account C.0 U 0 0 0 eth 0 0.CompTIA XK0-002: Practice Exam The administrator has added a specific route for 192.255.0 UG 0 0 0 eth0 192.3.3.0.1.www.1.0 0. httpd: 192.1.168.255. To run fsck on a damaged filesystem B. route remove 192.1.0 192.168. Which of the following lines should be appended to the hosts.0 Answer: A QUESTION NO: 351 Under which of the following scenarios should an administrator initiate single user mode? A." .1 D. All services are currently denied.0 netmask 255.1.0 255.255. To check the root and postmaster mail boxes D.0.actualtests.255.3.com Ac tua lTe sts .0 UG 0 0 0 eth0 Which of the following is a valid method for removing the route? A.255.168.0/24 D.1.0/24 to the routing table as shown below: Destination Gateway Genmask Flags Metric Ref Use Iface 192.0. 192.3.1.255/24 C. route del -net 192.1.1 with a subnet mask of 255.1/24 B.1 0.168.co m 107 .3.168.255.255.0 netmask 255.168. route remove -net 192.168.255.0 gw 192.0 gw 192.allow file to permit access to the Web service on the local subnet? A.255.

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

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

end D. 3 B.co m Answer: D 110 ." . Any Time. chmod 471 file B. 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.www. 15 C. wend B. chmod 623 file D. chmod 726 file C. 14 D.actualtests. elihw C. 7 sts Which of the following IRQs is commonly used by /dev/hda? . done Answer: D QUESTION NO: 363 "Pass Any Exam.CompTIA XK0-002: Practice Exam QUESTION NO: 360 The command is -l file is issued.com Ac tua lTe A.

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

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

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

com Ac tua lTe sts ." .* | gunzip > backup. cronview Answer: A QUESTION NO: 376 Why should "/tmp" be located on a separate partition from the "/" file system? "Pass Any Exam. crontab -v D.tgz * Answer: B QUESTION NO: 375 Which of the following commands can be used to view a user's crontab entry? A. 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. tar zcvf backup. 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.CompTIA XK0-002: Practice Exam User 'jones' cannot login to a Linux server. D.co m 114 . gtar zcvf backup. crontab -l B. 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.actualtests. Jones used the wrong password. The account is disabled. Any Time. C.www. The account is expired. tar -cvf .tgz * C. tar -Zxvf backup.tgz B. B.tgz * D.

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

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

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

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

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