O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CompTIA Linux+ Certification Guide

Book Description

Master the concepts and techniques that will help you gain the LX0-103 and LX0-104 certifications on your first attempt

Key Features

  • Get a clear understanding of how to achieve the Linux+ certification
  • Explore system architecture, shell scripts, data management, and Linux security
  • Work through practice and mock tests to pass both LX0-103 and LX0-104 exams

Book Description

Linux+ certification demonstrates technical competency and provides a broad awareness of Linux operating systems. Professionals who have achieved the Linux+ certification exhibit all-important knowledge of installation, operation, administration, and troubleshooting services.

The CompTIA Linux+ Certification Guide is an overview of the certification that gives you insights into the system architecture. You'll understand how to install and uninstall Linux distributions, followed by working with various package managers. Once you've grasped all this, you'll move on to manipulating files and processes at command-line interface (CLI) and creating, monitoring, killing, restarting, and modifying processes.

As you progress, you'll be equipped to work with display managers and learn how to create, modify, and remove user accounts and groups, as well as understand how to automate tasks. The last set of chapters helps you configure dates and set up local and remote system logging. In addition to this, you'll explore different internet protocols, along with discovering network configuration, security administration, Shell scripting, and SQL management.

By the end of this book, you'll not only have got to grips with all the modules using practice questions and mock exams, but you'll also be well prepared to pass the LX0-103 and LX0-104 certification exams.

What you will learn

  • Understand the Linux system architecture
  • Install, upgrade, and manage Linux system packages
  • Configure devices and maintain the Linux filesystem
  • Manage the Shell environment, write scripts, and manage data
  • Set user interfaces and desktops in the Linux operating system
  • Automate system admin tasks and manage essential system services
  • Manage SQL server on Linux and log locally and remotely with rsyslogd
  • Administer network and local security

Who this book is for

