# 執行.sh文件
方法一:
~~~
./hello.sh
~~~
> hello.sh必須有x權限
* * * * *
方法二:
~~~
sh hello.sh
~~~
> hello.sh可以沒有x權限
* * * * *
#### 給.sh文件添加x執行權限
比如以hello.sh文件為例,
~~~
chmod u+x hello.sh
~~~
- 序言
- Linux系統目錄結構
- 常用命令
- 查看基本信息
- crontab
- chmod
- chown
- cp
- df
- whois
- whoami
- who
- w
- finger
- user
- vi
- find
- mount
- umount
- 擴展知識
- 執行.sh文件
- 壓縮和解壓
- 實例
- mysql每天自動備份
- 其他錯誤
- Warning: Using a password on the command line interface can be insecure.
- 相關閱讀
- 服務器
- Linux SSH登錄權限控制
- 讓用戶獲得root權限
- oneinstack
- 目錄說明
- 服務管理
- 升級版本
- 配置https
- 常見問題
- PHP緩存
- 如何管理 FTP 賬號
- MySQL 數據庫管理