show processes and confirmation for remove files

This commit is contained in:
tinogomes 2011-08-14 03:50:25 -03:00
commit e6661db7ea
2 changed files with 14 additions and 1 deletions

View file

@ -15,3 +15,11 @@ function take() {
cd $1
}
function show_processes() {
if (($# == 0)); then
ps -ef
else
echo " UID PID PPID C STIME TTY TIME CMD"
ps -ef | grep $*
fi
}