Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Essential Linux Commands
Essential Linux Commands

Essential Linux Commands: 100 Linux commands every system administrator should know

Arrow left icon
Profile Icon Paul Olushile
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (12 Ratings)
Paperback Nov 2023 250 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Paul Olushile
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (12 Ratings)
Paperback Nov 2023 250 pages 1st Edition
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $39.99
Paperback
$49.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Essential Linux Commands

Getting a CentOS Server Up and Running

As a system administrator, one of the most fundamental tasks you may encounter is defining your roles and responsibilities. However, how to do this varies greatly depending on who you ask. Different individuals and companies may have their own unique perspectives on what the title of system administrator entails.

Welcome to the first chapter of this book, where we will be learning about server installations and management commands. Setting up a Linux system and keeping it up to date are the basic tasks that most system administrators perform in their day-to-day work. In this chapter, we will start by setting up a Linux server and then learn about the purpose of package management and how it provides an easy way to install software on Linux hosts. We will then explore commands that allow us to view the Linux file structure, add users and groups, and archive files.

By the end of this chapter, you will have a solid foundation of how to set up and manage Linux servers. We will begin by learning how to download the CentOS server installation file, set up a hypervisor, and install packages. We will also explore commands that allow you to view system, kernel, hardware, and processor information. With the skills you learn in this chapter, you will be able to set up and manage Linux servers with confidence.

In this chapter, we are going to cover the following main topics:

  • Downloading the operating system (OS) installation file
  • Downloading and setting up a hypervisor
  • Package installation commands
  • Information commands

Downloading the OS installation file

In this section, we will cover the process of downloading the Linux server operating system, including which Linux distributions are recommended and the requirements that need to be met.

When it comes to choosing a Linux distribution for your server, there are many options to choose from. Some popular choices include Ubuntu, Debian, and Red Hat. However, one of the most popular and stable choices for enterprise and web server environments is the Community Enterprise Operating System (CentOS).

