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

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

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

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

. 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.co m Answer: D .com 7 Ac tua lTe A. 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 . 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. bash -limited D. Which of the following would accomplish the goal? A.actualtests. exec bash B. jobs 0 C. 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? .CompTIA XK0-002: Practice Exam D." .www. Any Time. psroot B. ps -au root D.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QUESTION NO: 124

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

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

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

Ac

tua

lTe

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

sts

.co

m

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

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

QUESTION NO: 127

Answer: D

QUESTION NO: 128

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

QUESTION NO: 129

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

Ac

tua

lTe

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

sts

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

.co

m

Answer: A

39

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

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

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

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

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

Ac

tua

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

lTe

QUESTION NO: 131

sts

.co

m

40

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

kill 1010 D. users = * Answer: C Which of the following commands displays the name of the current shell? A.CompTIA XK0-002: Practice Exam Answer: A QUESTION NO: 136 The following is part of the Samba configuration file: [aprinter] path = /usr/spool/public read only = yes printable = yes Which of the following lines needs to be added to the file to allow print access to everyone? A. guest ok = yes D. anonymous = yes B. Any Time. 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. printall = yes C. echo $SHELL C. shell D." .www.co m 42 .com Ac tua lTe QUESTION NO: 137 sts . su "kill 1010" B. killall -9 1010 C. su -c "kill 1010" "Pass Any Exam. cat /proc/shell B.actualtests. Which of the following commands will kill the process? A.

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

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

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

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

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

15 subnet 255. iptables --delete "Pass Any Exam. 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 eth1 192.com 48 Ac A Linux administrator is trying to set up a server that provides the MOST secure communication for remote administration.0 B. rpm -a NewFonts B.actualtests. ifconfig eth1 192.255. rpm -q NewFonts Answer: D QUESTION NO: 157 Which of the following ifconfig commands can be used to assign the IP address 192.168. Which of the following commands would determine if NewFonts.15 subnet 255.0 Answer: B QUESTION NO: 158 A.255.168.co m .0 C. rpm --checksig NewFonts D.15 netmask 255.15 netmask 255.1. SSH (Secure Shell) B.255.rpm is already installed? A.1. Any Time. ifconfig eth2 192.255.168.www. RSH (Remote Shell) D.1.168. The script should check if the RPM is already installed.1.255.255.rpm on several desktop computers. Kerberos C.255.15/24 to the second NIC (Network Interface Card) in a workstation? A.255.168.CompTIA XK0-002: Practice Exam QUESTION NO: 156 An administrator wants to create a script that installs NewFonts.1. ifconfig eth2 192.0 D." . rpm --list NewFonts C. Which of the following is the BEST choice for this situation? tua lTe sts .

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

httpd: 192.3.168.168.1.allow file to permit access to the Web service on the local subnet? A.243 255. To reset a forgotten user password Answer: A QUESTION NO: 352 A Linux machine has a local address of 192.1.0 Answer: A QUESTION NO: 351 Under which of the following scenarios should an administrator initiate single user mode? A.com Ac tua lTe sts .3.0 0.3.0 netmask 255.168.3.255.255.1.0.0.255/255.168.0/24 to the routing table as shown below: Destination Gateway Genmask Flags Metric Ref Use Iface 192.0 UG 0 0 0 eth0 192. To check the root and postmaster mail boxes D.0 gw 192.168.255.1 with a subnet mask of 255.255/24 C.168.0 UG 0 0 0 eth0 Which of the following is a valid method for removing the route? A.0.CompTIA XK0-002: Practice Exam The administrator has added a specific route for 192.168.255.www.168. edit /proc/net/netstat C. route del -net 192. Any Time.0 255. Which of the following lines should be appended to the hosts.0 netmask 255. ALL except httpd: 192.0.0/24 D. To run fsck on a damaged filesystem B.1.3. All services are currently denied.1 D.255.255.actualtests.255.1. To suspend a user account C.1 0.1.168.0 192.1.255." .168. route remove -net 192. 192.co m 107 .1/24 B.255.0 U 0 0 0 eth 0 0.243 B.255.1. ALL: 192.168.0:httpd Answer: C "Pass Any Exam.0.0.0. route remove 192.255.168.1.0 192.255.255.255.1.168.0 gw 192.168.168.0 255.

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

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

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

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

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

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

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

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

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

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

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

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

Sign up to vote on this title
UsefulNot useful