Python Automation: Batch Find and Replace File Contents

Python Automation: Batch Find and Replace File Contents

Many computers, after prolonged use, encounter two common issues— one is the accumulation of various temporary files that take up space and slow down performance; the other is the presence of numerous duplicate files, where the same photo or video may be stored in several different folders. Manually cleaning these can be tedious, but writing … Read more

Understanding Linux Soft and Hard Links for File Management

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 1000 people technical exchange QQ group, note [public account] for faster access 1. Soft and Hard Link Operations 1. Soft Link How to create a corresponding soft link for the file file.txt created using touch? ln -s file.txt file-soft.link to create a soft … Read more

Summary of Common Linux Commands

Summary of Common Linux Commands

Whether you are a programming novice or a seasoned professional, it is recommended that you save this common Linux command manual. Whether you are a backend developer or a frontend developer, you will inevitably have to deal with the Linux system. It could be setting up a virtual machine environment while learning, maintaining services in … Read more

Linux (10): Deleting Files & Folders

Linux (10): Deleting Files & Folders

1. Core Purpose & Concepts Core Purpose: To use command line tools to permanently remove files and directories. This is an irreversible operation with no recycle bin. Core Terminology: <span>rm</span> (remove): The primary command for deleting files and directories. Powerful but potentially dangerous. <span>rmdir</span> (remove directory): A safer command specifically for deleting only empty directories. … Read more

What Does the ‘->’ Symbol Mean After Files When Using the ‘ll’ Command in Linux? How to View the Actual File?

What Does the '->' Symbol Mean After Files When Using the 'll' Command in Linux? How to View the Actual File?

When viewing files in Linux, we often use the <span>ll</span> command (which is actually an alias for <span>ls -l</span>). You may have noticed that sometimes a file or directory is followed by an arrow and a path, for example: lrwxrwxrwx 1 root root 11 Jun 15 14:32 lib64 -> usr/lib64 What does the -> mean … Read more

Encountering Garbled File Names in Development Board Directory? Character Encoding Issues in Embedded Linux Development

Encountering Garbled File Names in Development Board Directory? Character Encoding Issues in Embedded Linux Development

After completing the entire project development, we sometimes suddenly find a file with a garbled string name in the development board’s directory, and even the file size is 0. Moreover, when the file name is garbled, it is impossible to input the file name via the keyboard, making it impossible to manage the file through … Read more

Linux | 22. Decompression and MD5 Checksum Verification

Linux | 22. Decompression and MD5 Checksum Verification

Introduction In the previous lesson, we introduced the use of soft links and hard links in Linux | 21 to help save some coding time and reduce disk storage space. However, using links only saves redundant space; to truly save disk storage, we need to rely on file compression. This section will mainly discuss the … Read more

Linux | 21. Soft Links and Hard Links (ln)

Linux | 21. Soft Links and Hard Links (ln)

Introduction Building on the previous content, aliases can help us simplify some complex commands, while the soft links and hard links introduced in this lesson can help us simplify file paths and save storage space (avoiding repeated copies). Video Tutorial The video is also available on Bilibili for easier viewing. You can access the original … Read more