-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
42 lines (34 loc) · 1019 Bytes
/
.bash_aliases
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
alias c='clear'
alias l='ls -alh --color=auto'
alias ls='ls --color=auto'
alias lm='ls -al|more --color=auto'
alias ldir='ls -ld */'
alias cl='clear & ls -alh --color=auto'
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'
alias cp='cp -rv'
alias mv='mv -v'
alias mkdir='mkdir -pv'
alias df='df -h'
alias du='du -h -c'
alias myip='curl http://ipecho.net/plain; echo'
alias ducks='du -csh * | sort -rn | head'
## web
trip(){
curl -s -w "%{time_total}\n" -o /dev/null $1
}
## get top process eating memory
alias psmem='ps auxf | sort -nr -k 4'
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
## get top process eating cpu ##
alias pscpu='ps auxf | sort -nr -k 3'
alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
## Python
alias pym='python3 manage.py'
alias mkenv='python3 -m venv env'
alias startenv='source env/bin/activate && which python3'
alias stopenv='deactivate'
## Monitor
alias bmonitor='xrandr --output eDP-1 --off'
alias lmonitor='xrandr --output eDP-1 --display :0.0 --auto'