From 59e4695ef553a9cb2d2c94702dfa527d908d55a6 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Sat, 9 May 2020 01:38:55 +0700 Subject: [PATCH] ncat and bash --- Applications/README.md | 6 +++++- Applications/bash.md | 12 ++++++++++++ Applications/ncat.md | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Applications/bash.md create mode 100644 Applications/ncat.md diff --git a/Applications/README.md b/Applications/README.md index d1d6e52..ecfeba1 100644 --- a/Applications/README.md +++ b/Applications/README.md @@ -1,11 +1,13 @@ # Applications -[Neovim](neovim.md): like `vim`. +[bash](bash.md) [git](git.md) [tmux](tmux.md) +[Neovim](neovim.md): like `vim`. + [bat](https://github.com/sharkdp/bat): `cat` with colors. [fd](https://github.com/sharkdp/fd): simple `find`. @@ -18,6 +20,8 @@ [tldr](https://github.com/tldr-pages/tldr): simple `man`. +[Ncat](ncat.md) + [HTTPie](https://httpie.org/): call API. [rsync](rsync.md) diff --git a/Applications/bash.md b/Applications/bash.md new file mode 100644 index 0000000..0f13f47 --- /dev/null +++ b/Applications/bash.md @@ -0,0 +1,12 @@ +# Bash + +Read [Bash](https://wiki.archlinux.org/index.php/Bash). + +Read [Default Keyboard Shortcuts for Bash](https://catonmat.net/ftp/readline-emacs-editing-mode-cheat-sheet.pdf). + +Add to `~/.bashrc`: + +```bash +export HISTCONTROL=ignoreboth:erasedups +export HISTIGNORE="cd:cd *:ls:ls *:pwd:exit" +``` diff --git a/Applications/ncat.md b/Applications/ncat.md new file mode 100644 index 0000000..8c14c33 --- /dev/null +++ b/Applications/ncat.md @@ -0,0 +1,17 @@ +# Ncat + +Read [Ncat](https://nmap.org/ncat/). + +It is included in [nmap](https://www.archlinux.org/packages/extra/x86_64/nmap/). + +Check connection to host port: + +```sh +ncat -zv host post +``` + +Example: + +```sh +ncat -zv google.com 80 +```