Bash doc
This commit is contained in:
@@ -5,3 +5,4 @@
|
|||||||
- [7 Command-Line Tools That Make Your Life Easier](https://levelup.gitconnected.com/7-command-line-tools-that-make-your-life-easier-d69c38850d6c)
|
- [7 Command-Line Tools That Make Your Life Easier](https://levelup.gitconnected.com/7-command-line-tools-that-make-your-life-easier-d69c38850d6c)
|
||||||
- [Best Practices for Bash Scripts](https://medium.com/better-programming/best-practices-for-bash-scripts-17229889774d)
|
- [Best Practices for Bash Scripts](https://medium.com/better-programming/best-practices-for-bash-scripts-17229889774d)
|
||||||
- [Oh-My-Zsh! A Work of CLI Magic — Tutorial for Ubuntu](https://medium.com/wearetheledger/oh-my-zsh-made-for-cli-lovers-installation-guide-3131ca5491fb)
|
- [Oh-My-Zsh! A Work of CLI Magic — Tutorial for Ubuntu](https://medium.com/wearetheledger/oh-my-zsh-made-for-cli-lovers-installation-guide-3131ca5491fb)
|
||||||
|
- [Consider Starting All Your Bash Scripts with These Options.](https://medium.com/factualopinions/consider-starting-all-your-bash-scripts-with-these-options-74fbec0cbb83)
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ sudo su
|
|||||||
### Bash
|
### Bash
|
||||||
```bash
|
```bash
|
||||||
mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup
|
mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### To explore
|
### To explore
|
||||||
@@ -32,9 +31,10 @@ mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup
|
|||||||
|
|
||||||
### Script errors
|
### Script errors
|
||||||
```bash
|
```bash
|
||||||
set -o errexit
|
set -o errexit | set -e
|
||||||
set -o nounset
|
set -o nounset | set -u
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
set -x # dump all commands
|
||||||
```
|
```
|
||||||
### Linux
|
### Linux
|
||||||
usermod - modifu user account
|
usermod - modifu user account
|
||||||
|
|||||||
Reference in New Issue
Block a user