
CompTIA Linux+ Practice Tests
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
In the newly updated Third Edition of CompTIA Linux+ Practice Tests: Exam XK0-005, veteran Linux expert, Steve Suehring, delivers an instructive set of practice questions written to get you ready to ace the new XK0-005 test. Providing hundreds of domain-by-domain questions covering system management, security, scripting, containers, automation, and troubleshooting, the book helps you prepare for the exam with confidence and efficiency.
You'll be able to pinpoint those areas you've mastered and those which require more study, as well as get a feel for the structure of the test itself. The book also offers:
* Hundreds of practice questions that reinforce your skills and knowledge
* A great way for practicing and aspiring Linux network and system administrators to improve their on-the-job skills
* One year of complimentary access after activation to the online Sybex test bank, where you can study and work through hundreds of questions
An indispensable resource for anyone preparing for the CompTIA Linux+ exam, CompTIA Linux+ Practice Tests: Exam XK0-005, Third Edition, is also a must-have for new and experienced sysadmins and network administrators seeking to identify areas of strength and weakness and improve their grasp of Linux systems.
More details
Other editions
Additional editions

Person
STEVE SUEHRING is a technical architect with extensive experience in technology and Linux. He is the author of several technology education books, and has worked as a systems engineer and security specialist, as well as in roles providing architectural direction to several different technology initiatives. He is an expert in JavaScript, Linux security, Windows Server certifications, Perl, and more.
Content
Chapter 1 System Management (Domain 1.0) 1
Chapter 2 System Operations and Maintenance (Domain 2.0) 49
Chapter 3 Scripting, Containers, and Automation (Domain 3.0) 83
Chapter 4 Troubleshooting (Domain 4.0) 113
Chapter 5 Practice Exam 157
Appendix Answers to the Review Questions 175
Chapter 1: System Management (Domain 1.0) 176
Chapter 2: System Operations and Maintenance (Domain 2.0) 197
Chapter 3: Scripting, Containers, and Automation (Domain 3.0) 211
Chapter 4: Troubleshooting (Domain 4.0) 224
Chapter 5: Practice Exam 241
Index 249
Chapter 2
System Operations and Maintenance (Domain 2.0)
- You need to delete a user from the system, including their home directory. Which of the following utility commands accomplishes this task?
userdeluserdel -ruserdel -Rdeluser
- You need to enable the web server (running as the
www-datauser and group) to write into a directory called/home/webfiles. Which commands will accomplish this task in the most secure manner?chgrp www-data /home/webfiles ; chmod 775 /home/webfileschmod 777 /home/webfileschgrp www-data /home/webfiles ; chmod 711 /home/webfileschmod 707 /home/webfiles
- Assume that passwords must be changed every 60 days. Which command will change the date of the user's last password change without the user actually changing the account password?
chage -fchage -Wchage -lchage -d
- What is the order in which user configuration files are located on login to a Bash shell?
.bash_login,.profile,/etc/profile.bash_profile,.bash_login,.profile.profile,.bash_login,.bash_profile.bash_login,.bash_profile,.profile
- Within which directory should you place files to have them automatically copied to a user's home directory when the user is created?
/etc/userhome/etc/templateuser/etc/skel/home/skel
- Which bash parameter or option will cause the shell to be executed without reading the initialization files?
--no-rc--no-init--norc--rc-none
- You need to create a function that will be available each time you log in to the system. Within which file should this function be placed?
.bash_profile.rc/etc/profile.bash_run
- Assuming X forwarding has been enabled on the SSH server, which environment variable is used to set the location for newly spawned windows from within an SSH session?
DISPLAYXTERMINALXTERMXDISP
- Which of the following options in the SSH configuration file needs to be enabled so that X sessions can be sent over an SSH connection?
X11Connect yesX11Forwarding yesForwardX yesXForward yes
- Which file contains user information such as username and real name and is readable by all users of the system?
/etc/pass/etc/shadow/etc/passwd/etc/userinfo
- Which of the following commands changes a group called
DomainAdminstoDomainUsers?groupmod -n DomainUsers DomainAdminsgroupchg DomainAdmins DomainUserschgroup DomainAdmins DomainUsersgroup -N DomainAdmins DomainUsers
- When running
useradd, which option needs to be specified in order for the user's home directory to be created?-h-m-x-a
- Which of the following commands locks out password-based login for a user but does not prevent other forms of login?
usermod -Luserdel -ruseradd -huserlock
- Which of the following commands produces a report listing the last password change date for all users on the system?
passwd -apasswd -Spasswd -a -Spasswd --all
- Which file contains a list of usernames, UIDs, and encrypted passwords?
/etc/passwd/etc/shadow/etc/encpass/etc/grouppass
- Which command is used to change a user's home directory to
/srv/data/usernameand move the contents at the same time?usermod -d /srv/data/username -mhomedir -m /srv/data/usernameuserex -m /srv/data/usernameuserchg /m /srv/data/username -d
- Which option to
useraddwill add groups for a user?-g-x-l-G
- Which option to
useraddcreates a system user rather than a normal user?-r-s-a-S
- Which file contains encrypted password information for groups?
/etc/group/etc/gshadow/etc/gsecure/etc/group.conf
- Which of the following best describes a valid use of the
groupdelcommand?- You may force group deletion with the
-foption. - If a user's primary group is to be deleted, that user must be deleted first or have their primary group changed.
Groupdelcan be run at any time, regardless of group membership.- The
-roption forgroupdelwill recursively change users' GIDs after group deletion.
- You may force group deletion with the
- Which of the following commands displays the UID, primary group, and supplemental groups for a given user?
idgetidpasswdchage
- Which option to the
usermodcommand is used to change a given user's real name?-R-n-d-c
- A user needs to work with printers and printer-related items. Which of the following commands adds the user (called
usernamein the options) to the appropriate group for this purpose?usermod -aG printerusers usernameusermod -aG lpadmin usernameusermod -gA lpadm usernameusermod -a lpadm username
- You need to examine who is currently logged in to the system. Which of the following commands will display this information?
listuserfuserls -uw
- Within the following entry in
/etc/shadow, to what does the number 15853 refer?mail:*:15853:0:99999:7:::- The UID of the mail user
- The number of files owned by mail
- The date of the last password change (since 1/1/1970)
- The number of days until the account expires
- Which of the following commands displays a listing of who is logged in to the server along with the date and time that they logged in?
whoiswhologgedincurusers
- Which of the following commands adds a group?
groupaddaddgrpgrpaddcreategroup
- Which of the following commands enables the sticky bit for a user on a file called
homescript.sh?chmod +sticky homescript.shchmod 755 homescript.shchmod u+t homescript.shchown u+sticky homescript.sh
- The umask reports as 022. What is the permission that will be in effect for a newly non-executable created file?
u+rw, g+r, w+r- 755
- 644
a+r
- Which of the following best describes the relationship between UIDs and GIDs on a Linux system when an authentication server is being configured?
- The UID and GID are the same across the system for a given user.
- Each user has a UID and GID that are the same and are created when the user is created.
- The UID represents the user, while the GID is a globally unique user ID.
- There is no direct relationship between UID and GID.
- When you're configuring a server for an SNMP server role, which ports need to be allowed through the firewall for SNMP traffic?
- Ports 23 and 25
- Ports 110 and 143
- Ports 80 and 443
- Ports 161 and 162
- You need to look at information on logins beyond what was captured by the current log file for the last command. Which option to the last command can be used to load information from an alternate...
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.