Using fuser: Finding and Terminating Processes in Linux by File, Directory, or Port

Using fuser: Finding and Terminating Processes in Linux by File, Directory, or Port

One of the most important tasks in Linux system administration is process management, which involves several operations such as monitoring processes, sending signals to processes, and setting process priorities on the system. There are many Linux tools/utilities for monitoring and handling processes, such as top, ps, pgrep, kill, killall, nice, etc. This article will explore … Read more

Essential Linux Commands for Backend Developers: Network/Process/Server Resource Management

Essential Linux Commands for Backend Developers: Network/Process/Server Resource Management

1. Network Management Commands 1. <span>ping</span>: Network Connectivity Test # Test basic connectivity (send 4 packets) ping -c 4 api.example.com # Continuous testing (test 10 times per second) ping -i 0.1 -c 10 api.example.com Application Scenario: Use <span>ping</span> to confirm network connectivity. If ping fails, it indicates a network issue; if it pings successfully but … Read more

In-Depth Reading: Chapter 6 of ‘Linux Device Drivers’ – Advanced Character Drivers

In-Depth Reading: Chapter 6 of 'Linux Device Drivers' - Advanced Character Drivers

Hello, everyone, I am Programmer MM. This article is approximately 2400 words. Recently, I finished reading Chapter 6 of ‘Linux Device Drivers’, and I have organized my notes from this chapter. In this chapter, the development of device drivers has progressed from simple data transfer to an advanced stage with complete synchronization and control capabilities. … Read more

Core Components of the Linux System

The Linux system consists of the following core components: Linux Kernel DefinitionThe kernel is the core of the operating system, responsible for managing hardware resources (such as CPU, memory, disk, network, etc.) and providing basic services to applications. Functions Process Management: Creating, scheduling, and terminating processes. Memory Management: Allocating and reclaiming memory. File System Management: … Read more

Summary of Commonly Used Linux Commands for Operations and Maintenance Personnel

Click on "Programmer Interview", select "Star🔝" As operations and maintenance personnel, these commonly used commands are essential. Mastering these commands will significantly improve work efficiency. 1. File and Directory The cd command is used to switch the current directory. Its parameter is the path to the directory to switch to, which can be an absolute … Read more

Introduction to Linux: Common Linux Command Categories

Introduction In the previous article, we introduced the basic format of the Linux command line and the fundamental concepts of the Shell. Getting Started with Linux: Entering the World of Command Line In this article, we will delve deeper into the various categories of commonly used commands in Linux. These commands are the foundation of … Read more

Linux Top Command Usage Tutorial and Tips

Linux Top Command Usage Tutorial and Tips 1. Basic Usage Starting top # Start directly top # Set refresh interval (seconds) top -d 2 # Show only processes of a specific user top -u username # Hide idle processes on startup top -i 2. Overview of the Top Interface top – 10:30:00 up 10 days, … Read more

How to View the Complete Startup Command of a Process in Linux

Linux users may encounter a situation where a previously running process has crashed, and they want to restart it. However, they might forget the command to restart it. I have also been troubled by this issue for a long time, but I eventually found a solution, which I will introduce here. Use the history command … Read more

From Beginner to Expert in Linux Commands: 20 Common Commands + Practical Tips for Easy Mastery

Have you ever felt lost in front of the terminal? Facing the blinking cursor, unsure of what command to input? As the “dominant force” in the server domain, the Linux command line is an essential skill for developers and operations engineers. Compared to graphical interfaces, command line operations are more efficient, better suited for automation … Read more

Detailed Examination of Linux Process and Kernel Perspectives

Process Perspective vs Kernel Perspective In a Linux system, we can understand the system’s operating mechanism from two different levels: Process Perspective and Kernel Perspective. These two perspectives have essential differences. Process Perspective: Limited “User Space” View From the process perspective, the system’s operation is filled with uncertainty and limitations: #include <stdio.h> #include <unistd.h> #include … Read more