Managing Processes
What is a process?
Any program that is active/running in your system it is a process. A program is an executable file which is save in the storages of the machine when you execute/run it create processes. Commands create process too because they are save in /bin and /sbin they are tiny programs that also save in your system when you execute a commands like uptime or ls it gives you an output so they are process.
Foregound processes(fg) and background processes(bg)
Foreground processes: It take less time in executing so administrator run them in foregroung(fg).
Background processes: When admins execute processes on shell some processes take time and take the terminal and while they executing/running admins can not do anything on terminal. So they use "&" end of programs/commands and system take in the background(bg) to run.
There are different stages of processes
Running processes who are running in background
Sleeping some processes depends on the provious proceeses output then admins put process on sleep when their previous process complete then this process can execute
Stop admins put some process on sleep which they don not need immediately so they put them on sleep and can run again when they need to run it.
Waiting some process wait for more output so they on wait state
Zoombie zoombie processes are those processes when we kill the parents processes and it leave behind the child process. child process do not resources on the system we can not kill them only eliminate to reboot the system
Jobs/processes Management overview
& it takes the jobs immediately in the background
ctrl c to cancel the job
ctrl z to temporary stop the job
ctrl d stop waiting for further output
fg brings jobs from the background
bg continue job that has been stop with ctrl z
jobs to see background proceeses the state/status
Comments
Post a Comment