-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliasrc
executable file
·75 lines (67 loc) · 3 KB
/
.aliasrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# WARNING: with bash, aliases are expanded inside functions, via (shopt) expand_aliases, which can lead to dramatic consequences
alias br='command sync; bashLoadFpath'
alias cd_exp='cd ${DIREXPLOIT}'
alias cdexp='cd ${DIREXPLOIT}'
alias cdi='cd /etc/init.d'
alias cd2='cd /etc/rc.d/rc2.d'
alias path='echo export PATH=$PATH'
alias fpath='echo export FPATH=$FPATH'
alias lpath='echo export LD_LIBRARY_PATH=$LD_LIBRARY_PATH'
alias ppath='echo $PATH | tr ":" "\n" | sort'
alias pfpath='echo $FPATH | tr ":" "\n" | sort'
alias plpath='echo $LD_LIBRARY_PATH | tr ":" "\n" | sort'
# no command prepend for ls because we may use another ls alias later
alias ll='ls -Alq -F ${ls_colors}'
alias lld='ls -Aldq -F ${ls_colors}'
alias lrt='ls -lArtq -F ${ls_colors}'
alias lrtd='ls -lArtdq -F ${ls_colors}'
alias lrth='ls -lArtq -F ${ls_colors}|head -20'
alias lrtt='ls -lArtq -F ${ls_colors}|tail -20'
alias lla='ls -lAq -F ${ls_colors}'
alias lrta='ls -lrtAq -F ${ls_colors}'
alias grep='command grep ${grep_colors} -I'
alias grepr='command grep ${grep_colors} -Ir'
alias egrep='command grep ${grep_colors} -IE'
alias egrepi='command grep ${grep_colors} -Ii'
alias egrepr='command grep ${grep_colors} -IEr'
alias dusk='command du -sk ./*|sort -n'
alias dusmt='command du -sm ./* 2>/dev/null|sort -n|tail'
#alias dusmcd='command test ${_dusmcd} || dusm; cd ${_dusmcd} && unset _dusmcd'
alias dfk='dfm -k'
# http://www.danielmiessler.com/study/lsof/
#alias lsofni='command lsof -nsRPi | egrepi -E'
#alias lsofi='command lsof -sRPi | egrepi -E'
alias lsofni='command lsof ${lsof_options} -nRPi | egrepi -E'
alias lsofi='command lsof ${lsof_options} -RPi | egrepi -E'
# alias psef='command ps -wwwef | grep -v grep | egrepi -E'
# alias psef='command ps -${PsWw}ef | grep -v grep | egrepi -E'
# alias psef='command ps -${Pseo} | grep -v -- grep | egrepi -E'
alias psev='command ps -e -o pid,vsz,comm= | sort -n -k 2'
alias vnstat='command vnstat -i'
alias topp='psef | /bin/grep -v -E -- "USER|pts/" | command sort -rk4 | command head -n 10'
alias version='eval ${version}'
alias tvm='command tail -20 /var/adm/messages'
alias scp='${scp}'
alias llcpio='echo "cpio -idmvu <file.cpio"'
alias nmon2disk='cd /tmp; command nmon -f -T -s60 -c480'
alias purge10='command find . -mtime +10 -type f -exec unlink {} \;'
alias purge20='command find . -mtime +20 -type f -exec unlink {} \;'
alias purge30='command find . -mtime +30 -type f -exec unlink {} \;'
alias purge45='command find . -mtime +45 -type f -exec unlink {} \;'
alias tf='command tail -f'
alias ttf='command tail -n +1 -f'
alias t50='command tail -50'
alias h50='command head -50'
alias h1='command head -1'
alias hd='command hexedit'
alias he='command hexedit'
# alias trim="sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'"
# alias ltrim="sed -e 's/^[[:space:]]*//g'"
# alias rtrim="sed -e 's/[[:space:]]*\$//g'"
alias vim='vim -u ${VIMRC}'
alias alais=alias
alias telent=telnet
alias more=less
alias wget="command wget ${wget_options}"
alias xl='xargs --show-limits'
alias gitp='git add -A . && git commit && git push'