Shell Programming

Shell Introduction

Shell是一个用C语言编写的程序,它是用户使用Linux的桥梁。Shell既是一种命令语言,又是一种程序设计语言。

Shell Script

业界所说的Shell通常都是指Shell Script,但Shell和Shell Script是两个不同的概念。

First Shell Script

Creation a file named feige.sh

#!/bin/bash
echo "Hello World !"

Execute Script

sh ./feige.sh

Shell Variable

Output System Variable

echo $PATH
echo $USER

猜你喜欢

转载自www.cnblogs.com/feiqiangsheng/p/12716570.html
今日推荐