bash: psk --
This commit is contained in:
parent
2dfabccd91
commit
65431d8c82
1 changed files with 14 additions and 13 deletions
27
.bash_extra
27
.bash_extra
|
@ -74,19 +74,19 @@ function m2m {
|
|||
fi
|
||||
fi
|
||||
}
|
||||
function psk {
|
||||
if [[ "$1" == "--help" ]]; then
|
||||
echo "Beende Prozess "\$1""
|
||||
echo ""
|
||||
echo " Usage: psk <prozessname>"
|
||||
else
|
||||
if [ -z "$1" ]; then
|
||||
echo "[ERROR] Prozessname fehlt..."
|
||||
else
|
||||
ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9
|
||||
fi
|
||||
fi
|
||||
}
|
||||
#function psk {
|
||||
# if [[ "$1" == "--help" ]]; then
|
||||
# echo "Beende Prozess "\$1""
|
||||
# echo ""
|
||||
# echo " Usage: psk <prozessname>"
|
||||
# else
|
||||
# if [ -z "$1" ]; then
|
||||
# echo "[ERROR] Prozessname fehlt..."
|
||||
# else
|
||||
# ps -ef | grep "$1" | grep -v grep | awk '{ print $2 }' | xargs kill -9
|
||||
# fi
|
||||
# fi
|
||||
#}
|
||||
function rgf {
|
||||
if [[ "$1" == "--help" ]]; then
|
||||
echo "Finde alle Dateien die "\$1" im Namen haben."
|
||||
|
@ -177,6 +177,7 @@ alias grep="grep -i --color=auto"
|
|||
alias hostname="hostname -f"
|
||||
alias untar="tar -xzf"
|
||||
alias unmount="umount"
|
||||
alias psk="pkill"
|
||||
# git
|
||||
alias gp="git stash && git pull && git stash pop"
|
||||
alias gf="git fetch"
|
||||
|
|
Loading…
Reference in a new issue