首先来一个小程序,来查看所在目录,以及该目录下的文件
#!/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