Book Image

Mastering Linux Administration

By : Alexandru Calcatinge, Julian Balog
Book Image

Mastering Linux Administration

By: Alexandru Calcatinge, Julian Balog

Overview of this book

Linux plays a significant role in modern data center management and provides great versatility in deploying and managing your workloads on-premises and in the cloud. This book covers the important topics you need to know about for your everyday Linux administration tasks. The book starts by helping you understand the Linux command line and how to work with files, packages, and filesystems. You'll then begin administering network services and hardening security, and learn about cloud computing, containers, and orchestration. Once you've learned how to work with the command line, you'll explore the essential Linux commands for managing users, processes, and daemons and discover how to secure your Linux environment using application security frameworks and firewall managers. As you advance through the chapters, you'll work with containers, hypervisors, virtual machines, Ansible, and Kubernetes. You'll also learn how to deploy Linux to the cloud using AWS and Azure. By the end of this Linux book, you'll be well-versed with Linux and have mastered everyday administrative tasks using workflows spanning from on-premises to the cloud. If you also find yourself adopting DevOps practices in the process, we'll consider our mission accomplished.
Table of Contents (20 chapters)
1
Section 1: Linux Basic Administration
7
Section 2: Advanced Linux Server Administration
13
Section 3: Cloud Administration

Questions

Let's try to wrap up some of the essential concepts we learned about in this chapter by completing the following quiz:

  1. What are idempotent operations or commands in Ansible?
  2. You want to set up passwordless authentication with your managed hosts. What steps should you follow?
  3. What is the ad hoc command for checking the communication with all your managed hosts?
  4. Enumerate a few Ansible modules. Try to think of a configuration management scenario where you could use each module.
  5. What is the ad hoc command for running an arbitrary shell operation or process on a remote host, such as cat /etc/passwd?
  6. Write a simple playbook with a single task using the ping module.
  7. Write a playbook for copying your current directory to a remote host.
  8. You must deploy secret API keys to every host into a well-defined location, each host with its own API key. How would you design and implement this functionality?
  9. Think of a simple playbook that monitors...