The CompTIA Linux+ Certification Guide is for you if you want to gain the CompTIA Linux+ certificate. This guide is also for system administrators and rookie Linux professionals interested in enhancing their Linux and Shell scripting skills. No prior knowledge of Linux is needed, although some understanding of Shell scripting would be helpful.

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Title Page
  2. Copyright and Credits
    1. CompTIA Linux+ Certification Guide
  3. Packt Upsell
    1. Why subscribe?
    2. Packt.com
  4. Contributors
    1. About the author
    2. About the reviewer
    3. Packt is searching for authors like you
  5. Preface
    1. Who this book is for
    2. What this book covers
    3. To get the most out of this book
      1. Download the color images
      2. Conventions used
    4. Get in touch
      1. Reviews
  6. Configuring the Hardware Settings
    1. Viewing CPU, RAM, and swap info
    2. Interrupts and devices
    3. Modules
    4. Summary
    5. Questions
    6. Further reading
  7. Booting the System
    1. The boot process explained
      1. DMESG
    2. GRUB and GRUB2
      1. GRUB
      2. GRUB2
    3. Working with GRUB
    4. Working with GRUB2
    5. Summary
    6. Questions
    7. Further reading
  8. Changing Runlevels and Boot Targets
    1. Introduction to runlevels
    2. Introduction to boot targets
    3. Working with runlevels
    4. Working with boot targets
    5. Summary
    6. Questions
    7. Further reading
  9. Designing a Hard Disk Layout
    1. Using the fdisk utility
    2. Using the parted utility
    3. Steps to format a hard disk
    4. Mounting and unmounting a partition
      1. The mount command
      2. The unmount command
    5. Summary
    6. Questions
    7. Further reading
  10. Installing a Linux Distribution
    1. Understanding the use of the LiveCD
    2. Installing a Linux distribution as a fresh installation
    3. Installing a Linux distribution side by side with a Windows OS
    4. Installing Linux side by side with another flavor of Linux
    5. Summary
    6. Questions
    7. Further reading
  11. Using Debian Package Management
    1. The dpkg command
    2. The apt-get command
      1. The autoremove option
      2. The purge option
    3. The aptitude command
      1. The search option
    4. The synaptic utility
    5. Summary
    6. Questions
    7. Further reading
  12. Using YUM Package Management
    1. YUM
    2. DNF
    3. RPM
    4. yumex
    5. Summary
    6. Questions
    7. Further reading
  13. Performing File Management
    1. Viewing and moving files and directories in the CLI
    2. Creating, copying, moving, renaming, and removing files
    3. Creating and removing directories
    4. Finding files and directories
    5. Pipes and redirects
    6. Summary
    7. Questions
    8. Further reading
  14. Creating, Monitoring, Killing, and Restarting Processes
    1. The ps command
      1. The kill command
      2. The pstree command
      3. The pgrep command
      4. The pkill command
    2. Viewing and managing processes using the top command
    3. Managing process(es) with the service command
    4. Managing process(es) with the systemctl command
    5. Summary
    6. Questions
    7. Further reading
  15. Modifying Process Execution
    1. The nice command
    2. The renice command
    3. Foreground processes versus background processes
    4. Summary
    5. Questions
    6. Further reading
  16. Display Managers
    1. Working with the XDM
    2. Working with the KDM
    3. Working with the GDM
    4. Working with the Lightdm
    5. Summary
    6. Questions
    7. Further reading
  17. Managing User and Group Accounts
    1. Directory used when creating a new user
      1. The .bash_logout
      2. The .bashrc
      3. The .profile
      4. The .bash_history
    2. Managing user accounts
      1. The chage command
      2. The usermod command
        1. The w command
        2. The who command
        3. The last command
        4. The whoami command
    3. Managing groups
    4. Summary
    5. Questions
    6. Further reading
  18. Automating Tasks
    1. Managing automation using the at, atq, and atrm commands
      1. The at command
      2. The atq command
      3. The atrm command
    2. Managing automation using cron, crontab, and anacron
      1. Cron
      2. Crontab
      3. Anacron
    3. Permissions for tasks using configuration files
    4. Summary
    5. Questions
    6. Further reading
  19. Maintaining System Time and Logging
    1. Date configuration
      1. The tzselect command
      2. The tzconfig command
      3. The hwclock command
    2. Setting up local system logging
    3. Configure remote logging
    4. Summary
    5. Questions
    6. Further reading
  20. Fundamentals of Internet Protocol
    1. IPv4 addressing
      1. Class A
      2. Class B
      3. Class C
      4. Class D
      5. Class E
      6. Subnet masks
        1. Subnetting
    2. IPv6 addressing
      1. Unicast
      2. Multicast
      3. Anycast
        1. Removing leading zeros
        2. Removing consecutive zeros
    3. Well-known protocols
      1. TCP
        1. HTTP
        2. HTTPS
        3. FTP
      2. UDP
        1. DNS
        2. TFTP
        3. ICMP
    4. Summary
    5. Questions
    6. Further reading
  21. Network Configuration and Troubleshooting
    1. IPv4 configuration
      1. The ifconfig command
      2. The ifup command
      3. The ifdown command
      4. The ip command
      5. Configuring IPv4 routing
    2. IPv6 configuration
      1. Configuring IPv6 routing
    3. Client-side DNS
    4. Network troubleshooting
      1. The ping command
      2. The ping6 command
      3. The traceroute command
      4. The traceroute6 command
      5. The netstat command
      6. The tracepath command
      7. The tracepath -6 command
      8. The nmap command
      9. The dig command
      10. The whois command
      11. The hostname command
    5. Summary
    6. Questions
    7. Further reading
  22. Performing Administrative Security Tasks
    1. Host security
      1. The su command
      2. The sudo command
      3. TCP wrappers
    2. SSH
    3. Encryption
    4. Summary
    5. Questions
    6. Further reading
  23. Shell Scripting and SQL Data Management
    1. Shell scripting
      1. The basics of shell scripting
      2. Writing scripts using for loops
      3. Writing scripts using the while loop
      4. Writing scripts using if statements
    2. SQL data management
      1. The insert command
      2. The select command
      3. The update command
      4. The delete command
      5. The from option
      6. The where condition
      7. The group by option
      8. The order by option
      9. The join option
    3. Summary
    4. Questions
    5. Further reading
  24. Mock Exam - 1
    1. Questions
    2. Answers
  25. Mock Exam - 2
    1. Questions
    2. Answers
  26. Assessment
    1. Chapter 1: Configuring the Hardware Settings
    2. Chapter 2: Booting the System
    3. Chapter 3: Changing Runlevels and Boot Targets
    4. Chapter 4: Designing a Hard Disk Layout
    5. Chapter 5: Installing a Linux Distribution
    6. Chapter 6: Using Debian Package Management
    7. Chapter 7: Using YUM Package Management
    8. Chapter 8: Performing File Management
    9. Chapter 9: Creating, Monitoring, Killing, and Restarting Processes
    10. Chapter 10: Modifying Process Execution
    11. Chapter 11: Displaying Managers
    12. Chapter 12: Managing User and Group Accounts
    13. Chapter 13: Automating Tasks
    14. Chapter 14: Maintaining System Time and Logging
    15. Chapter 15: Fundamentals of Internet Protocol
    16. Chapter 16: Network Configuration and Troubleshooting
    17. Chapter 17: Performing Administrative Security Tasks
    18. Chapter 18: Shell Scripting and SQL Data Management
  27. Other Books You May Enjoy
    1. Leave a review - let other readers know what you think