Skip to content

Commit

Permalink
adding week 05 keyboard shortcuts (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda authored Jul 14, 2020
1 parent d2a6c48 commit 9e92348
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions weekly_lessons/05-keyboard_short/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Week 05 ( keyboard shortcuts )

- [Week 05 ( keyboard shortcuts )](#week-05--keyboard-shortcuts-)
- [Pre-reqs](#pre-reqs)
- [Why](#why)
- [Examples](#examples)
- [Resources](#resources)

## Pre-reqs

- bash setup
- [video](https://youtu.be/mfP8R1yr80A)
- [writen instruction](/install_methods/)

## Why

1. Compounding on things we learned
2. Efficient exerience = more fun experience
3. Cumbersome, but rewarding

## Examples

```bash
help set
set
set -o
set -o | grep -E '^(emacs|vi)'
## emacs mode
Ctrl+u # delete everything from the cursor to the beginning of the line
Ctrl+w # delete the previous work on the command line before the cursor
Ctrl+l # clear the terminal window
Ctrl+a # jump to the beginning of the command line
Ctrl+e # move your cursor to the end of the command line
Ctrl+r # search command history in reverse, continue pressing key sequence to continue backwards search. Esc when done or command found
Ctrl-S # Search forward through your history
## vi mode
set -o vi
```

## Resources

- [Hash Crack (Password Cracking Manual)](https://www.netmux.com/#books) ([amazon link](https://www.amazon.com/gp/product/1793458618) (from authors website & affiliate free))
- Main Chapter(s): Cheat Sheets
- Sub Section: TERMINAL COMMAND CHEAT SHEET
- [Emacs Keybindings in Bash](https://blog.pythian.com/emacs-keybindings-in-bash/)
- **note:** not the best format, but appears to not collide with possible terminal key sequences (at least on urxvt)
- [How to Navigate Linux Command Line Using Keybinding (Linux Ctrl Command Examples)](https://www.thegeekstuff.com/2014/05/linux-keybindings/)
- **note:** really nice format, but appears to collide with possible terminal key sequences (at least on urxvt)
- tool(s) used during recording:
- [screenkey](https://www.linuxuprising.com/2020/05/screenkey-is-tool-that-shows-pressed.html)

0 comments on commit 9e92348

Please sign in to comment.