Learn Linux Cli Process and Jobs

Posted by Moussan



in this chapter we will cover how to manage linux process and jobs to keep RAM works in High Performance on the server



Usage : Display the number of shell you own in the system


Usage : to know commands which have been run on the system and their shell numbers


Usage : to know more information about commands which have been run on the system and their shell numbers also user number who type this command on shell


Usage : to know every process run now on the linux server and the users who run it


Definition : it's process can not be stop unless in case of shutdown or reboot

Example : Commands which are responsible for GUI can not stop because if that happed we will be unable to see the Graphical User Interface of the server


Usage : to kill any process runs on the system by its PID number

Usage : to know PID number of each process runs right now use { ps -f } Command


if we want to arrange group of commands but first command will take huge time

Sleep {seconds} Command

Usage : will make any command you type be holded in a queue and after the time done the commands will run in Arrangement from oldest command to newest command


to make commands work in background mode so you will be able to run group of commands at the same time without waiting each command to be done first

it's very usefull in some cases like system backup commands

Example : { Command } + { & }

you just have to add ( & ) sign after any command you want it to work in background mode


Usage : Display Jobs works in background mode and their Job ID number


Usage : move any job works in background to foreground by its Job ID


Usage : used for performance monitoring this command display all processes running on the system and their percentage of consumption of Processor and RAM memory


Usage : it's GUI tool for performance monitoring like task manager in windows os


Example : nice -10 {Command}

Usage : change process priority value of any executable command you will run to make the processor give this command more working speed than the other commands

priority value from -20 to 19


Example : renice -10 {Command}

Usage : change process priority value of any command you already executed on the system to make the processor give this command more working speed than the other commands

priority value from -20 to 19


Usage : for Scheduling Jobs at specific time

Example : Type in Terminal

Root# at now + 2 hours

at > cd dir

at > rm -f file1

To Exit : Ctrl + D