useful alias list:
==================
alias grep='grep --color'
alias l.='ls -d .* --color=tty'
alias la='ls -la'
alias ll='ls -l'
alias lr='ls -lrt'
alias ls='ls --color=auto'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
alias vi='vim'
useful funcs:
=============
pslist ()
{
if [ `java_pids | wc -l` -eq 0 ]; then
echo "No application processes running";
else
java_pidlist;
fi
}
java_pidlist ()
{
java_pids | xargs ps -o pid,ppid,command
}
java_pids ()
{
ps -elfW | grep java | grep -w $ENVIRONMENT_NAME | grep $USER | egrep $CONFIG/\(XXX\|YYY\) | awk -F " " '{print $4}'
}
标签:useful,--,notes,some,grep,alias,ls,java,color
From: https://blog.51cto.com/u_6174294/6207189