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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

actualtests. Tape C. /local Answer: C QUESTION NO: 68 If the command below is executed in a user's home directory. B.co m . /home D. A list of runlevels B. Any Time.CompTIA XK0-002: Practice Exam A. /usr C. SCSI B. C. which of the following would be accomplished? echo hello >> allusers A. D. Sends the message 'hello' to all users on the system.www. /var B.com 22 Ac tua lTe sts . Creates a new file called 'hello' and sends it to all users. Optical Recordable D. Sends the message 'hello' to all currently logged in users. Appends 'hello' to the end of the file llusers? if it exists. Answer: B QUESTION NO: 69 Which of the following is the economical choice for high capacity off-site archiving? A. A timeout value "Pass Any Exam. 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." .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QUESTION NO: 124

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

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

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

Ac

tua

lTe

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

sts

.co

m

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

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

QUESTION NO: 127

Answer: D

QUESTION NO: 128

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

QUESTION NO: 129

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

Ac

tua

lTe

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

sts

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

.co

m

Answer: A

39

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

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

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

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

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

Ac

tua

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

lTe

QUESTION NO: 131

sts

.co

m

40

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

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

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

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

6 D. 1 Answer: D QUESTION NO: 149 "Pass Any Exam. find /mnt -mode s -ls C. 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. log --list B. find /mnt -setuid -ls B. 0 C. Which of the following commands searches the "/var/log/wtmp" file and displays who has logged onto the machine and when they logged on? . who C." .CompTIA XK0-002: Practice Exam Answer: C QUESTION NO: 146 Which of the following commands can be used to display the location of all the setuid regular files on /mnt? A.www. Any Time. find /mnt -suid -type f -ls D.com Ac tua lTe A.actualtests. 2 B. w D. 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.co m 45 .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

mkfs /dev/hda6 B. 6 B. 0 C.reiserfs /dev/hda6 D.co Which of the following is a valid command to format a partition as Reiser FS? m 73 .www." .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. mkfs -reiserfs /dev/hda6 C. 3 D. Same as the target file B. reiserfs /dev/hda6 . Full access to everyone C. mkfs.actualtests. Any Time. Full access to the owner only D.CompTIA XK0-002: Practice Exam Answer: D QUESTION NO: 241 Which of the following are the default permissions for a symbolic link file? A. 5 Answer: C QUESTION NO: 244 Which of the following will happen when the following command is run? userdel johnd "Pass Any Exam. Full access to root only Answer: B QUESTION NO: 242 Answer: C QUESTION NO: 243 A.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

" . 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.CompTIA XK0-002: Practice Exam QUESTION NO: 344 Which of the following commands can be used to ensure that all the files in /home/user and its subdirectories are accessible only by the owner of /home/user? A.actualtests. Portable network traffic analyzer C.conf C. /etc/named. /etc/init.conf D.d B. /etc/resolv.co m A workstation is unable to browse a Website by name. /etc/nameserver. Which of the following files must be checked to confirm DNS settings? . Thin client workstation B. chown user /home/user/* D. Database server appliance D.www.conf . chmod 700 /home/user C.com 105 Ac tua QUESTION NO: 346 lTe Answer: B sts A. chmod 711 /home/user B. Any Time. 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.

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

1.0. To reset a forgotten user password Answer: A QUESTION NO: 352 A Linux machine has a local address of 192.0 255.255.168.255.168.0 netmask 255.1.0.255.0:httpd Answer: C "Pass Any Exam.0 U 0 0 0 eth 0 0. Which of the following lines should be appended to the hosts.actualtests.www. To suspend a user account C.3.0 192.0/24 D.168.168.1 D.255/24 C.168.3.255.3.0 0.255.255/255.CompTIA XK0-002: Practice Exam The administrator has added a specific route for 192.255.1.1.255.168. route remove -net 192.1.0 Answer: A QUESTION NO: 351 Under which of the following scenarios should an administrator initiate single user mode? A.1.243 255. route remove 192. Any Time.168.168. edit /proc/net/netstat C.168.0 netmask 255.0.0 192. To run fsck on a damaged filesystem B.0/24 to the routing table as shown below: Destination Gateway Genmask Flags Metric Ref Use Iface 192. httpd: 192.255.3.0.255.1 0.168.168.0." .255.255.0 UG 0 0 0 eth0 Which of the following is a valid method for removing the route? A.1.1.co m 107 .0.3.0 gw 192.0 gw 192.168.168.0 255.168. route del -net 192.168.1.255. All services are currently denied.1 with a subnet mask of 255.255.1.243 B. 192.0.1/24 B. To check the root and postmaster mail boxes D. ALL except httpd: 192.com Ac tua lTe sts .0 UG 0 0 0 eth0 192. ALL: 192.255.allow file to permit access to the Web service on the local subnet? A.

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

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

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

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

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

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

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

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

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

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

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

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