This commit is contained in:
Martin Blazik
2020-09-28 20:03:12 +02:00
parent d182820187
commit c5ef791740
2 changed files with 4 additions and 3 deletions

View File

@@ -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)
- [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)
- [Consider Starting All Your Bash Scripts with These Options.](https://medium.com/factualopinions/consider-starting-all-your-bash-scripts-with-these-options-74fbec0cbb83)

View File

@@ -21,7 +21,6 @@ sudo su
### Bash
```bash
mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup
```
### To explore
@@ -32,9 +31,10 @@ mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup
### Script errors
```bash
set -o errexit
set -o nounset
set -o errexit | set -e
set -o nounset | set -u
set -o pipefail
set -x # dump all commands
```
### Linux
usermod - modifu user account