Understanding the Differences in File Size Reporting: Why `ls` and `du` Show Different Results in Linux

Understanding the Differences in File Size Reporting: Why `ls` and `du` Show Different Results in Linux

Understanding the Differences in File Size Reporting: Why ls and du Show Different Results in Linux In Linux system administration, checking file sizes is a common operation. But have you ever encountered the following confusion? Using ls shows the file as 1GB, while du only displays 20MB? Why is there such a discrepancy? This article … Read more

Common Tools for the Linux Command Line

Common Tools for the Linux Command Line

In the Linux command line, there are numerous shortcuts (often referred to as keyboard bindings or hotkeys) that can significantly enhance efficiency. These shortcuts are primarily provided by Bash (or other shells like Zsh) and the underlying readline library. Below are some of the most commonly used and useful command line shortcuts categorized: 1. In-line … Read more

Basic Linux Commands | The grep Command – Your Text Search Master

Basic Linux Commands | The grep Command - Your Text Search Master

grep Command – Your Text Search Master Command Overview In the world of Linux, the grep command is like a master of the art of searching. Its name comes from “Global Regular Expression Print,” which means it can perform global searches in text using regular expressions. This search master can not only find content in … Read more

How to Troubleshoot Network Packet Loss in Linux? Finally Understood!

How to Troubleshoot Network Packet Loss in Linux? Finally Understood!

1. Background: From the image, you can see the potential locations where packet loss may occur, which actually spans the entire network protocol stack. In other words, there is a possibility of packet loss at every stage. • Between two VMs, transmission failures may occur due to errors such as network congestion or line faults; … Read more

Dynamic Debugging in the Linux Kernel: A Powerful Tool for Runtime Debugging

Dynamic Debugging in the Linux Kernel: A Powerful Tool for Runtime Debugging

Introduction Previously, we discussed Linux Kernel Debugging: The Powerful printk (Part 2) Linux Kernel Debugging: The Powerful printk (Part 3) In those articles, we introduced pr_debug and dev_dbg. Below is the definition of dev_dbg: #if defined(CONFIG_DYNAMIC_DEBUG) || \ (defined(CONFIG_DYNAMIC_DEBUG_CORE) && defined(DYNAMIC_DEBUG_MODULE)) #define dev_dbg(dev, fmt, …) \ dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__) #elif defined(DEBUG) #define dev_dbg(dev, fmt, …) … Read more

Updated Version of Linux Graphical Batch Operation Inspection Tool

Updated Version of Linux Graphical Batch Operation Inspection Tool

Updated Version of Linux Graphical Batch Operation Inspection Tool Function Description: Real-time Linux monitoring tool (similar to Zabbix) Batch command execution, upload, and download for Linux (similar to Ansible) Graphical interface operation for Linux Download the Linux Graphical Operation Tool Link 1: https://pan.baidu.com/s/1EKLNNxSKChRPEhqnNlG0QA?pwd=bft9 Extraction Code: bft9 Link 2: https://download.csdn.net/download/weixin_48922367/90573739

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Download MinIO Server Files This step describes how to deploy MinIO in a single node single disk (SNSD) configuration for early development and evaluation. The SNSD deployment does not provide any additional reliability or availability beyond what is offered by the underlying storage volume implementation (RAID, LVM, ZFS, etc.). The SNSD deployment uses a zero-parity … Read more

Packaging Go Projects on Linux Operating System

Packaging Go Projects on Linux Operating System

Click the blue text above ● Follow Jie Chuang Yuan Linux When packaging a project in Go, it is a common requirement to package dependencies together to ensure that it runs without errors due to missing dependencies on other machines. Here are some methods to achieve this: Method 1: Using Go Modules Starting from Go … Read more

Getting Started! Running Your First eBPF Program on Linux with bcc

Getting Started! Running Your First eBPF Program on Linux with bcc

This article will guide you step by step in creating and running your first eBPF program on a Linux system, which outputs “Hello World!” when the execve system call occurs. The following content includes environment setup (mainly for MacOS; for Windows, you can install a Linux virtual machine using VMware and skip the environment setup … Read more

Can the Maximum Number of TCP Connections in Linux Exceed 65535? How Do Servers Handle Millions of Concurrent Connections?

Can the Maximum Number of TCP Connections in Linux Exceed 65535? How Do Servers Handle Millions of Concurrent Connections?

Official ChatGPT 4.0 and Claude Pro available for stable after-sales service Author: Qianlang Langben Langliu Link: https://www.jianshu.com/p/f070212024a1 What is the maximum number of concurrent TCP connections? First, the 65535 connections mentioned in the question refer to the limit on the number of client connections. In TCP applications, the server listens on a fixed port, and … Read more