JM233333's Blog
  • Programming Languages

    • C
    • Python
  • Algorithms and Data Structures

    • Data Structure
    • Fundamental Algorithms
    • Graph Theory
  • GNU Toolchain

    • Bash
    • gdb
  • Development Environment

    • Ubuntu
    • QEMU
  • Development Tools

    • Git
    • VSCode
  • Operating Systems

    • Principles of Operating Systems
    • Xv6
    • Linux Kernel
  • Software Testing and Analysis

    • Software Testing
    • Software Analysis
    • Program Verification
  • LeetCode
  • XJTUOJ
  • System

    • System Performance
  • Programming

    • ...
  • Others

    • ...
  • Paper Reading

    • Model Checking
    • Fuzzing
    • Symbolic Execution
  • 3D Game Programming

    • 3D Mathematics

JM233333

弱小可怜又无助的学术废物
  • Programming Languages

    • C
    • Python
  • Algorithms and Data Structures

    • Data Structure
    • Fundamental Algorithms
    • Graph Theory
  • GNU Toolchain

    • Bash
    • gdb
  • Development Environment

    • Ubuntu
    • QEMU
  • Development Tools

    • Git
    • VSCode
  • Operating Systems

    • Principles of Operating Systems
    • Xv6
    • Linux Kernel
  • Software Testing and Analysis

    • Software Testing
    • Software Analysis
    • Program Verification
  • LeetCode
  • XJTUOJ
  • System

    • System Performance
  • Programming

    • ...
  • Others

    • ...
  • Paper Reading

    • Model Checking
    • Fuzzing
    • Symbolic Execution
  • 3D Game Programming

    • 3D Mathematics
  • bash

    • Bash 00 - Introduction
      • 前言
      • 阅读指引图
      • 参考资料
    • Bash 01 - Getting Started
  • gcc

  • gdb

  • ld

  • make

  • gnu-toolchain
  • bash
JM233333
2021-09-01
698

Bash 00 - Introduction

Creative Commons

# 前言

注:Bash 部分的文章正在迁移和重构的过程中,因此大部分内容暂时是不可见的,还请读者谅解。

在 Linux 系统上,我们经常需要在 shell 终端上执行命令,以此和计算机进行交互。本文假设读者已经对此有最基本的认知。

有时我们需要反复执行一组多个命令,如果每次都逐字逐句地把命令敲到终端上,就连稍微有点规模的任务都无法胜任。此时我们需要编写脚本文件,将重复的命令执行工作自动化。

shell 命令的运用和 shell 脚本的编写是任何在 Linux 系统上工作的技术人员的必备技能。本知识板块将以 GNU Bash 为准介绍 shell 的基础知识,这是当下最为广泛应用的 shell 之一。

为便于理解,本知识板块内的文章在介绍各部分内容时会省略一些相对不重要的细节。要想了解全部的规则,请参考 Bash 的官方文档。


# 阅读指引图

其中:

  • 淡黄色方块表示有关工具基础运用的文章。

  • 小麦色方块表示有关工具进阶运用的文章。

  • 箭头表示一组前置知识的关系。在阅读一篇文章前,推荐您先阅读其所有前置文章。

  • 虚线箭头表示一组建议的前置关系,是可选的,您可以选择忽略此类提示。

  • 空心大箭头表示你将进入到进阶区域。

  • 淡粉色方块表示来自其他知识板块的文章,因为它们是本板块内某些文章的前置知识,所以被专门标示出来。


# 参考资料

GNU - Bash Reference Manual (opens new window)

MIT - The Missing Semester of Your CS Education (opens new window)

阮一峰 - Bash 脚本教程 (opens new window)


#基础教程#GNU 工具链#Linux#Shell#Bash

Bash 01 - Getting Started→

最近更新
01
Linux Kernel 00 - Introduction
08-01
02
Linux Kernel 01 - Build and Run a Tiny Linux Kernel on QEMU
08-01
03
Linux Kernel 01 - Debug the Linux Kernel
08-01
更多文章>
Theme by Vdoing | Copyright © 2019-2022 JM233333 | CC BY-NC-SA 4.0
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式