KAHIBARO Bookshelves
Discord Login Register

3.5.3. Log files in /var/log

Understanding Log Files in `/var/log`

Linux stores most of its system and service logs in the /var/log directory. For system monitoring, this directory is one of the main places you will inspect to understand what is happening on a machine, diagnose problems, or check recent activity.

This chapter focuses on what is unique about /var/log, how log files are typically structured, and how you can read and manage them effectively.

The Role of `/var/log` in System Monitoring

The /var hierarchy is used for variable data that changes during normal system operation. Inside it, /var/log is specifically reserved for log data. Programs and services write status messages, warnings, and errors into files here.

Log files in /var/log are usually plain text. This lets you inspect them with familiar tools such as less, cat, tail, head, grep, and awk. Many command line monitoring workflows are built around reading these logs in real time or searching through them for relevant messages.

Key idea: /var/log is the central on disk location for traditional system and application logs that you can inspect directly as text files.

Typical Structure of `/var/log`

If you list the contents of /var/log, you will usually see a mix of individual log files and subdirectories. The exact set depends on your distribution and which services are installed, but some patterns are common.

There are general system wide logs, which record events from many parts of the system. There are service specific logs stored either directly under /var/log or in subdirectories, for example /var/log/apache2 for a web server, or /var/log/mysql for a database server.

On some modern systems that use systemd, many messages are stored in a binary journal that you access with journalctl. Even on such systems, you still often have traditional log files in /var/log, especially for services that have not fully integrated with the journal.

Common System Log Files

Several log files in /var/log are especially important for monitoring and troubleshooting. While exact names can vary by distribution, the following are commonly seen.

On many systems you will find a main system log file such as /var/log/syslog or /var/log/messages. This file usually contains general information, warnings, and errors from many parts of the system. It is a first stop when something seems wrong, because it collects broad system activity in one place.

Authentication related events are usually logged in files such as /var/log/auth.log or /var/log/secure. These records include login attempts, sudo usage, and other security relevant events. For monitoring security, failed logins or repeated attempts from the same IP address are often visible here.

Kernel specific messages, such as hardware detection or kernel warnings, can appear in /var/log/kern.log or sometimes are mixed into the main system log. When diagnosing driver issues or hardware problems, kernel logs are very useful.

Boot related information can appear in dedicated files such as /var/log/boot.log or in the general system logs. If the system has trouble starting a service at boot, messages in these files may explain why.

System resource usage, especially from processes that are started by cron, might be logged in /var/log/cron or included in a general system log. This can help you verify that scheduled jobs are running and to check whether they are producing errors.

Service Specific Log Directories

Many services create their own log directories inside /var/log. The exact names depend on the software and distribution conventions, but the pattern is consistent.

For example, web servers often log to subdirectories like /var/log/apache2 or /var/log/httpd. In these directories you typically find separate access and error logs, which are very important when monitoring web traffic or debugging failed HTTP requests.

Database servers such as MySQL or PostgreSQL usually have logging locations such as /var/log/mysql or /var/log/postgresql. These logs can show connection attempts, query errors, and other database specific events.

Mail servers, job schedulers, VPNs, and other network services also tend to keep logs under their own subdirectories. When monitoring a particular service, check whether it has its own log directory under /var/log and learn the names of its main log files.

Log File Formats and Timestamps

Most logs in /var/log use a simple line based text format. Each line usually contains a timestamp, the name of the program or service that generated the message, and the message text itself.

You often see timestamps in a human readable form. For example, a line in a classic log file might begin with something like:

Jan  7 13:45:12 hostname program_name[1234]: Informational message here

The exact format can vary between services. Some use more structured formats, such as key value pairs or JSON like lines. For basic monitoring, recognize where the timestamp and program name appear so that you can quickly see when something happened and which process wrote the message.

When using grep or other tools to filter logs, you often combine searches on the program name or severity keyword and the date or time. Understanding the structure of each log file makes those searches more effective.

Viewing Logs in Real Time

One of the most useful monitoring techniques is watching a log file as messages are added to it. For traditional text logs in /var/log, you can use commands that show new lines as they appear.

A common command is:

tail -f /var/log/syslog

