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
Free Learning
Arrow right icon
CentOS Quick Start Guide
CentOS Quick Start Guide

CentOS Quick Start Guide: Get up and running with CentOS server administration

eBook
€17.99 €26.99
Paperback
€32.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

CentOS Quick Start Guide

Getting Started with CentOS 7

Community Enterprise Operating System, commonly referred to as CentOS, is a fast, stable, and open source enterprise-grade Linux distribution used on laptops, desktops, and servers. It is derived from the source code of Red Hat Enterprise Linux (RHEL), which is developed and maintained by the CentOS community. All proprietary content related to Red Hat Inc. is removed from the CentOS packages, which are then recompiled with CentOS community assets, such as logos and so on. CentOS 7 is an exact replica of RHEL 7, but is available for free with community support and updates. The CentOS project is now officially sponsored by Red Hat Inc. and is most suitable for environments where commercial support for operating systems is not mandatory.

In this chapter, we will give you a walk-through on how to install CentOS 7 on your computers. After installation, we will introduce you to the command-line console of Linux in order to use Bash (short for Bourne Again Shell). This chapter teaches you how to set up your environment to perform all the exercises in the following chapters of this book.

In this chapter, we will cover the following:

  • Preparing to install CentOS 7
  • Performing manual installation
  • Accessing the command line using the console
  • Introducing the Bash shell
  • Bash shell and command execution

Preparing to install CentOS 7

