Wednesday, June 9, 2010

unix process tricks

kill -

kill levels
TERM 15
KILL 9
SIGABRT 6

http://unixhelp.ed.ac.uk/CGI/man-cgi?signal+7

nice the process

the nice level is the priority 1 being the highest and 19 being the lowest for normal users but super users can reach down to -20. The default level is inherited from the parent process but is usually 0.

nice -n nice_value command arguments

renice
renice [ -n increment ] [ -g | -p | -u ] ID ...

renice priority [ -p ] pid ... [ -g gid ... ] [ -p pid
... ] [ -u user ... ]

renice priority -g gid ... [ -g gid ... ] [ -p pid ... ]
[ -u user ... ]

renice priority -u user ... [ -g gid ... ] [ -p pid ... ]
[ -u user ... ]



nohup
start the process independent of its parent so you can kill its source shell

nohup cmd &

No comments:

Post a Comment