Linux / Bash
Commands
check disk usage:
df -h
check mem usage:
free -m
list by date:
ls -trla
cd -
to switching between previous working directory.
Bash
CTRL+R
to search history (reverse-i-search
), press again to search incrementally.
Movements
CTRL+U
clear current lineCTRL+A
jump to start of line;CTRL+E
jump to start of line
zsh
reload after editing .zshrc:
. ~/.zshrc
use history search plugin: http://unix.stackexchange.com/a/248789
iTerm2
CMD + D
vertical splitCMD + SHIFT + D
horizontal split
Refs:
Last updated