Use | command |
---|---|
Toggle Between begining of line and End of Line | CTRL+XX |
Delete Last Word Before: >test one two | After: >test one | |
ALT + BACKSPACE |
Cut last Word Before: >test one two | After: >test one | |
CTRL+W |
Paste last cut | CTRL+Y |
Send Current Program to Background | CTRL+Z fg to bring it back |
Execute last executed command starts with abc | !abc |
Print the last executed command start with abc | !abc:p |
Use | command |
---|---|
List of all crons in hourly execution order | crontab -l | grep -v ^# | grep -v '^[[:space:]]*$' | cut -d' ' -f1-7 | sort -n -k 2 | column -s" " -t |
Define a wrapper for frequently used commands | Create a file :> vim help.sh function ssh_to_remote() { then :> source help.sh now :> ssh_to_remote |