This displays the end of the file and then continues to print new lines. For some systems you may replace /var/log/syslog with /var/log/messages or another active log file. This is helpful when you reproduce a problem and want to see what the system logs at the exact moment it happens.

If you want to follow several logs at once, you can use tools that combine streams, or you can open multiple terminal windows, each using tail -f on a different file. In more advanced setups you might use specialized log viewers or aggregators, but the basic idea of following text logs in real time starts with /var/log.

Log Rotation in `/var/log`

Log files grow over time. Without any control, they could consume a large amount of disk space, which is risky for a production system. To prevent this, Linux systems use log rotation, usually configured through tools like logrotate.

Log rotation periodically moves current log files to new names and starts fresh empty ones. For example, a file such as /var/log/syslog might be rotated to /var/log/syslog.1, and older compressed versions might appear as /var/log/syslog.2.gz, /var/log/syslog.3.gz, and so on.

Important rule: When you are investigating an issue that occurred in the past, always check both the current log file and rotated log files such as file.1, file.2.gz inside /var/log.

You can read compressed rotated logs by using tools that handle compression transparently, or by decompressing them first. The presence of multiple generations of rotated logs allows you to look back in time over a longer period.

For monitoring, rotation has two important effects. First, you must know that older events might be in archived files instead of the current one. Second, when you use tail -f and a log is rotated, some tools can continue following the renamed file, while others may need to be restarted. Understanding that rotation happens in /var/log helps you interpret gaps or apparent restarts in log content.

Permissions and Access to `/var/log`

Since logs often contain sensitive information, such as usernames, IP addresses, and sometimes error messages that include file paths or partial data, file permissions in /var/log are carefully set.

Many log files are readable only by the root user or specific service accounts. When you work as an administrator, you will often need elevated privileges to read certain logs, especially security related ones. For example, an unprivileged user may not be allowed to read authentication logs, while root can read everything in /var/log.

When monitoring a system, always respect these permissions and consider privacy and security implications. Logs can be invaluable for understanding system behavior, but they must also be protected because they can reveal details about the system and its users.

Using `/var/log` in Troubleshooting Workflows

In practical monitoring and troubleshooting, /var/log is part of a simple but powerful workflow. When a problem or alert appears, start by identifying which component is involved. Then look for that component’s logs in /var/log, either in a general system log or in a service specific file.

You then search around the time the problem occurred, often by combining time information with grep filters on keywords such as "error", "fail", or the name of the feature that is misbehaving. You may use tail -f while reproducing the issue, to watch new log lines as the failure happens.

The habit of going directly to the right file in /var/log speeds up diagnosis considerably. Over time, as you learn the typical layout of /var/log on your distribution, you can quickly locate the relevant logs and identify patterns such as recurring errors, warnings that precede failures, or unusual authentication activity.

Relationship Between `/var/log` and Centralized Logging

On larger systems or in networked environments, logs from /var/log are often collected and sent to remote logging servers or aggregators. Even in such setups, applications frequently still write locally to /var/log, and the centralization system reads from there.

For monitoring, this means that local inspection of /var/log gives an immediate, machine specific view, while external tools may present combined data from many machines. Understanding the role of /var/log as the local source of truth helps you verify whether centralized views are complete and up to date.

Even if you rely on graphical dashboards, the plain text files in /var/log remain a critical fallback and reference point when you want direct, low level insight into system behavior.

Views: 0

Comments

Please login to add a comment.

Don't have an account? Register now!

Where to Move

Move chapter:

  • ☰ 1. PART I — Linux Fundamentals (Beginner)
    • ☰ 1.1. What Is Linux?
      • ☰ 1.1.1. What is an operating system
        • ☰ 1.1.2. History of Unix and Linux
          • ☰ 1.1.3. The Linux kernel
            • ☰ 1.1.4. GNU and the Free Software Foundation
              • ☰ 1.1.5. Open source philosophy
                • ☰ 1.1.6. Where Linux is used today
                  • ☰ 1.1.7. Desktop vs server vs embedded Linux
                  • ☰ 1.2. Choosing a Linux Distribution
                    • ☰ 1.2.1. What is a distribution?
                      • ☰ 1.2.2. Package formats (deb, rpm, pacman)
                        • ☰ 1.2.3. Popular distributions
                          • ☰ 1.2.3.1. Ubuntu
                            • ☰ 1.2.3.2. Debian
                              • ☰ 1.2.3.3. Fedora
                                • ☰ 1.2.3.4. Arch Linux
                                  • ☰ 1.2.3.5. openSUSE
                                  • ☰ 1.2.4. Rolling vs fixed release
                                    • ☰ 1.2.5. Choosing the right distribution
                                    • ☰ 1.3. Installing Linux
                                      • ☰ 1.3.1. Creating a bootable USB
                                        • ☰ 1.3.2. Installing on real hardware
                                          • ☰ 1.3.3. Dual booting with Windows
                                            • ☰ 1.3.4. Installing in a virtual machine
                                              • ☰ 1.3.5. Partitioning
                                                • ☰ 1.3.5.1. `/` (root)
                                                  • ☰ 1.3.5.2. `/home`
                                                    • ☰ 1.3.5.3. Swap
                                                    • ☰ 1.3.6. First-time setup
                                                    • ☰ 1.4. First Steps After Installation
                                                      • ☰ 1.4.1. Desktop environment basics
                                                        • ☰ 1.4.2. Updating the system
                                                          • ☰ 1.4.3. Installing essential tools
                                                            • ☰ 1.4.4. Setting up drivers
                                                              • ☰ 1.4.5. Using the software center
                                                              • ☰ 1.5. Linux Filesystem Hierarchy
                                                                • ☰ 1.5.1. Overview of the root filesystem
                                                                  • ☰ 1.5.2. Important directories
                                                                    • ☰ 1.5.2.1. `/etc`
                                                                      • ☰ 1.5.2.2. `/var`
                                                                        • ☰ 1.5.2.3. `/usr`
                                                                          • ☰ 1.5.2.4. `/tmp`
                                                                            • ☰ 1.5.2.5. `/dev`
                                                                              • ☰ 1.5.2.6. `/proc`
                                                                                • ☰ 1.5.2.7. `/sys`
                                                                                • ☰ 1.5.3. File types
                                                                                  • ☰ 1.5.4. Absolute vs relative paths
                                                                                  • ☰ 1.6. The Linux Graphical Environment
                                                                                    • ☰ 1.6.1. GNOME
                                                                                      • ☰ 1.6.2. KDE Plasma
                                                                                        • ☰ 1.6.3. XFCE
                                                                                          • ☰ 1.6.4. File managers
                                                                                            • ☰ 1.6.5. System settings
                                                                                              • ☰ 1.6.6. Workspaces and window management
                                                                                            • ☰ 2. PART II — Command Line Essentials
                                                                                              • ☰ 2.1. Terminal and Shell Basics
                                                                                                • ☰ 2.1.1. What is a shell?
                                                                                                  • ☰ 2.1.2. Bash vs Zsh vs Fish
                                                                                                    • ☰ 2.1.3. Command structure
                                                                                                      • ☰ 2.1.4. Environment variables
                                                                                                        • ☰ 2.1.5. Getting help
                                                                                                          • ☰ 2.1.6. Command history and autocomplete
                                                                                                          • ☰ 2.2. Files and Directories
                                                                                                            • ☰ 2.2.1. Listing files
                                                                                                              • ☰ 2.2.2. Navigating directories
                                                                                                                • ☰ 2.2.3. File operations
                                                                                                                  • ☰ 2.2.4. Wildcards and globbing
                                                                                                                    • ☰ 2.2.5. Searching files
                                                                                                                    • ☰ 2.3. Viewing and Editing Text Files
                                                                                                                      • ☰ 2.3.1. Viewing tools
                                                                                                                        • ☰ 2.3.2. Editing with nano
                                                                                                                          • ☰ 2.3.3. Introduction to vim
                                                                                                                            • ☰ 2.3.4. Input/output redirection
                                                                                                                            • ☰ 2.4. Users, Permissions, and Ownership
                                                                                                                              • ☰ 2.4.1. Users and groups
                                                                                                                                • ☰ 2.4.2. Permission types (r, w, x)
                                                                                                                                  • ☰ 2.4.3. Changing permissions
                                                                                                                                    • ☰ 2.4.4. Changing ownership
                                                                                                                                      • ☰ 2.4.5. Using sudo
                                                                                                                                      • ☰ 2.5. Package Management
                                                                                                                                        • ☰ 2.5.1. Software repositories
                                                                                                                                          • ☰ 2.5.2. APT (Debian/Ubuntu)
                                                                                                                                            • ☰ 2.5.3. DNF (Fedora/RHEL)
                                                                                                                                              • ☰ 2.5.4. Pacman (Arch Linux)
                                                                                                                                                • ☰ 2.5.5. Snap, Flatpak, AppImage
                                                                                                                                                  • ☰ 2.5.6. System upgrades
                                                                                                                                                  • ☰ 2.6. Working with Processes
                                                                                                                                                    • ☰ 2.6.1. What is a process?
                                                                                                                                                      • ☰ 2.6.2. Viewing processes
                                                                                                                                                        • ☰ 2.6.3. Killing processes
                                                                                                                                                          • ☰ 2.6.4. Foreground and background jobs
                                                                                                                                                            • ☰ 2.6.5. System services and daemons
                                                                                                                                                            • ☰ 2.7. Introduction to Shell Scripting
                                                                                                                                                              • ☰ 2.7.1. Writing your first script
                                                                                                                                                                • ☰ 2.7.2. Variables
                                                                                                                                                                  • ☰ 2.7.3. Conditionals
                                                                                                                                                                    • ☰ 2.7.4. Loops
                                                                                                                                                                      • ☰ 2.7.5. Functions
                                                                                                                                                                        • ☰ 2.7.6. Making scripts executable
                                                                                                                                                                      • ☰ 3. PART III — Intermediate System Administration
                                                                                                                                                                        • ☰ 3.1. Systemd and Service Management
                                                                                                                                                                          • ☰ 3.1.1. What is systemd?
                                                                                                                                                                            • ☰ 3.1.2. Managing services (systemctl)
                                                                                                                                                                              • ☰ 3.1.3. Boot targets
                                                                                                                                                                                • ☰ 3.1.4. System logs (journalctl)
                                                                                                                                                                                  • ☰ 3.1.5. Creating custom services
                                                                                                                                                                                  • ☰ 3.2. Storage and Filesystems
                                                                                                                                                                                    • ☰ 3.2.1. Devices and partitions
                                                                                                                                                                                      • ☰ 3.2.2. Filesystems (EXT4, XFS, Btrfs)
                                                                                                                                                                                        • ☰ 3.2.3. Mounting and unmounting
                                                                                                                                                                                          • ☰ 3.2.4. Disk usage tools
                                                                                                                                                                                            • ☰ 3.2.5. Archiving and compression (tar, gzip, xz)
                                                                                                                                                                                            • ☰ 3.3. Networking Fundamentals
                                                                                                                                                                                              • ☰ 3.3.1. IP addressing
                                                                                                                                                                                                • ☰ 3.3.2. Subnets and routing
                                                                                                                                                                                                  • ☰ 3.3.3. DNS and hostnames
                                                                                                                                                                                                    • ☰ 3.3.4. Networking tools (ip, ss, ping)
                                                                                                                                                                                                      • ☰ 3.3.5. Editing network configuration files
                                                                                                                                                                                                      • ☰ 3.4. User and Group Administration
                                                                                                                                                                                                        • ☰ 3.4.1. User information files
                                                                                                                                                                                                          • ☰ 3.4.2. Creating and removing users
                                                                                                                                                                                                            • ☰ 3.4.3. Password policies
                                                                                                                                                                                                              • ☰ 3.4.4. Managing groups
                                                                                                                                                                                                                • ☰ 3.4.5. Shell configuration
                                                                                                                                                                                                                • ☰ 3.5. System Monitoring
                                                                                                                                                                                                                  • ☰ 3.5.1. CPU and memory monitoring
                                                                                                                                                                                                                    • ☰ 3.5.2. Disk and I/O monitoring
                                                                                                                                                                                                                      • ☰ 3.5.3. Log files in /var/log
                                                                                                                                                                                                                        • ☰ 3.5.4. Boot performance
                                                                                                                                                                                                                          • ☰ 3.5.5. Monitoring running services
                                                                                                                                                                                                                          • ☰ 3.6. Backup and Restore
                                                                                                                                                                                                                            • ☰ 3.6.1. Backup strategies
                                                                                                                                                                                                                              • ☰ 3.6.2. Using rsync
                                                                                                                                                                                                                                • ☰ 3.6.3. Creating tar archives
                                                                                                                                                                                                                                  • ☰ 3.6.4. Using snapshot systems
                                                                                                                                                                                                                                    • ☰ 3.6.5. Automating backups
                                                                                                                                                                                                                                    • ☰ 3.7. Basic System Security
                                                                                                                                                                                                                                      • ☰ 3.7.1. Firewalls (UFW, firewalld)
                                                                                                                                                                                                                                        • ☰ 3.7.2. Authentication policies
                                                                                                                                                                                                                                          • ☰ 3.7.3. SSH security basics
                                                                                                                                                                                                                                            • ☰ 3.7.4. SELinux and AppArmor overview
                                                                                                                                                                                                                                              • ☰ 3.7.5. Intrusion detection basics
                                                                                                                                                                                                                                            • ☰ 4. PART IV — Advanced Linux Skills
                                                                                                                                                                                                                                              • ☰ 4.1. Advanced Shell Scripting
                                                                                                                                                                                                                                                • ☰ 4.1.1. Script structure
                                                                                                                                                                                                                                                  • ☰ 4.1.2. Error handling
                                                                                                                                                                                                                                                    • ☰ 4.1.3. Debugging scripts
                                                                                                                                                                                                                                                      • ☰ 4.1.4. Scheduled tasks (cron)
                                                                                                                                                                                                                                                      • ☰ 4.2. The Linux Boot Process
                                                                                                                                                                                                                                                        • ☰ 4.2.1. BIOS vs UEFI
                                                                                                                                                                                                                                                          • ☰ 4.2.2. Understanding GRUB2
                                                                                                                                                                                                                                                            • ☰ 4.2.3. Kernel loading
                                                                                                                                                                                                                                                              • ☰ 4.2.4. initramfs
                                                                                                                                                                                                                                                                • ☰ 4.2.5. Troubleshooting boot issues
                                                                                                                                                                                                                                                                • ☰ 4.3. Kernel Management
                                                                                                                                                                                                                                                                  • ☰ 4.3.1. What is the kernel?
                                                                                                                                                                                                                                                                    • ☰ 4.3.2. Kernel modules
                                                                                                                                                                                                                                                                      • ☰ 4.3.3. Kernel parameters
                                                                                                                                                                                                                                                                        • ☰ 4.3.4. Compiling a custom kernel
                                                                                                                                                                                                                                                                          • ☰ 4.3.5. Kernel versioning and updates
                                                                                                                                                                                                                                                                          • ☰ 4.4. Advanced Filesystems and Storage
                                                                                                                                                                                                                                                                            • ☰ 4.4.1. LVM concepts
                                                                                                                                                                                                                                                                              • ☰ 4.4.2. Logical volumes
                                                                                                                                                                                                                                                                                • ☰ 4.4.3. RAID levels
                                                                                                                                                                                                                                                                                  • ☰ 4.4.4. Full disk encryption (LUKS)
                                                                                                                                                                                                                                                                                    • ☰ 4.4.5. Snapshots and rollbacks
                                                                                                                                                                                                                                                                                    • ☰ 4.5. Network Services
                                                                                                                                                                                                                                                                                      • ☰ 4.5.1. SSH server configuration
                                                                                                                                                                                                                                                                                        • ☰ 4.5.2. NFS
                                                                                                                                                                                                                                                                                          • ☰ 4.5.3. Samba
                                                                                                                                                                                                                                                                                            • ☰ 4.5.4. FTP/SFTP
                                                                                                                                                                                                                                                                                              • ☰ 4.5.5. Firewalls in depth
                                                                                                                                                                                                                                                                                              • ☰ 4.6. Logging and Auditing
                                                                                                                                                                                                                                                                                                • ☰ 4.6.1. Systemd logging
                                                                                                                                                                                                                                                                                                  • ☰ 4.6.2. Traditional logs in /var/log
                                                                                                                                                                                                                                                                                                    • ☰ 4.6.3. Auditd
                                                                                                                                                                                                                                                                                                      • ☰ 4.6.4. Log rotation
                                                                                                                                                                                                                                                                                                        • ☰ 4.6.5. Creating custom logs
                                                                                                                                                                                                                                                                                                        • ☰ 4.7. Virtualization and Containers
                                                                                                                                                                                                                                                                                                          • ☰ 4.7.1. Virtual machines (KVM/QEMU)
                                                                                                                                                                                                                                                                                                            • ☰ 4.7.2. Linux containers (LXC/LXD)
                                                                                                                                                                                                                                                                                                              • ☰ 4.7.3. Docker fundamentals
                                                                                                                                                                                                                                                                                                                • ☰ 4.7.4. Podman vs Docker
                                                                                                                                                                                                                                                                                                                  • ☰ 4.7.5. Container networking
                                                                                                                                                                                                                                                                                                                • ☰ 5. PART V — Server Administration (Expert)
                                                                                                                                                                                                                                                                                                                  • ☰ 5.1. Web Servers
                                                                                                                                                                                                                                                                                                                    • ☰ 5.1.1. Apache basics
                                                                                                                                                                                                                                                                                                                      • ☰ 5.1.2. Nginx basics
                                                                                                                                                                                                                                                                                                                        • ☰ 5.1.3. Virtual hosts
                                                                                                                                                                                                                                                                                                                          • ☰ 5.1.4. SSL/HTTPS
                                                                                                                                                                                                                                                                                                                            • ☰ 5.1.5. Reverse proxy concepts
                                                                                                                                                                                                                                                                                                                            • ☰ 5.2. Database Servers
                                                                                                                                                                                                                                                                                                                              • ☰ 5.2.1. MySQL/MariaDB
                                                                                                                                                                                                                                                                                                                                • ☰ 5.2.2. PostgreSQL
                                                                                                                                                                                                                                                                                                                                  • ☰ 5.2.3. Database backup strategies
                                                                                                                                                                                                                                                                                                                                    • ☰ 5.2.4. Database hardening
                                                                                                                                                                                                                                                                                                                                    • ☰ 5.3. Email Services
                                                                                                                                                                                                                                                                                                                                      • ☰ 5.3.1. SMTP fundamentals
                                                                                                                                                                                                                                                                                                                                        • ☰ 5.3.2. Configuring Postfix
                                                                                                                                                                                                                                                                                                                                          • ☰ 5.3.3. IMAP/POP3 with Dovecot
                                                                                                                                                                                                                                                                                                                                            • ☰ 5.3.4. Spam filtering systems
                                                                                                                                                                                                                                                                                                                                              • ☰ 5.3.5. Email routing concepts
                                                                                                                                                                                                                                                                                                                                              • ☰ 5.4. DNS and DHCP
                                                                                                                                                                                                                                                                                                                                                • ☰ 5.4.1. Understanding DNS
                                                                                                                                                                                                                                                                                                                                                  • ☰ 5.4.2. Setting up BIND
                                                                                                                                                                                                                                                                                                                                                    • ☰ 5.4.3. DNS zones and records
                                                                                                                                                                                                                                                                                                                                                      • ☰ 5.4.4. DHCP server configuration
                                                                                                                                                                                                                                                                                                                                                        • ☰ 5.4.5. DNS troubleshooting
                                                                                                                                                                                                                                                                                                                                                        • ☰ 5.5. Load Balancing
                                                                                                                                                                                                                                                                                                                                                          • ☰ 5.5.1. HAProxy fundamentals
                                                                                                                                                                                                                                                                                                                                                            • ☰ 5.5.2. Nginx as a load balancer
                                                                                                                                                                                                                                                                                                                                                              • ☰ 5.5.3. Session persistence
                                                                                                                                                                                                                                                                                                                                                                • ☰ 5.5.4. High availability concepts
                                                                                                                                                                                                                                                                                                                                                                • ☰ 5.6. Clustering and High Availability
                                                                                                                                                                                                                                                                                                                                                                  • ☰ 5.6.1. Failover principles
                                                                                                                                                                                                                                                                                                                                                                    • ☰ 5.6.2. Pacemaker
                                                                                                                                                                                                                                                                                                                                                                      • ☰ 5.6.3. Corosync
                                                                                                                                                                                                                                                                                                                                                                        • ☰ 5.6.4. Cluster resource management
                                                                                                                                                                                                                                                                                                                                                                          • ☰ 5.6.5. Distributed filesystems
                                                                                                                                                                                                                                                                                                                                                                        • ☰ 6. PART VI — DevOps and Cloud
                                                                                                                                                                                                                                                                                                                                                                          • ☰ 6.1. Linux for Developers
                                                                                                                                                                                                                                                                                                                                                                            • ☰ 6.1.1. Compiler toolchains (gcc, make)
                                                                                                                                                                                                                                                                                                                                                                              • ☰ 6.1.2. Git fundamentals
                                                                                                                                                                                                                                                                                                                                                                                • ☰ 6.1.3. Debugging tools (gdb, strace)
                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 6.1.4. Build automation (Makefile, CMake)
                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 6.2. DevOps on Linux
                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 6.2.1. CI/CD principles
                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 6.2.2. YAML basics
                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 6.2.3. GitHub Actions
                                                                                                                                                                                                                                                                                                                                                                                          • ☰ 6.2.4. GitLab CI/CD
                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 6.2.5. Automated testing
                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 6.3. Configuration Management
                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 6.3.1. Ansible basics
                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 6.3.2. Playbooks and inventories
                                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 6.3.3. Puppet overview
                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 6.3.4. Chef overview
                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 6.4. Infrastructure as Code
                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 6.4.1. Terraform fundamentals
                                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 6.4.2. Providers and resources
                                                                                                                                                                                                                                                                                                                                                                                                          • ☰ 6.4.3. Modules
                                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 6.4.4. Cloud provisioning with Terraform
                                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 6.5. Cloud Computing with Linux
                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 6.5.1. Linux on AWS
                                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 6.5.2. Linux on Azure
                                                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 6.5.3. Linux on GCP
                                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 6.5.4. Cloud networking basics
                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 6.5.5. Scaling and monitoring
                                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 7. PART VII — Master Topics
                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.1. Hardening a Linux System
                                                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 7.1.1. Hardening principles
                                                                                                                                                                                                                                                                                                                                                                                                                          • ☰ 7.1.2. Kernel hardening
                                                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 7.1.3. File integrity monitoring
                                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 7.1.4. Vulnerability scanning
                                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 7.2. Forensics and Incident Response
                                                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 7.2.1. Collecting evidence
                                                                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 7.2.2. Log and file recovery
                                                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 7.2.3. Analyzing suspicious processes
                                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.2.4. Incident response workflow
                                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.3. Performance Tuning
                                                                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 7.3.1. CPU tuning
                                                                                                                                                                                                                                                                                                                                                                                                                                          • ☰ 7.3.2. Memory tuning
                                                                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 7.3.3. Disk and I/O optimization
                                                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 7.3.4. Profiling tools
                                                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 7.4. Writing Linux Tools
                                                                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 7.4.1. Bash-based tools
                                                                                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 7.4.2. Python command-line tools
                                                                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 7.4.3. Writing tools in C
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.4.4. Using Linux system APIs
                                                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.5. Linux Internals
                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 7.5.1. Process lifecycle
                                                                                                                                                                                                                                                                                                                                                                                                                                                          • ☰ 7.5.2. Memory management
                                                                                                                                                                                                                                                                                                                                                                                                                                                            • ☰ 7.5.3. Signals and IPC
                                                                                                                                                                                                                                                                                                                                                                                                                                                              • ☰ 7.5.4. Namespaces
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 7.5.5. cgroups
                                                                                                                                                                                                                                                                                                                                                                                                                                                                • ☰ 7.6. Becoming a Linux Expert
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  • ☰ 7.6.1. Career paths
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    • ☰ 7.6.2. Certifications (RHCE, LFCS, LPIC)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      • ☰ 7.6.3. Building a homelab
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        • ☰ 7.6.4. Contributing to open source