Discussing Two Methods for Function Hooking on Linux

1. Background 1. Storytelling In the previous two articles, we introduced the powerful capabilities of Minhook on the Windows platform. In this article, we will discuss how to hook functions on Linux, introducing two methods. Lightweight LD_PRELOAD Interception LD_PRELOAD is a method of intercepting shared libraries. The advantage of this method is that it does … Read more

30-Day Challenge: In-Depth Study of Linux Server Program Development

In the previous article, “30-Day Challenge: Linux Server Program Development: Starting from Sockets,” we implemented a client that initiates a socket connection and a server that accepts a socket connection. However, for functions like socket, bind, listen, accept, and connect, we assume the program runs perfectly without any exceptions, which is clearly impossible. No matter … Read more

Comprehensive Guide to Linux Storage Management: Master Disk Management Techniques to Boost System Performance by 30%

Click the blue “Most Programmer” to follow me! Add a “Star“, every day at 18:03 to learn technology together Linux – Storage Management 1 Storage Methods 1. Classify disks based on the working principle of the disk Mechanical Disk HDD Solid State Disk SSD 2. Classify disks based on the hot-swappable method Hot-swappable Non-hot-swappable 3. … Read more

10 Essential Tools for Linux Operations: A Must-Know for Engineers

Author: Xiao Ming, Source: toutiao.com/article/7303178950443041295/ This article details 10 tools frequently used by operations engineers in their daily work, explaining the functionality, applicable scenarios, and outstanding features of each tool. 1. Shell Scripts Function: Primarily used for automating tasks and batch processing jobs. Applicable Scenarios: Frequently used for file processing, system management, and simple network … Read more

Viewing Tomcat Processes in Linux

1. View Tomcat process information ps -ef | grep tomcat Explanation: ps -ef lists detailed information about all processes, and grep ‘[c]atalina’ filters the lines containing ‘catalina’ (cleverly excluding the grep process itself). The output includes: process user, PID, startup command, and other key information. 2. Restart Tomcat # Navigate to Tomcat’s bin directorycd /path/to/tomcat/bin/# … Read more

Network Interface Priority and Metric in Linux

In embedded development and network operations, when devices connect to different networks through multiple network interfaces (such as Ethernet, Wi-Fi, and 4G modules), how can we ensure that data packets are transmitted through the “optimal path”? The core of this is the metric. This article will delve into this mechanism and introduce simple operational commands. … Read more

Automatically Transfer Files from Linux to Windows Server 2012 via SCP

1. The download link is as follows:https://github.com/PowerShell/Win32-OpenSSH/releases 2. Unzip the downloaded OpenSSH-Win64.zip to C:\Program Files\OpenSSH 3. Open PowerShell as an administrator and navigate to the unzipped directory:4. Run the installation script: powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 5. Modify the default port 6. Start the service, set it to start automatically, and check the listening port … Read more

Linux Command – pwd

Command Overview pwd is a fundamental yet important command in Linux/Unix systems, which stands for Print Working Directory. Its core function is to display the current directory path where the user is located, helping users quickly confirm their position in the file system. Usage The syntax of the pwd command is as follows pwd [options] … Read more

Detailed Explanation of Linux Commands – iptables and firewalld

Network security is the cornerstone of operations and maintenance, and mastering iptables and firewalld is an essential skill for every Linux administrator. This article will take you deep into the core principles and practical techniques of these two major firewall tools! 1. Introduction to iptables iptables is a command-line tool for managing firewall rules in … Read more

Why Linux Is Not Ready to Become a Desktop Operating System

This article is reprinted with permission from the public account CSDN (ID: CSDNnews) Author | Artem S. Tashkinov, Editor | Su Ma The latest data from traffic monitoring agency StatCounter indicates that as of December 2024, Linux holds only 4.13% of the global desktop operating system market share. This is in stark contrast to its … Read more