The CentOS community released its latest operating system version with the name CentOS 7.6-1810, where 7.6 comes from RHEL 7.6 and 1810 shows its release date (October 2018). CentOS 7.6 can be installed on physical or virtual hardware. You can use any of the main desktop virtualization software utilities, such as Oracle VirtualBox (https://www.virtualbox.org/wiki/Downloads) or VMWare Workstation (https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html), as per your environment. My choice for desktop virtualization software is VirtualBox as it is free, open-source, and easy to use. You will also need a working internet connection to download the CentOS image from the community download page.

Those are using Linux as their base operating system can also use KVM for virtualization.

Getting the right hardware

For a minimal installation of CentOS 7.6, the following hardware requirements must be met:

  • 512 MB RAM
  • 4 GB HDD space
  • A network card

However, to practice all the exercises described in this book, we recommend that the following hardware requirements are met:

  • 64-bit architecture support
  • 1 GB RAM
  • 10 GB HDD space
  • DVD drive or USB memory stick
  • A network card

Getting the software

There are different ways to get the software required to perform all the exercises in this book. However, the easiest and most flexible way is to download the iso file from the CentOS website and burn it to a DVD, or create a bootable USB drive with CentOS. Then, boot your PC using the ISO DVD image if you are using a virtual machine. If you are installing onto a physical system, then use a bootable USB drive or burned CentOS DVD for installation.

Use the following link to download the CentOS 7.6 (64 bits) ISO image file:

http://centos.mirror.net.in/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-DVD-1810.iso

You can download MD5 and SHA1 hashes of the image file downloaded from CentOS site. The downloaded image should have the same hash as the one posted on the CentOS website.

Finalizing server setup details

Once you have the right hardware and software for the CentOS installation, you should decide on the basic setup parameters to be specified while performing the installation. The following table lists the details we will use during the installation of our CentOS 7.6 server described in this chapter:

Setup parameter

Sample values

IP address

192.168.0.100

Netmask

255.255.255.0

Hostname

Server.example.com

Root password

Linux@12345

User name

Student

User password

Student@12345

Performing manual installation

Nowadays, the fastest and easiest way to install CentOS is to use a bootable USB drive; however, in our case, I have chosen to use the DVD ISO image with a virtual machine. First, we need to boot the computer system/virtual machine using the DVD. On booting from the DVD, you will get a cool CentOS screen displaying the basic installation options, and testing the media and troubleshooting options. Once your system/virtual machine is up and running with a bootable DVD of CentOS 7, follow these steps to install CentOS on your system:

  1. We have to choose the Install CentOS 7 option and press Enter, as shown in the following screenshot. This will start the graphical installer and ask about the language to be used during the installation process:
  1. Now, you will see a WELCOME TO CENTOS 7 screen, prompting you to choose your language and keyboard settings. Choose your respective language and keyboard settings and click on the Continue button, as shown in the following screenshot. In my case, I have chosen English:
  1. After this, you will see an INSTALLATION SUMMARY screen. From this screen, you can specify the settings you want to use for the three different sections and their sub-sections, as shown in the following screenshot:

On this screen, the Begin Installation button will remain disabled as long as any setting from a section or subsection displayed on the INSTALLATION SUMMARY screen is still incomplete. If all the sections and subsections displayed on this screen are complete with minimum installation instructions, only then will the Begin Installation button be enabled.

By default, the installer does automatic partitioning for our hard disk. If we want to use the default layout, then we must click on INSTALLATION DESTINATION, and then approve the disk device we want to use for automatic partitioning by clicking on the Done button on the next screen. Thereafter, the Begin Installation button will be enabled and we can install CentOS with a minimal configuration, as shown in the following screenshot:

The minimal installation of CentOS 7 doesn’t have a graphical interface—it has a bare minimum set of packages installed, with limited features available in the command-line interface.
  1. If you are a beginner and want to use CentOS 7 with a graphical user interface (GUI), then follow these installation instructions. In this step, we'll learn about the usage of CentOS and then modify certain options that need to be configured during installation. The INSTALLATION SUMMARY screen has three sections, as follows:
    • LOCALIZATION
    • SOFTWARE
    • SYSTEM

These three sections are explained as follows:

  • LOCALIZATION: This section further contains the following three sub-sections for configuration:
    • DATE & TIME
    • KEYBOARD
    • LANGUAGE SUPPORT

Or these three, the DATE & TIME sub-section is often required to be configured. The other two we have already configured in the previous steps.

In the DATE & TIME option, select the time zone that you are in by clicking on your location on the world map. You can also configure your current specific DATE & TIME from this window, as shown in the following screenshot:

We leave the KEYBOARD and LANGUAGE SUPPORT settings at their defaults, and move to the next section to be configured—in this case, SOFTWARE.

  • SOFTWARE: This section further contains two sub-sections for configuration:
    • INSTALLATION SOURCE
    • SOFTWARE SELECTION

Under the SOFTWARE section, we keep INSTALLATION SOURCE set to its default local media (DVD-ROM), as shown in the following screenshot:

The next sub-section for configuration is SOFTWARE SELECTION. This forms an important part of the installation procedure. Click on this option and you will get the screen shown in the following screenshot. From here, you can choose the default base environment and add-ons that are available for the selected environment. For our practice demonstration, we will install the GNOME Desktop base environment with four add-ons: GNOME Applications, Office Suite and Productivity, Development Tools and System Administration Tools as shown in the following screenshot:

  • SYSTEM: This section further contains four sub-sections for configuration:
    • INSTALLATION DESTINATION
    • KDUMP
    • NETWORK & HOST NAME
    • SECURITY POLICY

In this section, we keep the KDUMP and SECURITY POLICY sub-sections set to their default parameters, and configure the two remaining sub-sections as follows:

In the INSTALLATION DESTINATION sub-section, we specify where we want to install CentOS. Automatic partitioning is selected by default, but we can create a manual partitioning scheme of our own as per our requirements. As a bare minimum standard, we will create the following three partitions:

    • Boot partition: This partition stores bootable files such as the kernel image, and so on.
    • Swap partition: This is for swapping files and programs in and out of the RAM. It is generally twice the size of the RAM.
    • Root (/) partition: This contains the Linux filesystem.

The following screenshot shows where to click to create manual partitions:

  1. Choose the device onto which to install the OS, and select I will configure partitioning. Finally, click on the Done button to proceed with the creation of multiple partitions as shown in the following screenshot:
  1. Now, we create a minimum of three partitions in the partition table (boot, swap, and /). In my case, I have kept File System as xfs, with the Standard Partition type for the boot and / partitions. For the swap partition, the File System type is kept as swap, as shown in the following screenshot:
  1. Next, on pressing Done, you will get the SUMMARY OF CHANGES dialog box. Click on the Accept Changes button to begin creating on the disk the partitions that we specified in the partition table, as shown in the following screenshot:
  1. NETWORK & HOST NAME: In this final part of the installation summary, which we'll configure networking. You can leave the default settings as they are to get the IP address from the DHCP server, or click on NETWORK & HOST NAME to set up networking manually. From the dialog box, click on the IPv4 Settings Tab, then choose the method as Manual from drop-down menu and specify the private IP address, as shown in the following screenshot:

Further in the NETWORK & HOST NAME settings, change the network connection state from Off to On, as shown in the following screenshot:

  1. Now that all the INSTALLATION SUMMARY sections are configured as required, the Begin Installation button is enabled. Click on the Begin Installation button to start the process of installation, as shown in the following screenshot:
  1. Next, the screen prompts for user settings. Here, we click Root Password first and set the password to Linux@12345.
  1. Next, we click on CREATE USER to create a user. For both the Full name and User name fields, enter student, and set Password as Student@12345. Here also we have to click on the Done button twice to confirm the password, as shown in the following screenshot:
  1. Have a cup of coffee while the installation process is in progress. Once the installation is complete, remove any installation media (the instructions only apply to the DVD method) and click on the Reboot button, as shown in the following screenshot:
  1. Once the system has rebooted, we will get the INITIAL SETUP screen, where we have to accept an EULA agreement before logging in to the system. Here, we click on LICENSE INFORMATION to accept the license agreement, as shown in the following screenshot:
  1. Once the license agreement has been accepted, the FINISH CONFIGURATION button will become enabled. Click on it to reach the login screen.
  1. On the login screen, click on the student username and enter the password as Student@12345, as shown in the following screenshot:
  1. After a successful login, you will see the welcome screen that is displayed only when the user LOGS IN for the first time. Click on the Next button to reach the desktop.
  2. Congratulations! You have successfully installed the latest version of CentOS 7 on your computer system or virtual machine. You can explore your new CentOS 7 environment and perform other tasks, such as updating the system or installing other useful software for daily operational requirements. To power down the system, click on the right corner of desktop. You will get a drop-down menu; from there you can click on Shut down, as shown in the following screenshot:

With this, your installation process is complete. In the upcoming section, we will learn how to access the command-line console.

Accessing the command line using the console

When using CentOS, system administration or applications development tasks are performed using either the command-line interface (CLI), such as the Bash shell, or with the help of a GUI, such as GNOME, KDE, and so on. In this section, we will learn how to enter commands in the Bash shell at the Linux console.

Starting a Terminal

When you log in to a Linux system in CLI mode or open a Terminal, it displays a string where it waits for user input (a command). This is known as a shell prompt.

To access a shell prompt in the GUI environment, you have to start a Terminal application, such as GNOME Terminal. There are multiple ways to launch a Terminal. The most frequently used ways to access a Terminal are as follows:

  • Select Applications | System Tools | Terminal
  • Right-click anywhere on your Terminal and select Open in Terminal from the context menu that pops up
  • From the activities overview, select Terminal

If you have started the Terminal application as a normal user, then the default prompt ends with a $ character, as shown in the following screenshot:

A normal shell prompt lists the following three details:

  • The login name of the current user
  • A short hostname of the machine, also known as the machine name
  • The name of the current working directory
The tilde (~) sign in the shell prompt represents the user's home directory. We will learn more about this in the following chapter.

If you have started or switched to the shell as a root user, also known as a superuser or administrator, then the prompt ends with a # character, as shown in the following screenshot:

The default shell of CentOS 7 is Bash, which provides a scripting facility for the automation of repeated tasks. The main functionality of any shell is to interpret the commands entered by the user at the prompt, and to provide a platform to launch any other program.

The default shell of Unix distributions is generally set as the Bourne shell. It is similar to the Microsoft Windows's Command Prompt application, cmd.exe. Windows 7 and Windows Server 2008 R2 onwards include Microsoft PowerShell, which is very similar in functionality to Bash.

There are two ways to access the shell. The first method is via the Terminal. When you install Linux without a GUI (as in a text-based installation), this can be the Linux machine's physical console, consisting of a keyboard for user input and a display to show output.

The second method is by using the shell from a virtual console. The Linux machine's physical console supports multiple virtual consoles, which act as separate Terminals with independent login sessions. If the GUI is installed, then the first virtual console is the GUI in CentOS/RHEL. In addition to the first graphical environment, five pure text-based environments are also available on a virtual console with which you can access a login shell. Ctrl + Alt + (F2 through F6) are text-based and Ctrl + Alt + F1 is the graphical desktop.

Command-line syntax and structure

Any command entered at the shell prompt can be broken down into three parts:

Part

Description

Command

The name of the application to be executed

Options

This modifies the behavior of the command; options are generally prefixed with one or two hyphens

Arguments

These generally indicate the target on which the command is be applied

A command can consist of one or more options and can take one or more arguments, depending upon its syntax. Understanding the syntax of commands will tell you all about the options and arguments it can take, and in what order. To view the syntax of a command, we can use the --help option or view the manual page. The usage of the mkdir command with its options is shown in the following screenshot:

Initially, you may find the output of the --help option a bit confusing. However, it becomes much simpler once you understand the basic conventions used in the syntax, discussed as follows:

  • Square brackets, [ ], enclose optional items. For example, it is not mandatory to execute the mkdir command with any option, as shown in the following command line:
$ mkdir mydirectory
  • Ellipses, , represent a list of more than one item of a given type. For example, we can use multiple options, such as -m and -p or -v, together with the mkdir command as shown in the following command line:
$ mkdir -p -v demo/linux/centos
  • Text given in angled brackets, <>, represents variable data. Sometimes, variable data is also written in capital letters. For example, DIRECTORY.. in mkdir means we have to insert the directory name we want to use with the mkdir command.
  • Multiple items separated by pipes (|), mean that only one of those items can be specified.

Exiting the shell

There are multiple ways to quit the shell, when you have finished using it and you want to end your session. Some of the most popular options to exit the shell are as follows:

  • Typing the exit command anytime on the console terminates the current session.
  • Pressing the Ctrl + D keys together is also a shortcut quite often used to terminate the current session.

Introducing the Bash shell

The GNU Bash is primarily a program that interprets commands entered by the user at the prompt. As we learned in the previous Command line syntax and structure section, each command entered by the user can have three parts:

  • The command
  • The options (beginning with - or --)
  • The arguments

Each word entered in the shell is separated from the others with a space. Commands are the names of various applications installed on our system, where each command has its own options and arguments.

When you want to execute a command entered at the prompt, the Enter key is pressed. After the Enter key is pressed, output from that command is displayed on the shell, which is followed again by the prompt as shown in the following screenshot:

Each command is entered on a single line; however, if you wish you can enter multiple commands on a single line using the semicolon (;), which acts as a command separator.

The various functions performed by the shell include the following:

  • It provides an interface between the user and operating system
  • It is a way for the user to execute commands and other programs
  • It acts as an command-line interpreter for commands entered at the command prompt
  • Shell also enables the automation of tasks by reading commands from a special text file, known as a shell script
  • Shell provides an environment for users and programs running on the operating system

There are multiple types of shell installed on each Linux distribution, with slight differences in features among them. The Bourne shell (sh) is the most primitive, and the Bash shell is the most advanced. The differences between these shells are listed in the following table:

Feature

Bourne

Korn

C

Tcsh

Bash

Background processing

Yes

Yes

Yes

Yes

Yes

Command history

No

Yes

Yes

Yes

Yes

I/O redirection

Yes

Yes

Yes

Yes

Yes

Shell scripts

Yes

Yes

Yes

Yes

Yes

Command alias

No

Yes

Yes

Yes

Yes

File name completion

No

Yes

No

Yes

Yes

Command completion

No

No

No

Yes

Yes

Command line editing

No

Yes

No

Yes

Yes

Job control

No

Yes

Yes

Yes

Yes

Bash shell and command execution

In this section, we will learn about the different features of the Bash shell with which you can reduce errors and increase the speed at which you work on the Terminal.

Tab completion

Linux shell syntax is case-sensitive as well as space-sensitive, so typing errors are the first major hurdle in learning for any beginner. However, if the tab completion feature is adopted by a beginner, then it makes life very easy and smooth by reducing typing errors to a minimum.

Tab completion enables you to complete command names or file names once you have typed enough characters at the prompt to make it unique. If the characters entered at prompt are not unique, pressing the Tab key twice displays all commands that can begin with the character already entered into the command line. An example of command completion using the Tab key is shown in the following screenshot:

The Tab completion feature can be used to complete file names or path names when typing them as argument to commands. Pressing the Tab key once completes the filename or path if it is unique; otherwise, pressing the Tab key a second time lists all the possible combinations of filenames or path names based on the current pattern. Thereafter, you can type additional characters to make the name or path unique, and press the Tab key again for completion of the command line. An example of path and filename completion using the Tab key is shown in the following screenshot:

Command-line editing shortcuts

Bash has a very useful command-line editing feature that can increase your productivity while working on the Terminal. It enables the user to use some shortcut commands to move around or delete characters on the command prompt.

The following table lists the most useful command line shortcuts available in Bash:

Shortcut

Description

To move the cursor

Ctrl + A

Moves the cursor to the beginning of the command line

Ctrl + E

Moves the cursor to the end of the command line

Ctrl + Left arrow

Moves the cursor to the beginning of the previous word on the command line

Ctrl + Right arrow

Moves the cursor to the beginning of the next word on the command line

To delete characters

Ctrl + U

Deletes the characters from the current cursor position to the beginning of the command line

Ctrl + K

Deletes the characters from the current cursor position to the end of the command line

Ctrl + W

Deletes the last word from the current cursor positing on the command line

Ctrl + L

Clears the screen (you can also type the clear command)

To modify the size of the Terminal window

Ctrl + +

Increases the size of the Terminal window

Ctrl - -

Decreases the size of the Terminal window

The history command

The history command is used to display a list of previously executed commands prefixed with a command number showing the order of their execution, as shown in the following screenshot:

The exclamation point character (!) is a metacharacter in Bash, used for previously executed command expansion from history list on prompt.

The following table lists various history commands that are quite useful for beginners:

Command

Description

!<number>

Expands to the command matching the specified number from history

!<string>

Expands to the most recently used command that begin with the string specified at the prompt

history -d <number>

Used to delete the numbered command from history

history -c

Empties the history list

Ctrl + R

Searches the history list of commands for a pattern, and executes the most recent match when found

The following screenshot displays the usage of the history command:

Besides the already listed options, we can use the arrow keys for navigation between the previous and next command line in the shell's history. The Up arrow key brings up the previous command executed from the history list. The Down arrow key brings up the next command from the history list.

Command aliases

The alias command is used to create an alias name or nickname for frequently used commands. It simplifies the administration process by providing alias names for long commands or even combinations of commands.

Listing current aliases

To list the currently configured aliases for your shell, just type alias without any argument at the prompt, as shown in the following command line:

$ alias

Setting an alias

The following syntax is used to set an alias x for the exit command. Thus, after setting this alias, whenever you want to exit from Terminal, you just have to enter x at the prompt:

$ alias x="exit"
$ alias c="clear"

Removing an alias

To remove an alias, the unalias command is used. For example, to remove the previously set alias, we use the unalias command as follows:

$ unalias x
The alias command will set its alias for the current session only. If you want to set an alias for any command persistently, you have to make an entry for it in /etc/bashrc for system-wide changes, and if you want to make user-specific changes, than put its entry in the .bashrc file stored in the user's home directory.

Summary

In this chapter, we started our journey learning CentOS 7. First, we began with the installation process, which was followed by an introduction to the Bash shell and command line syntax and structure. We then mastered the basic features of running commands from the shell with fewer strokes with the help of the Tab key, command-line shortcuts, history, and aliases.

In our next chapter, we will continue our journey through CentOS 7, looking at the Linux file system hierarchy and other essentials.

Left arrow icon Right arrow icon

Key benefits

  • No previous Linux environment experience needed for reading this book
  • Get comfortable with a popular and stable Red Hat Enterprise Linux distribution
  • Most of the command line based concepts are explained with graphics

Description

Linux kernel development has been the worlds largest collaborative project to date. With this practical guide, you will learn Linux through one of its most popular and stable distributions. This book will introduce you to essential Linux skills using CentOS 7. It describes how a Linux system is organized, and will introduce you to key command-line concepts you can practice on your own. It will guide you in performing basic system administration tasks and day-to-day operations in a Linux environment. You will learn core system administration skills for managing a system running CentOS 7 or a similar operating system, such as RHEL 7, Scientific Linux, and Oracle Linux. You will be able to perform installation, establish network connectivity and user and process management, modify file permissions, manage text files using the command line, and implement basic security administration after covering this book. By the end of this book, you will have a solid understanding of working with Linux using the command line.

Who is this book for?

Any individual who wants to learn how to use Linux as server or desktop in his environment. Whether you are a developer, budding system administrator, or tech lover with no previous Linux administration background, you will be able to start your journey in Linux using CentOS 7 with this book.

What you will learn

  • Understand file system hierarchy and essential command-line skills
  • Use Vi editor, I/O redirections and how to work with common text manipulating tools
  • Create, delete, modify user accounts and manage passwords and their aging policy
  • Manage file ownership, permissions, and ACL
  • Execute process management and monitoring on the command line
  • Validate and manage network configuration using nmcli
  • Manage remote logins using SSH and file transfer using SCP and Rsync
  • Understand system logging, how to control system services with systemd and systemctl, and manage firewalId
Estimated delivery fee Deliver to Greece

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 26, 2018
Length: 320 pages
Edition : 1st
Language : English
ISBN-13 : 9781789344875
Concepts :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Greece

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Publication date : Dec 26, 2018
Length: 320 pages
Edition : 1st
Language : English
ISBN-13 : 9781789344875
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.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
€189.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
€264.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 102.97
Linux Administration Cookbook
€36.99
CentOS Quick Start Guide
€32.99
Learn Linux Shell Scripting – Fundamentals of Bash 4.4
€32.99
Total 102.97 Stars icon
Banner background image

Table of Contents

10 Chapters
Getting Started with CentOS 7 Chevron down icon Chevron up icon
Command-Line and Filesystem Navigation Chevron down icon Chevron up icon
Managing Text Files Chevron down icon Chevron up icon
User and Group Management Chevron down icon Chevron up icon
Managing File Permissions Chevron down icon Chevron up icon
Process Management Chevron down icon Chevron up icon
Managing Networking in CentOS Chevron down icon Chevron up icon
Software Package Management Chevron down icon Chevron up icon
Overview of Essential Advance Utilities Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(1 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
AG Apr 07, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Probably the favorite book of mine on this topic so far. The content is very well structured and well written. Easy to follow. I will definitely recommend it to other people.
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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela