Understanding the Relationship Between Linux Threads, Cores, and CPUs, and Generating Timestamp Logs with RF from XML

Understanding the Relationship Between Linux Sockets, Cores, Threads, and CPUs **CPU(s)**: Represents the total number of logical CPUs in the system. It is calculated by multiplying the number of physical CPU cores, the number of threads per core, and the number of physical CPUs in the system. For example, a system with 2 physical CPUs … Read more

Mastering the Linux Triad: AWK – The Swiss Army Knife of Data Processing

1. Overview of AWK Basics # Basic Structure awk 'BEGIN{preprocessing} {line processing} END{postprocessing}' filename # Common Variables NR: line number | NF: number of fields | $0: entire line content | $1: first column 2. High-Frequency Practical Scenarios 1. Data Deduplication Example: Retaining Unique Lines # Deduplicate entire lines (keep the first occurrence) awk '!seen[$0]++' … Read more

Developing QT with Yocto File System on Linux | I.MX6ULL

01 The Yocto file system supports QT by default. So how do we run our QT programs on the Yocto file system? In this chapter, we will learn how to develop QT programs in a Yocto file system + Ubuntu environment. Note that the development environment is based on “qtcreator-3.5.1” (Ubuntu 16.04.6), and the library … Read more

Writing a Book on Linux Kernel Principles is No Easy Task

Hello everyone, I am Bug Jun~ In most people’s impression, writing a technical book is just about organizing what you know. However, when the subject is the Linux kernel, it becomes like performing ballet on a tightrope — one of the most complex open-source software in the world, a giant system composed of 28 million … Read more

Linux Web Service Log Statistics Commands

Table of Contents Apache Log Statistics Nginx Log Statistics Web Service Status Statistics Other Statistical Combinations Count Statistics This article collects some common statistics commands for Apache/Nginx server logs in Linux operations. Apache Log Statistics # List the top IPs with the most visits today [[email protected] httpd]# cut -d- -f 1 access_log | uniq -c … Read more

Detailed Usage of Linux Operation and Maintenance Monitoring Commands

Introduction Mastering system monitoring commands is a fundamental skill for Linux operation and maintenance. This note aims to organize and summarize commonly used monitoring commands along with their core functions and practical scenarios, facilitating quick review and learning to enhance system management and troubleshooting efficiency. 1. Comprehensive Performance Monitoring (CPU, Memory, Load) 1.<span>top</span> •Core Function: … Read more

How to Investigate a Linux System Breach?

When a company experiences a hacker intrusion; when the system crashes; when a security incident affects normal business operations, can you respond immediately and provide a solution? The following article will teach you the Linux emergency response process! Intrusion Investigation Approach 01 Apache Log Path Access Log: /var/log/apache2/access.log (Debian/Ubuntu) or /var/log/httpd/access_log (CentOS/RHEL) Nginx Log Path … Read more

Linux Shell (1) – Managing Processes

1. Exploring Processes in Linuxps Command The key to using the ps command is not to memorize all available options, but to remember the ones that are most useful to you. Most Linux system administrators will keep a set of commonly used options in mind to extract useful process information, while referring to documentation when … Read more

Linux pidof Command

Linux<span>pidof</span> Command 1. Overview In a Linux system, a process is an instance of a program that is currently running. Each process has a unique Process ID (PID). When performing system administration, performance debugging, resource control, and security protection, it is often necessary to know the PID corresponding to a specific program.<span>pidof</span> is a command … Read more

Comprehensive List of Common Linux Commands

1. Common Linux Commands and Their Meanings pwd: print work directory, prints the current directory and displays the absolute path of the current working directory. ps: process status, similar to the Windows Task Manager, commonly used parameters -auxf, ps -auxf are used to display process status. df: disk free, displays information about available disk space … Read more