Linux Operations: Common Methods for Finding and Terminating Processes

Linux Operations: Common Methods for Finding and Terminating Processes

In Linux system operations, process management is an important part of daily operations. System administrators often need to find abnormal processes, terminate unresponsive services, or clean up processes that consume excessive resources. This article will systematically introduce practical methods for finding and terminating processes in Linux, based on real operational scenarios. 1. Methods for Finding … Read more

Common Linux Commands – Part 3

Common Linux Commands - Part 3

Common Linux Commands – Part 3 3. Common Permission Descriptions /etc/passwd # Default 644, minimum permission 444, allows other users to access/etc/shadow # Default 600, minimum permission 400, does not allow other users to accessb rwx r-x -w- # d indicates device file, numeric permissions are represented as 752# indicates device file, file owner can: … Read more

Application of Linux Commands and Ports

Application of Linux Commands and Ports

In Linux, there are various methods to check the usage of ports and their corresponding applications. Here are several commonly used methods: 1. Use the <span>ss</span> command (recommended) <span>ss</span> (Socket Statistics) is a modern replacement for <span>netstat</span>, which is more efficient. # View all listening ports and corresponding programs sudo ss -tulnp # Parameter explanation: … Read more

Common Linux Commands Explained

Common Linux Commands Explained

Common Linux Commands White: Regular files Blue: Directories Red: Compressed files Green: Executable files Copy: ctrl + insert Paste: shift + insert Clear screen: ctrl + l Cancel current command and re-enter: ctrl + c 1. ls Syntax: ls [options] [directory or file] Function: For directories, this command lists all subdirectories and files within the … Read more

Detailed Explanation of Common Ansible Modules

Detailed Explanation of Common Ansible Modules

Although there are many modules, only about 20 to 30 are commonly used. For specific business needs, only about a dozen modules are frequently used. Reference for common module documentation: https://docs.ansible.com/ansible/2.9/modules/modules_by_category.html https://docs.ansible.com/ansible/2.9/modules/list_of_all_modules.html https://docs.ansible.com/ansible/latest/modules/list_of_all_modules.html https://docs.ansible.com/ansible/latest/modules/modules_by_category.html Command Module Function: Execute commands on remote hosts. This is the default module, and the -m option can be ignored. Note: … Read more

6 Essential Commands to Restart Your Linux System from Terminal

6 Essential Commands to Restart Your Linux System from Terminal

In an era where you can manage everything with a mouse click, why still resort to command-line to restart your system? The answer is simple: the terminal is the soul of Linux. It allows you to maintain control over your system even when it crashes, during remote logins, or when you need to perform bulk … Read more

In-Depth Analysis of the Locate Command for Linux Experts

In-Depth Analysis of the Locate Command for Linux Experts

In the daily use of Linux systems, file searching is one of the high-frequency operations.<span><span>locate</span></span> command has become an “efficiency accelerator” for many developers and administrators due to its extremely fast search speed. Its core advantage lies in bypassing the cumbersome process of real-time traversing the file system, instead achieving “sub-second response” through a pre-built … Read more

Linux Command Practice 1

Linux Command Practice 1

1. Run______⑴_______ code, record the experimental results. 1.Program code: (Student to fill in) mkdir ./wuli201 mkdir -p wuli202/zhang3 mkdir–p ./wuli20/zhang3/li4/wang5 rm –r ./wuli20/zhang3/li4/wang5 rm –rf ./zhang3/wang5 cd /etc cd /media cd ~ or cd $HOME cd ~/wuli202/zhang3 cd ../../ cd ~ or cd $HOME cd /etc/ssh 2. Experimental results: (Student to fill in) 2. Run_____⑵____ … Read more

Comprehensive Guide to Common Linux Commands

Comprehensive Guide to Common Linux Commands

A 20,000-word system summary to help you achieve freedom with Linux commands. Basic Operations Shutdown and Restart Linux # Shutdown shutdown -h now # Restart shutdown -r now View System and CPU Information # View system kernel information uname -a # View system kernel version cat /proc/version # View current user environment variables env cat … Read more