Book Image

Hands-On Linux Administration on Azure - Second Edition

By : Kamesh Ganesan, Rithin Skaria, Frederik Vos
Book Image

Hands-On Linux Administration on Azure - Second Edition

By: Kamesh Ganesan, Rithin Skaria, Frederik Vos

Overview of this book

Thanks to its flexibility in delivering scalable cloud solutions, Microsoft Azure is a suitable platform for managing all your workloads. You can use it to implement Linux virtual machines and containers, and to create applications in open source languages with open APIs. This Linux administration book first takes you through the fundamentals of Linux and Azure to prepare you for the more advanced Linux features in later chapters. With the help of real-world examples, you’ll learn how to deploy virtual machines (VMs) in Azure, expand their capabilities, and manage them efficiently. You will manage containers and use them to run applications reliably, and in the concluding chapter, you'll explore troubleshooting techniques using a variety of open source tools. By the end of this book, you'll be proficient in administering Linux on Azure and leveraging the tools required for deployment.
Table of Contents (14 chapters)
13
Index

Process Management

In the previous section, we discussed the filesystem in Linux. From a system administrator's perspective, managing processes is crucial. There will be scenarios where you'll need to start, stop, or even kill processes. Also, to avoid throttling your machine, you need to be cautious about the processes running on the system. Let's take a closer look at process management in Linux.

Processes are run by the Linux kernel, started by a user, or created by other processes. All processes are child processes of process number one, which will be covered in the next chapter. In this section, we'll learn to identify processes and how to send a signal to a process.

View Processes

If you start a program, a process ID (PID) is assigned to the process and a corresponding directory is created in /proc.

In Bash, you can find the PID of the current shell with:

echo $$

You can also find the PID of the parent shell:

echo $PPID

To find the...