Common Linux Commands – Part 2

Common Linux Commands - Part 2

File Search Commands: 1. find directory -name “filename“ – Search for files by name 2. find directory -type f -name “*.txt” – Find specific type of files 3. grep “text” filename – Search for text in a file 4. grep -r “text” directory – Recursively search for text in a directory 5. locate filename – … Read more

The Three Musketeers of Linux Commands – Using sed for Search and Append

The Three Musketeers of Linux Commands - Using sed for Search and Append

Introduction to sed sed is short for Stream Editor, also known as a stream editor. sed works like an assembly line in a workshop, where the characters to be processed are the raw materials on the assembly line, and after processing by sed, they become the finished goods. sed is mainly used in the following … Read more

Common Linux Commands to Enhance Operational Efficiency

Common Linux Commands to Enhance Operational Efficiency

1、ls command is an abbreviation for list. The ls command can be used not only to view the files contained in a linux directory but also to check file permissions (including directory, folder, and file permissions) and to view directory information, etc. Common parameter combinations: ls -a lists all files in the directory, including hidden … Read more

Viewing Specific Processes and Their Child Threads in Linux, Configuring Specific CPU IDs to Avoid Kernel Conflicts

Viewing Specific Processes and Their Child Threads in Linux, Configuring Specific CPU IDs to Avoid Kernel Conflicts

Commands to Configure System Process Threads to Specific CPUs # View the CPU core bound to the current process, dynamically modify during process execution taskset -p pid # Specify which CPU IDs the current process can use, use during command execution taskset -c 0,1 cmd # View the correspondence between system CPUs (logical cores) and … Read more