Here's some of mine:
Change up 1, 2 or 3 directories:
alias .....='cd ../../../..'
alias ....='cd ../../..'
alias ...='cd ../..'
alias ..='cd ..
Example:
mcrowe in /tmp/level-1/level-2/level-3/level-4/level-5
$ ....
mcrowe in /tmp/level-1/level-2
$
Grep history:
alias gh='history | grep --colour=auto'
Strip line numbers from history "history cut"
alias hc="history | cut -b 8-
ps
commands:
alias psa='ps faux'
alias psag='ps faux | grep
psa
: shows detailed output:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S Jan15 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? I< Jan15 0:00 \_ [rcu_gp]
root 4 0.0 0.0 0 0 ? I< Jan15 0:00 \_ [rcu_par_gp]
psag
: Grep psa
output:
$ psag nemo
mcrowe 15096 0.0 1.8 1095252 454104 tty2 Sl+ Jan16 3:12 | \_ nemo
mcrowe 26147 0.0 0.0 17532 868 pts/1 S+ 11:19 0:00 | | \_ grep --color --exclude-dir=.svn --exclude-dir=.git nemo
mcrowe 2366 0.0 0.1 822992 42108 tty2 Sl+ Jan15 0:17 \_ nemo-desktop
Top comments (1)
all the above + my github aliases
a nasty git alias hack
Clive Da ・ Jan 17 ・ 1 min read