Process management
killing process may lead to data corruption -
ctrl+Z -> Paused
jobs
background &
jobs
%1 - switch back to foreground for job #1
%2 -
bg 1 -> Paused apps runs in background.
fg 1 -> Brings the app to foreground.
Deprioritize the process - you don't have to kill the process.
"nice"ness value - 0 is default.
-20 to +19 ( minus 20 - TOP priority, usually kernel process like kworker )
#nice -n 11 vim /file1.txt ( setting priority when starting process )
NI -> 'NI'ceness value.
#renice -n 11 1234 -> changes the priority of the running process
#pgrep vim ( shows all process id linked to "vim")
#killall firefox ( kills all copies for 'firefox' process and their child process )
Comments
Post a Comment