-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases
59 lines (53 loc) · 2.16 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
# -------------------------------------------------------------------
# .bash_aliases
#
# Various aliases that I like and use.
# -------------------------------------------------------------------
# -------------------------------------------------------------------
# My General purpose aliases
# -------------------------------------------------------------------
alias ..='cd ..'
alias ...='cd ../..'
alias 1='cd -'
alias 2='cd +2'
alias 3='cd +3'
alias 4='cd +4'
alias 5='cd +5'
alias 6='cd +6'
alias 7='cd +7'
alias 8='cd +8'
alias 9='cd +9'
alias _=sudo
alias afind='ack-grep -il'
alias cd..='cd ..'
alias cd...='cd ../..'
alias cd....='cd ../../..'
alias cd.....='cd ../../../..'
export LS_OPTIONS='--color'
alias ls='ls $LS_OPTIONS -F'
alias l='ls $LS_OPTIONS -lahF'
alias ll='ls $LS_OPTIONS -lhF'
alias lll='ls $LS_OPTIONS -laF'
alias sl='ls $LS_OPTIONS' # often screw this up
# Show me the size (sorted) of only the folders in this directory
alias folders="find . -maxdepth 1 -type d -print | xargs du -sh | sort -rn"
# Show me all the large files from here down in the file system
alias findlarge="find / -type f -size +10M -exec ls -lh {} \;"
# Set vi to open vim for systems that have both
vi='vim'
# -------------------------------------------------------------------
# Yum
# -------------------------------------------------------------------
alias ys="yum search" # search package
alias yp="yum info" # show package info
alias yl="yum list" # list packages
alias ygl="yum grouplist" # list package groups
alias yli="yum list installed" # print all installed packages
alias ymc="yum makecache" # rebuilds the yum package list
alias yu="sudo yum update" # upgrate packages
alias yi="sudo yum install" # install package
alias ygi="sudo yum groupinstall" # install package group
alias yr="sudo yum remove" # remove package
alias ygr="sudo yum groupremove" # remove pagage group
alias yrl="sudo yum remove --remove-leaves" # remove package and leaves
alias yc="sudo yum clean all" # clean cache