shell的簡單應用

查看命令解釋器 echo $SHELL 查看文件 cat hello 用解釋器執行 bash hello 重命名 mv hello hello.sh 在文件裏添加解釋器的說明 #!/bin/bash 查看權限 ls -al 更改權限 chmod +x hello.sh,顏色改變 直接執行文件 ./hello.sh $(date) 表明這是一個命令 $Time 表明這是一個變量,且變量命名之間不能有
相關文章
相關標籤/搜索