-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
66 lines (56 loc) · 1.5 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#Aliases
alias ls='ls --color=auto'
alias ll='ls -la'
alias lrt='ls -lrta'
alias grep='grep --color=auto'
# Source other aliases
if [ -f ~/.work_aliases ]; then
source ~/.work_aliases
fi
#Readline wrapper utility that provides a command history and editing of keyboard input for SQL*Plus and RMAN
alias rlsqlplus='rlwrap sqlplus'
alias rlrman='rlwrap rman'
#Useful aliases
alias mkdir='mkdir -pv'
alias quota='quota -usQ'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias du='du -kh'
alias df='df -kTh'
alias cd3='cd ../../..'
alias cd4='cd ../../../..'
alias ducks='du -cksh * | sort -hr | head -n 15'
#Edit files fast
alias vibashrc='vim ~/.bashrc'
alias srbashrc='. ~/.bashrc'
alias viprofile='vim ~/.bash_profile'
alias srprofile='. ~/.bash_profile'
alias vialias='vim ~/.bash_aliases'
alias viwalias='vim ~/.work_aliases'
alias vitmux='vim ~/.tmux.conf'
alias virc='vim ~/.vimrc'
#Common typos
alias l='ls'
alias sl='ls'
alias xs='cd'
alias vf='cd'
alias cd..='cd ..'
alias kk='ll'
#Stop after sending count ECHO_REQUEST packets
alias ping='ping -c 1'
alias ping4='ping -c 4'
#Do not wait interval 1 second, go fast #
alias fastping='ping -c 100 -s.2'
#Vnc spawn
alias vncstart='vncserver :13 -geometry 1920x1080'
#Open ports
alias ports='netstat -tulanp'
#Other useful aliases
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias path='echo -e ${PATH//:/\\n}'
alias now='date +"%T"'
alias nowtime=now
alias nowdate='date +"%d-%m-%Y"'
# distro specifc RHEL/CentOS ##
alias update='sudo yum -y update'