C Programming on Linux

Introduction First of all, I believe that foundational knowledge in computer science is timeless, while trendy “practical skills” may quickly become obsolete. This is why, during the major selection process in my sophomore year, I chose the Computer Science and Technology major instead of other flashy fields. In my junior and senior years, when studying … Read more

Introduction to Linux

The GNU Manifesto https://dpya.org/en/images/8/81/The_GNU_Manifesto_-_GNU_Project_-_Free_Software_Foundation.pdf https://www.gnu.org/gnu/manifesto.en.html Linux VS Windows Comparison Windows Linux Interface The interface is unified, and the shell program fixes all Windows program menus to be almost identical, with similar shortcut keys. The graphical interface style varies by distribution and may be incompatible. The terminal of GNU/Linux is inherited from UNIX, and the basic … Read more

How to Handle Full Disk Space in Linux?

Click the blue text to follow us When the disk space is full, it can lead to application anomalies. How should we troubleshoot the issue of full disk space? First, we need to confirm the disk space usage. To check the disk space usage, we can use the df command. [root@VM-181-124 ~]# df -h Filesystem … Read more

Introduction to Linux Shell Programming (Part 2) – grep, sed, awk

Learning and Practicing This article describes commands related to text processing in Shell programming, such as grep, sed, and awk grep: <span>grep is a text search tool used to search for lines in files that match one or more regular expressions.</span> <span>It is fast, flexible, and the standard tool for text searching.</span> <span>grep supports various … Read more

Understanding Linux Folios: A New Approach to Memory Management

1. Background In early memory management modules, the concept of compound pages was introduced to describe Linux Compound Pages; however, there are design flaws inherent in compound pages themselves. In practical applications, the compound_head of compound pages presents issues in distinguishing between head pages and tail pages. Improper usage can easily lead to system exceptions. … Read more

Summary of Linux File Directories, Disk File Systems, and Compression Commands

Summary of Linux File Directories, Disk File Systems, and Compression Commands File and Directory Management Basic Commands • ls – List directory contents ls # List files and directories in the current directory ls -l # Long format to display detailed information ls -a # Show all files (including hidden files) ls -la # Show … Read more

Linux Power Management (3) – The Process of Shutdown and Reboot

Original:https://mp.weixin.qq.com/s/2ACNTsl_JQSMwvWsZf55zw 1. Introduction During the use of a computer, shutting down and rebooting are the first two operations learned. Similarly, these two operations exist in Linux, allowing for shutdown and reboot. This is the subject to be described here. In the Linux Kernel, mainstream shutdown and reboot are implemented through the “reboot” system call (for … Read more