Process management Bash (Unix shell)



in example, when command1 finished, command2 executed.


to have concurrent execution of command1 , command2, must executed in bash shell in following way:



in case command1 executed in background (symbol &), returning control shell executes command2 in foreground.


besides foreground , background, process can stopped. achieved typing ctrl+z while process running in foreground. list of processes, both in background , stopped, can achieved running jobs:



in output, number in brackets refers job id. plus sign signifies default process bg , fg. text running , stopped refer process state. last string command started process.


the state of process can changed using various commands. fg command brings process foreground, while bg sets stopped process running in background. bg , fg can take job id first argument, specify process act on. without one, use default process, identified plus sign in output of jobs. kill command can used end process prematurely, sending unix signal. job id must specified after percent sign:








Comments

Popular posts from this blog

Discography Ole Paus

Gaeta class Lerici-class minehunter

Driver.27s licenses used for identification purposes Driver's license