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

C Language: Unix-like Operating Systems

C Language: Unix-like Operating Systems

“ Discussing several types of Unix-like operating systems from the perspective of system evolution.” Unix-like The definition of “Unix-like OS” according to Wiki is as follows: A Unix-like (sometimes referred to as UN*X or *nix) operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or … Read more

Detailed Explanation of String Operations in Linux Shell (Length/Find/Replace)

Detailed Explanation of String Operations in Linux Shell (Length/Find/Replace)

(Click the public account above to quickly follow) Source: Cheng Mo http://www.cnblogs.com/chengmo/archive/2010/10/02/1841355.html If you have good articles to submit, please click → here for details When developing shell batch processing programs, string-related operations are often involved. Many command statements, such as: awk and sed, can perform various string operations. In fact, the shell has a … Read more

Introduction to Linux (Part 1)

Introduction to Linux (Part 1)

1. What is Shell? First, let’s understand what a Shell is. The Shell takes the commands we input and passes them to the operating system for execution, so the Shell is a command-line user interface. You often see the term bash (Bourne Again Shell), which is a program composed of Shell. The name Bourne refers … Read more

Linux Operating System and Application Technologies

Linux Operating System and Application Technologies

Task 1: Installation and Startup of Linux Operating System and Application TechnologiesLinux is an operating system similar to UNIX, which predates Linux, symbolized by a penguin named Tux. Its development relies on the UNIX operating system, MINIX operating system, CNU project, POSIX standards, and the Internet.2.Characteristics of the Linux Operating System1. Open Source. Linux is … Read more

Unit Testing with CTest in CMake

Unit Testing with CTest in CMake

Introduction: CTest is the CMake testing tool. This article explores the functionalities of CTest by writing and testing code that can sum integers. To illustrate that CMake imposes no restrictions on the language used for actual testing, we will use C++ executables for testing, as well as Python scripts and shell scripts. For simplicity, we … Read more

Introduction to Linux Commands – Lesson 1

Introduction to Linux Commands - Lesson 1

Getting Started with Linux Commands st@st-virtual-machine:~$: st: The currently logged-in username, set during installation @: Not significant, serves as a separator st-virtual-machine: Hostname, set during installation ~: The current user’s home directory: (/home/st) : Used to distinguish user roles, indicates a regular user, # indicates ROOT user pwd: Used to view the absolute path of … Read more

Linux Command Summary

Linux Command Summary

Linux is a free and freely distributable Unix-like operating system, based on POSIX and UNIX, and supports multi-user, multi-tasking, multi-threading, and multi-CPU. It can run major UNIX tool software, applications, and network protocols. It supports both 32-bit and 64-bit hardware. Linux inherits the Unix design philosophy centered on networking and is a stable multi-user network … Read more

Shell Scripting Basics

Shell Scripting Basics

Click the blue textFollow us Shell is a scripting language written in C, serving as a bridge between the user and Linux. The user inputs commands to the Shell, which then passes the corresponding operations to the kernel (Kernel), and the kernel outputs the results back to the user. Shell is generally divided into two … Read more

Mastering Linux Basics: Essential Commands (Part 2)

Mastering Linux Basics: Essential Commands (Part 2)

In Linux, commands typically consist of three parts:Command, Options, Arguments First Part: Command. The input at the command prompt must be a command, or the path to an executable program, or the path/name of a script. Second Part: Options. Options must be separated from the command by a space, and they serve to modify the … Read more