From f27c44425718106b1e16c5d5a4202ffd61c168db Mon Sep 17 00:00:00 2001 From: Martin Blazik Date: Mon, 28 Sep 2020 18:59:59 +0200 Subject: [PATCH] More doc about Bash --- doc/bash.md | 7 +++++++ doc/cheatsheet.md | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 doc/bash.md diff --git a/doc/bash.md b/doc/bash.md new file mode 100644 index 0000000..9fed9cb --- /dev/null +++ b/doc/bash.md @@ -0,0 +1,7 @@ +# Articles +- [6 Bash Tricks You Can Use Daily](https://medium.com/for-linux-users/6-bash-tricks-you-can-use-daily-a32abdd8b13) +- [Navigate Your Unix Shell History Like a Boss](https://levelup.gitconnected.com/navigate-your-unix-shell-history-like-a-boss-5722ef45689f) +- [15 Essential Linux Command Line Tips and Tricks](https://medium.com/better-programming/15-essential-linux-command-line-tips-and-tricks-95e2bfa2890f) +- [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) diff --git a/doc/cheatsheet.md b/doc/cheatsheet.md index 995667d..9271423 100644 --- a/doc/cheatsheet.md +++ b/doc/cheatsheet.md @@ -18,6 +18,12 @@ cd - sudo su ``` +### Bash +```bash +mv /path/readme.md{,.backup} # mv /path/readme.md /path/readme.md.backup + +``` + ### To explore - ag - fzf @@ -36,10 +42,16 @@ usermod - modifu user account ### Tools - [ShellCheck](https://github.com/koalaman/shellcheck) A shell script static analysis tool - [direnv](https://direnv.net/) Directory specific variables +- [cheat](https://github.com/cheat/cheat) +- [enhancd](https://github.com/b4b4r07/enhancd) A next-generation cd command with an interactive filter +- [autojump](https://github.com/wting/autojump) A faster way to navigate your filesystem +- [BAT](https://github.com/sharkdp/bat) [root.cz](https://www.root.cz/clanky/nahrada-utility-cat-nastrojem-bat-a-ccat/) Supports syntax highlighting for a large number of programming and markup languages - yq - YAML processor - jq wrapper for YAML documents - jq - JSON processor - tldr - basic command usage - thefuck +- mount | column -t ; cat /etc/passwd | column -t -s : +- awk '!seen[$0]++' # remove duplicate lines ## Kubernetes ```bash