背景图片

Linux 命令行与 shell 脚本编程大全 第 1 章:初识 Linux shell

The Missing Semester of Your CS Education
计算机教育中缺失的一课
YouTube - Missing Semester IAP 2020
bilibili - [自制双语字幕] 计算机教育缺失的一课(2020)
豆瓣 - Linux命令行与shell脚本编程大全(第4版)
POSIX.1-2017
GNU Bash manual
PowerShell 文档
bilibili - 30分钟Shell光速入门教程

1.1 Linux 初探

命令行解释器

sh (Bourne Shell)
bash (Bourne Again Shell)
csh (C Shell)
ksh (Korn Shell)

cmd 命令提示符
PowerShell

输入:

[root@localhost ~]$ echo "Hello World!"  # echo /ˈekəʊ/, /ˈekoʊ/ 回声

输出:

Hello World!
#!/bin/bash

echo $PATH

ls --help
sh ./hello.sh
chmod +x hello.sh
# #!指定解释器,一定要带./
./hello.sh