A Guide from Linux Shell Basics to Avoiding Root Directory Deletion

A Guide from Linux Shell Basics to Avoiding Root Directory Deletion

(Click the public account above to quickly follow) Source: xrzs Link: https://my.oschina.net/leejun2005/blog/793916 If you have good articles to submit, please click → here for details Shell, as a widely used system language under Linux, has a simple syntax and is easy to get started with. However, mastering it and minimizing errors is not an easy … Read more

Differences Between source xxx.sh and ./xxx.sh in Linux

Differences Between source xxx.sh and ./xxx.sh in Linux

The source xxx.sh and ./xxx.sh commands are two common methods for executing Shell scripts in Linux/Unix systems. They have fundamental differences in execution environment, permission requirements, and their impact on the current Shell. The table below summarizes their core differences for quick understanding: Feature Comparison source xxx.sh ./xxx.sh Execution Environment Current Shell Process New Sub … Read more

Linux Uprobe: A Powerful Tool for Dynamically Tracing User-Space Programs

Linux Uprobe: A Powerful Tool for Dynamically Tracing User-Space Programs

Previously, we introduced kprobes in the Linux kernel, which is a dynamic tracing technology specifically for the Linux kernel space. In this article, we will introduce a similar technology called uprobes (User Space Probe), which, as the name suggests, focuses on dynamic tracing in the Linux user space. It allows developers to set probes at … Read more

Updated Linux Graphical Batch Operation Inspection Tool

Updated Linux Graphical Batch Operation Inspection Tool

Function Description: Real-time Linux monitoring tool (similar to Zabbix) Batch command execution, upload, and download on Linux (similar to Ansible) Graphical interface operations on Linux Downloadable Linux operation and maintenance tools with a graphical interface Usage Tip: Right-click in different areas of the interface for surprises!!! Download Link 1: https://pan.baidu.com/s/1EKLNNxSKChRPEhqnNlG0QA?pwd=bft9 Extraction Code: bft9 Download Link … Read more

Introduction to Linux (Part 3)

Introduction to Linux (Part 3)

If an interviewer asks you: Can you explain the principles of Linux permission allocation? Today, let’s discuss this. 1. Permission Abstraction A complete permission management system requires reasonable abstraction. This includes abstractions for users, processes, files, memory, system calls, etc. First, let’s talk about users and groups. Linux is a multi-user platform that allows multiple … Read more

How to Compile GCC Yourself

How to Compile GCC Yourself

Download GCC ● https://ftp.gnu.org/gnu/gcc/ ● Select a target version to download Compilation Commands # Centos yum groupinstall "Development Tools" # Ubuntu sudo apt install build-essential # Avoid compilation errors unset LIBRARY_PATH # Build wget https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.gz –no-check-certificate tar -zvxf gcc-15.1.0.tar.gz cd gcc-15.1.0 ./contrib/download_prerequisites mkdir build cd build/ ../configure –enable-checking=release –prefix=/usr/local/gcc-15.1.0 –enable-shared –enable-static –enable-languages=c,c++ –disable-multilib # Install … Read more

Linux (15): Viewing & Manipulating File Content

Linux (15): Viewing & Manipulating File Content

1. Core Purpose & Concepts Core Purpose: To use a series of specialized commands to read, merge, reverse, and extract file content, all operations are performed in the command line without the need to launch a full text editor, thus achieving efficient file content preview and processing. Core Terminology: <span>cat</span> (concatenate): Its core function is … Read more

Mastering Linux File Permissions: A Practical Guide from Basics to Advanced

Mastering Linux File Permissions: A Practical Guide from Basics to Advanced

Technical Alley Read time: 5 minutes Remember to star our public account In Linux systems, managing file and directory permissions is crucial for ensuring system security. Whether it is to limit the operational scope of ordinary users or to ensure that critical files are not accidentally deleted, permission configuration plays an important role. This article … Read more

Essential Guide to Deploying Linux Firewall: From Basic Protection to Advanced Rules, Easy for Beginners

Essential Guide to Deploying Linux Firewall: From Basic Protection to Advanced Rules, Easy for Beginners

Essential Guide to Deploying Linux Firewall: From Basic Protection to Advanced Rules, Easy for Beginners ** Hello everyone! Previously, when sharing about Linux SSH remote management, some friends in the background commented: “Remote connection is convenient, but the server is exposed to the network, and I am always worried about being attacked. How can I … Read more

Using the Linux Terminal Without a Virtual Machine

Using the Linux Terminal Without a Virtual Machine

🎨 Mastering WSL2 with Deepin: A Linux Experience that Balances Aesthetics and Efficiency on Windows 👨💻 Author: Friendly📅 Date: September 2025📍 Platform: Windows 11 + WSL2 + Deepin 1. Why Choose Deepin? As WSL becomes a powerful development tool for Windows users, choosing the right Linux distribution has also become crucial. Deepin stands out among … Read more