阅读背景:

Linux——shell简单学习(一)

来源:互联网 

首先来一个小程序,来查看所在目录,以及该目录下的文件

#!/bin/sh                             # “#!”指定用sh执行shell脚本
#this is to show workstation     # “#” 表示注释
echo "We are currently in the following directory"  # echo 表示输出
/bin/pwd   #输出用户所在目录
echo          # 换行
echo "This directory contains the following files"
/bin/ls       #列出该目下的文件
#!/bin/sh     



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: