Last active
August 29, 2015 14:05
-
-
Save nasieti/a1b1cbdc5b54cb109a8f to your computer and use it in GitHub Desktop.
favorite bash/shell aliases and hacks
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
# screen hacks | |
LESS='-MRXFC~' | |
alias more='less -mFERX~' | |
# git | |
alias gi='git add -i' | |
alias gl='git log --oneline --all --graph --decorate' | |
alias glp='git log -p' | |
alias gp='git add -p' | |
alias gs='git status -b -s -uno' | |
alias gf='git diff --patch-with-stat' | |
# stream ops | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
# sysadmin | |
alias l='ls -CF' | |
alias la='ls -A' | |
alias ll='ls -halF' | |
alias ls='ls --color=auto' | |
alias mnt='mount | column -t' | |
alias dmesg='dmesg -T' | |
# ps | |
alias psx='ps -Hwwo psr=core,ppid,pid,uname,rss=mem-kB,maj_flt,pcpu,cmd --cumulative --sort pid -N --ppid 2' | |
alias psxg='psx | grep -C1' | |
# smart defaults | |
alias watch='watch -d' | |
alias wget='wget --no-check-certificate' | |
alias jobs='jobs -l' | |
alias diff='colordiff' | |
alias ping='ping -n' | |
alias vim='vim -c start' | |
# root | |
alias ipt='iptables -nvL --line-numbers' | |
alias lvs='lvs -a -o lv_path,lv_attr,segtype,stripes,stripesize,seg_pe_ranges,seg_size,seg_start -O seg_start,seg_pe_ranges' | |
alias smart='smartctl -iHcAl selftest' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment