Last active
September 1, 2015 10:55
-
-
Save justsml/b667f158731fd054cd38 to your computer and use it in GitHub Desktop.
a helpful .bash_aliases file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clear the terminal | |
alias cls='clear' | |
# Network Stats | |
alias ports="netstat -ltpn" | |
alias ports-apps="netstat -plt" | |
# IP Helper | |
alias ips='hostname --all-ip-addresses' | |
# list startup services | |
alias service-list="chkconfig --list | grep '3:on'" | |
alias services-all="chkconfig --list | grep '3:on'" | |
# monitor logs | |
alias slog='tail -200f /var/log/syslog' | |
alias mlog='tail -200f /var/log/messages' | |
# List path | |
alias path='echo -e ${PATH//:/\\n}' | |
# searching & stuff | |
alias grep='grep --color=always' | |
alias fgrep='fgrep --color=always' | |
alias egrep='egrep --color=always' | |
# ls modifiers - should be more helpful to use ll or l now | |
alias ls='ls --color=always' | |
alias ll='ls -lach --color=always' | |
alias l='ls -lach --color=always' | |
alias la='ls -A --color=always' | |
alias lsbig='ls -lachS --color=always' | |
alias lsnew='ls -lacht --color=always' | |
alias dir='dir --color=always' | |
alias vdir='vdir --color=always' | |
# Disk space in human sizes, with sum total | |
alias df='df -h' | |
alias du='du -h -c' | |
alias dud='du --max-depth=1 -h -c' | |
alias du1='du --max-depth=1 -h -c' | |
alias du2='du --max-depth=2 -h -c' | |
alias du3='du --max-depth=3 -h -c' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment