Learn Linux

Learn Linux

About the Book

About the Editors

Denis Zuev
Denis Zuev

Denis Zuev is a worldwide IT expert with 15+ yrs of experience. Some people in the industry think that he is not a human, and not without a reason. His areas of expertise are Networks, Servers, Storage, Cloud, Containers, DevOps, SDN/NFV, Automation, Programming, and WebDev, you name it. Denis is also known for his certification achievements. At the very moment, he holds following industry expert level certifications: RHCI, RHCA.VI, 6xCCIE, 4xJNCIE, CCDE, HCIE, VCIX-NV. Denis is a contractor and an instructor who works with top tech companies like Cisco, Juniper, Red Hat, ATT, etc.

Artemii Kropachev
Artemii Kropachev

Artemii Kropachev is a worldwide IT expert and international consultant with more than 15 years of experience. He has trained, guided and consulted hundreds of architects, engineer, developers, and IT experts around the world since 2001. Artemii’s architect-level experience covers Solutions development, Data Centers, Clouds, DevOps and automation, Middleware and SDN/NFV solutions built on top of any Red Hat or Open Source technologies. I also possess one of the highest Red Hat Certification level in the world - Red Hat Certified Architect in Infrastructure Level XX. Artemii’s life principles can be defined as “never stop learning” and “never stop knowledge sharing”. Artemii would love to share some of his experience and knowledge via this book.

Aleksandr Varlamov
Aleksandr Varlamov

Aleksandr Varlamov is an IT expert that stood at the origins of many public cloud platforms, high-load platforms, and challenging solutions. He is the mentor and lead of powerful and talented engineers, designed and implemented large-scale country-level projects, lead them to success. Aleksandr is the co-founder of technology solutions and start-ups. Evangelist of the most exciting technological solutions, author of a Russian translation of Nutanix Bible. His expertise covers Enterprise level architecture, Data Centers design, Public and Private Clouds, IaaS/PaaS/SaaS services. He appreciates and enjoys solving complex issues and challenges. Aleksandr says - every architecture solution should be stable, simple, and powerful.

Table of Contents

  • About this book
  • About this book
    • Authors
    • Reviewers
    • Goals
    • How it is structured
  • Setting up the training environment
    • Why training environment
    • Lab environment
    • Virtual Servers
    • VirtualBox
    • About Vagrant
    • Vagrant and VirtualBox installation
    • Working with Vagrant
    • Vagrantfile
    • Starting and stopping VMs
  • What is Linux
    • Linux is an operating system
    • Linux is a kernel
    • Linux history
    • Linux distros
    • Red Hat / CentOS / Fedora Linux
  • Managing local users and groups
    • Introduction to users and groups
    • Groups
    • Managing users
    • Managing groups
    • Creating user accounts with useradd
    • Modifying existing users with usermod
    • Removing users with userdel
    • Setting user password with passwd
    • Managing password aging
    • Group membership
  • RPM package management
  • DNF package management
  • Managing Linux Filesystems
  • Logical Volume Manager (lvm)
    • Partition limitations
    • LVM introduction
    • LVM advantages
    • Create the first volume
    • Managing physical volumes
    • Managing volume groups
    • Managing logical volumes
    • Resizing logical volumes
    • Moving LVM data from one disk to another
    • Logical and Physical extents
    • LVM and Device mapper relations
  • This is Roman’s test chapter
  • This is Roman’s test chapter outside of subdirectory
  • Linux CLI and bash basics
    • Navigating in CLI
    • CLI commands, options and arguments
    • Using TAB
    • Using “-h” or “–help”
    • Manual pages
    • man navigation
    • Searching for a man page
    • history command
    • Special characters “~”, “\”, “-” and others
    • Linux File globbing
    • Bash Environment Variables with export, set and unset
    • Command substitution and special character escape
    • Common Environment variables
    • Using aliases
    • CLI profiles and loading order of /etc/profile, .bashrc, etc.
    • Using . and source commands
  • Working with standard input, output, and error
    • Redirection with >, 1> and 2>
    • Difference between >> and >
    • Pipelines |
    • Redirecting with tee
  • Special text processing and Regex
    • Поиск шаблона с участием регулярных выражений
  • Scripting
    • Creating bash scripts
    • Program exit status
    • Strings
    • Maths
    • структуры управления, условное выполнение
    • оператор if
    • проверки файлов, строк
    • использование if/else
    • оператор выбора case
    • повторение, цикл for
    • for и последовательности
    • использование позиционных параметров
    • работа с параметрами содержащими пробелы
    • Functions
    • сценарии в командной строке, отладка сценариев
  • FIREWALL | WORK IN PROGRESS
  • https://www.unixmen.com/iptables-vs-firewalld/
  • https://en.wikipedia.org/wiki/D-Bus
  • NETWORKING | WORK IN PROGRESS
  • Managing processes | WORK IN PROGRESS
  • what that means is every process is being forked.
  • any questions?
  • kworker - kernel placeholder for worker threads.
  • http://manpages.org/chrt
  • man ps
  • sha1sum /dev/zero &
  • Managing Linux services with systemd | WORK IN PROGRESS
  • Special text processing and Regex
    • Поиск шаблона с участием регулярных выражений

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub