Common Linux Commands Notes

Common Linux Commands Notes

1. Quick Reference Table for Linux Paths Syntax Meaning Example Description <span><span>/</span></span> πŸŸ₯ Root Directory <span><span>/etc/hosts</span></span> Starting point for all paths <span><span>.</span></span> 🟩 Current Directory <span><span>./script.sh</span></span> Indicates “in the current directory” <span><span>..</span></span> 🟨 Parent Directory <span><span>../file.txt</span></span> Parent directory of the current directory <span><span>~</span></span> 🟦 Current User’s Home Directory <span><span>~/docs</span></span> Equivalent to <span><span>/home/username</span></span> <span><span>~user</span></span> πŸŸͺ Specified … Read more

Self-Study Notes on Python – Article 33: Files

Self-Study Notes on Python - Article 33: Files

First Knowledge Point: What is a FileA file is an object that a program uses to access data; the program can read data from a file or write data to a file.Second Knowledge Point: File Classification Text Files: Stored in character format, requiring encoding, common encodings include: GBK, UTF-8 Binary Files: Stored in byte format. … Read more

Shell Scripting for Gas Technology Stack: Building on Linux Commands

Shell Scripting for Gas Technology Stack: Building on Linux Commands

Shell scripts are used to accomplish complex tasks through a series of Shell commands. Mastering common Shell commands is a prerequisite for writing Shell scripts. Essentially, Shell commands are mature programs provided by the system, and some commands are very powerful, such as <span>find</span>, <span>grep</span>, <span>awk</span>, <span>sed</span>, etc. This article summarizes some commonly used Shell … Read more

Quick Start: Summary of Common Linux Commands

Quick Start: Summary of Common Linux Commands

Summary of Common Linux Commands Introduction As a mainstream operating system in the server field, the command line operations of Linux are essential skills for every developer and operations personnel. This article summarizes the most commonly used commands in the Linux system, covering various aspects such as system management, file operations, permission control, network configuration, … Read more

Comprehensive Guide to C Language File Operations

Comprehensive Guide to C Language File Operations

A complete explanation of the basic knowledge of C language files β€” “Create, Flush, Seek, Read, Write”, recommended for collection. Overview of this section 1. Introduction to the essence of C files 2. Overview of core APIs 3. File creation API 4. Disk flush API 5. File pointer API 6. File read API 7. File … Read more

Comprehensive Guide to ESP32 SD Card File Operations

Comprehensive Guide to ESP32 SD Card File Operations

Comprehensive Guide to ESP32 SD Card File Operations 1. Hardware Connection and Configuration Hardware Requirements ESP32 Development Board Micro SD Card Module (SPI Interface) Micro SD Card (Recommended 4GB-32GB, FAT32 format) Several Dupont Wires Wiring Diagram SD Card Module β†’ ESP32 Pins —————— CS β†’ GPIO5 (customizable) SCK β†’ GPIO18 MOSI β†’ GPIO23 MISO β†’ … Read more

Learning Python: Day 3 – Object-Oriented Programming and File Operations

Learning Python: Day 3 - Object-Oriented Programming and File Operations

5. Object-Oriented Programming (OOP) 1. Classes and Objects python class Person: def __init__(self, name, age): # Constructor self.name = name self.age = age def say_hello(self): # Instance method print(f”Hello, I’m {self.name}, {self.age} years old.”) p = Person(“Alice”, 25) # Create an object p.say_hello() # Call method 2. Inheritance: A subclass inherits properties and methods from … Read more

Introduction to Linux – Command Line Basics

Introduction to Linux - Command Line Basics

For practical entry into Linux, the first essential knowledge point is the basics of command line operations, which is the core interaction method of the Linux system, covering the following key contents: πŸ” 1. Terminal Interface and Basic Command Structure Terminal All operations are executed through the terminal, which is the window for inputting commands. … Read more