CentOS is a free and open source Linux distribution based on Red Hat Enterprise Linux (RHEL). It is known for its stability and reliability, making it a popular choice for enterprise and web server environments. It is also widely used in the hosting industry, education, research, and for personal use. It is compatible with the Red Hat ecosystem, meaning that users can leverage their existing knowledge, skills, and tools of RHEL. The distribution is maintained by a large community of developers and users who work together to provide updates and security patches, making it a secure and stable choice. Additionally, it is designed to be fully compatible with the upstream vendor, Red Hat, and it provides an almost identical environment. This means that users can use the same set of commands and packages as in Red Hat Linux, and they can also access the Red Hat customer portal and support. As we’ll be making use of CentOS throughout this book, we’ll be downloading the installation image from the official website (https://www.centos.org/). The website offers both DVD and minimal ISO images, which can be used to install the server. Make sure to download the correct version for your architecture (32-bit or 64-bit).

When it comes to downloading the installation image for CentOS 8, there are two options available:

  • CentOS-Stream-8-x86_64-20220104-boot.iso
  • CentOS-Stream-8-x86_64-20220104-dvd1.iso

The CentOS-Stream-8-x86_64-20220104-boot.iso file is a minimal image used for booting the system and performing a network installation. It is designed to be used with a network-based installation process and contains only the packages required to start the installation process. Additional files will be downloaded during the installation.

The CentOS-Stream-8-x86_64-20220104-dvd1.iso file is the DVD image containing all the packages included in the distribution. It can be used for a local installation (also known as an offline installation, as there is no need to download files during the installation), and it contains a complete set of packages.

It’s important to note that, depending on your system requirements and the intended use of the server, one of these images may be more suitable than the other. The minimal image is recommended for servers with limited resources, while the DVD image is recommended for servers with more resources and a wider range of needs. The following are the system requirements for setting up our own server:

  • Processor: A 64-bit processor is required
  • Memory: A minimum of 2GB of RAM is recommended, but 8 GB or more is recommended for servers with a high workload
  • Disk space: A minimum of 20 GB of storage space is recommended, but the more storage space, the better
  • Network connectivity: A network connection is required for downloading the installation image and performing updates
  • Graphics card: A graphics card is not necessary for a server, but if you’re planning on using the server for graphical applications, a graphics card is recommended
  • Operating system: A 64-bit version of Windows, macOS, or Linux is required for running a hypervisor

Now that we know our system requirements, our first step is to open a web browser and go to www.google.com:

  1. In the search bar, type download CentOS ISO and press Enter. This will bring up the official website for CentOS, which is https://www.centos.org/ (see Figure 1.1).
Figure 1.1 – Google search

Figure 1.1 – Google search

  1. Our second step is to select the x86_64 option for all architectures:
Figure 1.2 – x86_64 architectures

Figure 1.2 – x86_64 architectures

  1. Next, we select the available link for our region. As we can see from the figure, mine is http://mirror.web4africa.ng/centos/8-stream/isos/x86_64/:
Figure 1.3 – Selection by region

Figure 1.3 – Selection by region

From the index /centos/8-stream/isos/x86_64/, we’ll need to download the CentOS-Stream-8-x86_64-20221222-dvd1.iso DVD version. As we have read previously, the DVD image contains all the packages that are included in the distribution, which means that it can be used to perform a local installation.

Figure 1.4 – DVD download page

Figure 1.4 – DVD download page

After downloading the image, we’ll need to download a hypervisor.

Downloading and setting up a hypervisor

In this section, we will cover the process of downloading and setting up a hypervisor. A hypervisor is software that allows you to create and run virtual machines on a physical host. This is essential knowledge for a system administrator, as it allows for more flexibility and resource management. There are several hypervisors available, such as VMware, VirtualBox, and Hyper-V. In this book, we will be using VMware as an example.

Figure 1.5 – VMWare (Workstation 16 Pro)

Figure 1.5 – VMWare (Workstation 16 Pro)

The steps for downloading and setting up a hypervisor are as follows:

  1. The first step is to download the VMware software from the official website:
Figure 1.6 – Downloading VMWare Workstation

Figure 1.6 – Downloading VMWare Workstation

  1. Make sure to download the correct version for your operating system. Once the download is complete, you will need to install the software on your physical host. This process is straightforward and involves following the prompts during the installation process.
Figure 1.7 – Setting up

Figure 1.7 – Setting up

Once the installation is complete, you will need to create a new virtual machine.

  1. We’ll utilize the Custom configuration wizard. This process involves specifying the amount of memory and storage and the network settings for the virtual machine.
Figure 1.8 – Custom configuration wizard

Figure 1.8 – Custom configuration wizard

  1. Configure the Virtual machine hardware compatibility settings as follows:
Figure 1.9 – Hardware compatibility settings

Figure 1.9 – Hardware compatibility settings

  1. Choose the operating system media, then choose the I will install the operating system later option for a hands-on setup process:
Figure 1.10 – Choosing the operating system media

Figure 1.10 – Choosing the operating system media

  1. Provide a name for the virtual machine and choose a location.
Figure 1.11 – Choosing a virtual machine name

Figure 1.11 – Choosing a virtual machine name

  1. Select a guest operating system:
Figure 1.12 – Selecting a guest operating system

Figure 1.12 – Selecting a guest operating system

  1. Allocate processor resources:
Figure 1.13 – Specifying the number of processors to allocate

Figure 1.13 – Specifying the number of processors to allocate

  1. Allocate memory to the virtual machine. Calculating memory allocation should be approached in the same manner as processor allocation. Ensure that the host system has adequate memory and allocate the remainder to the virtual machine. For this example, we’ll be going with 8 GB or more.
Figure 1.14 – Specifying the amount of memory

Figure 1.14 – Specifying the amount of memory

  1. Configure the network settings. Choose the network configurations that meet your needs, or just select the default NAT Network. Why do this?

    Network address translation (NAT) in VMware is a networking feature that allows virtual machines to access the internet and other network resources with the use of a host computer’s IP address. This feature provides a secure and convenient way to access the internet for virtual machines that do not have their own IP addresses. In NAT mode, the virtual machine’s network traffic is transparently translated between the virtual network and the host’s physical network, allowing the virtual machine to access network resources as if it were directly connected to the physical network. NAT is often used in virtualization environments for testing and development, where virtual machines need access to the internet for downloading software, updates, and so on but do not require public access.

Figure 1.15 – Network type

Figure 1.15 – Network type

  1. Select the I/O controller type.

    The SCSI controller type is the type of controller that is used to control a virtual disk. The following figure contains these options:

    • BusLogic: This controller type is not available for 64-bit guests. It is an older controller type that is no longer commonly used.
    • LSI Logic (recommended): This controller type is recommended for most guests. It is a newer controller type that offers better performance and compatibility than the BusLogic controller.
    • LSI Logic SAS: This controller type is designed for use with Serial Attached SCSI (SAS) disks. It offers better performance than the LSI Logic controller, but it is not as widely supported by guest operating systems.
    • Paravirtualized SCSI: This controller type is a high-performance controller that is designed for use with VMware guest operating systems. It requires that the guest operating system have a special driver installed.

    If you are not sure which SCSI controller type to choose, I recommend using the LSI Logic controller. It is a good all-purpose controller that is widely supported by guest operating systems.

Figure 1.16 – I/O controller types

Figure 1.16 – I/O controller types

  1. Choose the disk type.

    The screenshot that follows shows the different disk type options available in the New Virtual Machine Wizard window. The options are as follows:

    • Integrated Drive Electronics (IDE): This is an older disk type that is not as fast as newer disk types, such as SATA and NVMe. However, it is still supported by most guest operating systems.
    • Small Computer Systems Interface (SCSI): This is a faster disk type than IDE. It is also more versatile, as it can support multiple disks and devices.
    • Serial ATA (SATA): This is the most common disk type in use today. It is faster and more reliable than IDE and SCSI.
    • Open non-volatile memory express (ONVMe): This is the newest and fastest disk type. It is still under development, but it is becoming increasingly popular in high-performance servers and workstations.

    If you are running a guest operating system that supports newer disk types, such as SATA and NVMe, then I recommend choosing one of those disk types. They will offer better performance and reliability.

Figure 1.17 – Disk type

Figure 1.17 – Disk type

  1. Select a virtual disk (select the virtual disk if you have one, or create one).
Figure 1.18 – Creating a new virtual disk

Figure 1.18 – Creating a new virtual disk

  1. Specify the disk capacity. The recommended disk space is 20 GB, but we’ll be allocating 30 GB of space to ensure sufficient room for your virtual machine. Be sure to tick the Store virtual disk as a single file option.
Figure 1.19 – Setting the disk capacity

Figure 1.19 – Setting the disk capacity

  1. Define the virtual disk file.
Figure 1.20 – Specify Disk File

Figure 1.20 – Specify Disk File

  1. Create the virtual machine by selecting Finish.
Figure 1.21 – Ready to Create Virtual Machine

Figure 1.21 – Ready to Create Virtual Machine

  1. Next, to initiate the CentOS installation on VMware Workstation, provide the virtual machine with the CentOS ISO image. Once you’ve done this, click on the Power on this virtual machine option. This will create a new virtual machine and configure it according to the specifications you have provided.
Figure 1.22 – Selecting the ISO image file

Figure 1.22 – Selecting the ISO image file

After the installation is complete, you will power on the newly created virtual machine, which will boot up and be ready for use. This process will allow you to have a fully functional CentOS installation running within a virtual environment, providing you with the ability to easily test, run, and manage multiple operating systems on a single physical machine.

The next step is to power on the virtual machine. This will bring the newly installed operating system to life and allow you to start configuring and using it. It is important to ensure that the virtual machine is properly configured before proceeding with the power-on process. This includes verifying the network configuration, memory and processor allocation, and disk space availability. Once you have confirmed that all the necessary parameters are set up correctly, you can power on the virtual machine by clicking the Power On button in VMware Workstation. This will move us into the next stage of the configuration process.

  1. We’ll select Install CentOS Stream 8-Stream from the list of options. To navigate between the options, use the arrow keys and press the Enter key to select the desired one.
Figure 1.23 – Powering on CentOS 8-Stream

Figure 1.23 – Powering on CentOS 8-Stream

  1. Upon successful initiation of the CentOS installation, you will be presented with a welcome screen that gives you the option to choose your preferred language. Simply select your desired language and click Continue to proceed.
Figure 1.24 – Choosing your preferred language

Figure 1.24 – Choosing your preferred language

  1. To move forward with the installation of CentOS, it is important to set up certain parameters such as keyboard layout, language support, time and date settings, software packages to be installed, root password, installation media, and disk partition information. These parameters will ensure a smooth and successful installation.
Figure 1.25 – The installation summary

Figure 1.25 – The installation summary

  1. The installation wizard in CentOS 8 can automatically detect all the locally accessible network interfaces prior to the installation process. These interfaces will be displayed in the left pane (see Figure 1.26), allowing you to easily choose the desired network and configure it as active or inactive based on your specific requirements. This step ensures that the correct network connection is established for the system during the installation process.
Figure 1.26 – The Network & Host Name page

Figure 1.26 – The Network & Host Name page

  1. With all the necessary settings configured, it’s time to commence the installation process. Click the Begin Installation button:
Figure 1.27 – The Begin Installation button

Figure 1.27 – The Begin Installation button

As the installation process begins, the setup wizard will commence the installation of CentOS. The process may take several minutes to complete, depending on the speed of your system and the configuration settings selected. Keep an eye on the progress bar to track the installation’s progress.

Figure 1.28 – Installation progress

Figure 1.28 – Installation progress

  1. After the successful installation of CentOS, it’s important to reboot the virtual machine to ensure that all changes made during the installation process take effect. This will help in initializing the newly installed operating system and making it ready to use. To reboot the virtual machine, simply select the Reboot System button to restart from the system menu and wait for the machine to complete the reboot process.
Figure 1.29 – The Reboot System button

Figure 1.29 – The Reboot System button

  1. Upon rebooting the virtual machine, select the first option presented in the GRUB menu for successful boot into the installed CentOS operating system.
Figure 1.30 – The CentOS 8 GRUB menu

Figure 1.30 – The CentOS 8 GRUB menu

  1. One more important step to remember is to read and accept the license information, as it is required to proceed with the boot process.
Figure 1.31 – Accepting the license information

Figure 1.31 – Accepting the license information

  1. Upon accepting the license information, the final step in the process is to complete the configuration by clicking the Finish Configuration button. This action finalizes the setup and configuration process and enables the system to boot into the newly installed CentOS operating system.
Figure 1.32 – Finishing the configuration

Figure 1.32 – Finishing the configuration

  1. With your credentials, log in to your newly installed CentOS Linux system.
Figure 1.33 – Logging in

Figure 1.33 – Logging in

  1. Upon logging in, select the Start Using CentOS Linux option to begin utilizing the full functionality of the operating system.
Figure 1.34 – Ready to Go

Figure 1.34 – Ready to Go

It is recommended that you log in as the root superuser as soon as possible and run the commands in the next section to ensure your newly installed CentOS Linux system has the latest updates and fixes.

Package installation commands

Package installation commands are used in CentOS to install and manage software packages on the system. The package management system in CentOS is called Yellowdog Updater Modified (YUM), and it provides a centralized method for managing and installing software packages.

YUM package management system

YUM is the default package manager for CentOS. It makes it easy to manage software packages by resolving dependencies and downloading required packages. With YUM, users can install new packages, update existing packages, and remove packages as needed. YUM provides a command line interface that allows users to manage packages from the terminal, as well as a graphical user interface for users who prefer a visual approach.

Common package installation commands

The most common commands used with YUM include yum install to install a new package, yum update to update an existing package, and yum remove to remove a package. Additionally, yum list can be used to list all available packages, and yum search can be used to search for packages. It is important to remember that when using YUM to manage packages, it is necessary to have an active internet connection and to run the commands as root or with administrative privileges.

The following commands are the starting point of the 100 Linux Commands Every System Administrator Should Know journey:

  • yum upgrade: The yum upgrade command is used in CentOS Linux to upgrade all installed packages to their latest available version. The command updates the system with the latest packages, bug fixes, and security patches, ensuring the system remains secure and stable. The yum upgrade command is executed in the terminal and it is executed with administrative privileges, usually as the root user. By running the command, the system will upgrade all installed packages and resolve any dependencies or conflicts that might arise during the upgrade process.
Figure 1.35 – Upgrading the server

Figure 1.35 – Upgrading the server

  • yum update: This package management tool is used in CentOS and other Linux distributions to upgrade and update system software packages. It downloads the latest package updates from a repository and installs them on the system, ensuring that your system has the most up-to-date security patches and bug fixes. Running yum update on a regular basis is an important part of system maintenance, as it helps keep your system secure and running smoothly.
Figure 1.36 – Updating the server

Figure 1.36 – Updating the server

  • reboot: This command is used to restart a computer running on a Unix-based operating system such as Linux. It is used to apply changes made to the system or to refresh the system after completing a process. The command can be executed by a user with root or superuser privileges. Upon executing the command, the system initiates a reboot sequence and all running processes are terminated. Then, the system is restarted. The reboot command is often used after completing a system update or upgrade to ensure the changes are applied.
Figure 1.37 – Rebooting the server

Figure 1.37 – Rebooting the server

Information commands

CentOS provides system administrators with a range of commands for obtaining information about various aspects of the system, including hardware, software, networks, and users. These commands are essential tools for monitoring and troubleshooting the system and its components, providing insight into the current status, configuration, and performance of the system. With the ability to obtain accurate and up-to-date information about the system, system administrators can quickly identify and resolve issues, ensuring optimal performance and the stability of the system. These commands provide information about the system’s hostname, disk usage, processes, CPU, and network interfaces, respectively, making them valuable tools for system administrators who need to diagnose and resolve system issues.

Here are a few commonly used information commands in CentOS:

  • uname: The uname command is used to display information about the operating system and the system’s hostname. This command can also display the type of hardware, the version of the operating system, and the release number of the kernel.
Figure 1.38 – Displaying the operating system

Figure 1.38 – Displaying the operating system

The uname command comes with different flags that can be executed; for example, the -a parameter displays the whole information, including the system name, network node hostname, kernel release, version, and machine hardware name, as we can see in the following terminal:

Figure 1.39 – Displaying all system information

Figure 1.39 – Displaying all system information

  • lsb_release: The lsb_release command is used to display information about the Linux Standard Base (LSB) version, distributor ID, and release number. The LSB is a standard that defines the Linux operating system and ensures compatibility among different Linux distributions.
Figure 1.40 – Displaying the Linux Standard Base version

Figure 1.40 – Displaying the Linux Standard Base version

To execute additional flags, we’ll make use of a flag commonly used by administrators to display the distributor indicator.

Figure 1.41 – Displaying Distributor Indicator

Figure 1.41 – Displaying Distributor Indicator

  • hostnamectl: The hostnamectl command is used to display and modify the system hostname and to view various system settings such as the operating system architecture, boot mode, and system time zone. This command is useful for changing the hostname or viewing system settings without having to log in to the system as a root user.
Figure 1.42 – Displaying the system settings and architecture

Figure 1.42 – Displaying the system settings and architecture

Let us execute hostnamectl with another flag, set-hostname. This flag is used to set the system hostname to a specified value. For example, you might execute hostnamectl set-hostname myhost:

Figure 1.43 – Setting a system hostname

Figure 1.43 – Setting a system hostname

The preceding useful information commands that we covered in this section will help you gather information about your system. Throughout this chapter, we emphasized the importance of proper server setup and installations, including regular software upgrades and updates, to ensure that your system runs smoothly and remains secure. By following the steps outlined in this chapter, you will be well on your way to setting up a reliable and secure server for your personal use, as well as building a foundation to further learn about Linux system administration.

Summary

In our first chapter, we focused on the steps involved in downloading and setting up a server. We began by discussing the process of downloading the server’s operating system, which is a crucial step in the setup process. We then delved into the topic of downloading and setting up a hypervisor, which is a virtualization platform that enables the creation of virtual machines. The hypervisor provides an isolated environment for each virtual machine, which allows multiple virtual machines to run on the same physical server.

Moving on, we discussed the importance of package installation commands in the server setup process. These commands allow system administrators to install, upgrade, and remove packages from the server, which are essential for the server to function properly. We also provided an overview of some common package installation commands such as yum.

Finally, in the fourth section, we highlighted the role of informational commands in the server setup process. These commands provide important information about the system, including information about the operating system and the hardware. We covered three common information commands in CentOS, including uname, lsb_release, and hostnamectl, and described their uses and benefits. These information commands are useful for monitoring and troubleshooting the server and ensuring that it is functioning optimally.

In our next chapter, we dive into Linux users and groups management. Essential for system security, stability, and resource allocation, this chapter covers key commands and tools for system administrators to manage users and groups.

Left arrow icon Right arrow icon

Key benefits

  • Explore Linux commands for mounting, file manipulation, and running Linux on the cloud
  • Learn commands for checking and configuring network card statistics, firewall rules, and interfaces
  • Understand how to utilize SELinux in keeping systems adequately hardened and avoiding various security risks
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

The role of a system administrator is ever-evolving, with the Linux command line at its core. This makes Linux command-line mastery an essential skill to demonstrate your ability to efficiently manage and maintain systems efficiently. Essential Linux Commands addresses a diverse range of topics, including package management, file manipulation, networking strategies, system monitoring, and diagnostic tools. Each command is intricately explained to eliminate any ambiguity, ensuring ease of implementation in real-world scenarios. This book explains how to use SELinux to maintain security, run Linux machines on AWS Cloud, and transfer and download files to remote systems. With the help of practical examples and use cases, you’ll not only gain a thorough understanding of a command’s syntax but also grasp its functional breadth and limitations. The book also explores commands frequently used by system administrators to check network card statistics and firewall rules. Whether you’re a beginner or an experienced administrator, this book is an invaluable resource, filling in the gaps in your skill set and helping you improve your skills and expertise in Linux administration.

Who is this book for?

This book is for system administrators, IT professionals, and students who want to enhance their knowledge of Linux administration and improve their skills in this field. Whether you’re just starting out in system administration or have years of experience, this book is an invaluable resource for mastering the Linux command line and becoming a more proficient system administrator. Essential Linux Commands is also well-suited for individuals interested in expanding their Linux know-how and its applications in various industries and environments.

What you will learn

  • Execute commands to launch applications, control services, and change network settings
  • Develop your skills to use commands for package management, file manipulation, and networking
  • Get clear explanations and practical examples for each command
  • Discover tips and techniques to use the Linux command line effectively
  • Get to grips with troubleshooting common problems and fixing errors
  • Master best practices to manage and maintain Linux systems
  • Develop expertise in system performance, security, and Linux in the cloud

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 30, 2023
Length: 250 pages
Edition : 1st
Language : English
ISBN-13 : 9781803239033
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Nov 30, 2023
Length: 250 pages
Edition : 1st
Language : English
ISBN-13 : 9781803239033
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 134.97
Mastering Linux Security and Hardening
$49.99
Linux for System Administrators
$34.99
Essential Linux Commands
$49.99
Total $ 134.97 Stars icon
Banner background image

Table of Contents

19 Chapters
Part 1:Server Installations and Management Commands Chevron down icon Chevron up icon
Chapter 1: Getting a CentOS Server Up and Running Chevron down icon Chevron up icon
Chapter 2: Linux User and Group Commands Chevron down icon Chevron up icon
Chapter 3: File Compression and Archival Commands Chevron down icon Chevron up icon
Part 2:Frequently Used Commands – Part 1 Chevron down icon Chevron up icon
Chapter 4: Format and Disk Space Commands Chevron down icon Chevron up icon
Chapter 5: Linux Permissions Commands Chevron down icon Chevron up icon
Chapter 6: Filesystem Mount and Manipulation Commands Chevron down icon Chevron up icon
Part 3:Frequently Used Commands – Part 2 Chevron down icon Chevron up icon
Chapter 7: File Content and Conversion Commands Chevron down icon Chevron up icon
Chapter 8: Linux SWAP Commands Chevron down icon Chevron up icon
Chapter 9: Linux Monitoring and Debugging Commands Chevron down icon Chevron up icon
Chapter 10: Linux IPTABLES and Network Commands Chevron down icon Chevron up icon
Chapter 11: File Transfer, Downloading, and Managing Log Files Chevron down icon Chevron up icon
Part 4:Linux Security and the Cloud Chevron down icon Chevron up icon
Chapter 12: Exploring Linux Security Chevron down icon Chevron up icon
Chapter 13: Linux in the Cloud Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(12 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Victor kolawole Mar 23, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Highly recommended, it has helped me improve on my Linux Command skills and best decision I made ever to get this book.
Amazon Verified review Amazon
Garrett Chan Feb 29, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The "Essential Linux Commands" book is more than just a compilation of useful Linux commands; it also offers instructions on setting up a Linux environment for anyone to test these commands. I thoroughly enjoyed that the author provided "scenarios" demonstrating when a command could be useful. For a future edition, it would be nice if they provided a cheatsheet/one-pager with all commands; otherwise, it’s an excellent reference book.
Amazon Verified review Amazon
Raymond Dec 07, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
100 essential commands covered with detailed use cases . Each command is intricately explained to eliminate any ambiguity, ensuring ease of implementation in real-world apllication.Covered topics include using SELinux to maintain security, run Linux machines on AWS Cloud, and transfer and download files to remote systems. Via examples and use cases, you’ll gain a thorough understanding of a command’s syntax and its functional scope and limitations. The book also explores commands frequently used by system administrators to check network card statistics and firewall rules and other tasks.A great addition to my linux reference library.
Amazon Verified review Amazon
Yakov Shipilov May 22, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book covers server installations, disk management, file permissions, and network security. It provides practical steps for setting up a CentOS server, explains commands like fdisk, chmod, mount, cat, grep, top, and iptables, and explores cloud integration with AWS. Having personally followed the book's instructions to set up a CentOS server and use various commands, I found the hands-on exercises immensely valuable. While it offers clear explanations and practical examples, making it an excellent resource for system administrators, developers, IT professionals, students, and Linux enthusiasts, its content is more suited for beginners and may lack depth for advanced users seeking more comprehensive techniques. The book is structured to build foundational knowledge, ensuring that readers can manage Linux systems effectively and confidently.
Amazon Verified review Amazon
Brandon Lachterman Dec 08, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Exactly as my headline says, this book is a true reference guide, perfect to be on the side of your desk to check syntax at any time, or really learn new commands quickly.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.