IMP NOTE : When a process run , it uses stderr , stdin and stdout as standard input output redirections....
assume you are running commands like ping then,
when a process is running in background then for any output printing it uses default stdout/stderr which is terminal...so whenever it needs to print it will use the terminal...
Now , if we want to keep running in background then we need to overwrite the stdout, you can redirect to a file(output will be saved to a file) or to /dev/null (output not saved)
like ..
cmd 2(greater than symbol) filename &
The output will get redirect to a file.
Hello guys , this video is about understanding foreground and background processes in linux and nohup and disown command which are used to prevent processes getting SIGHUP signal , due to which process can run even if terminal is closed . II explained meaning of foreground processes and background processes with examples. In that , I described jobs command , fg command and bg command in linux .
Topics covered in this video are :
foreground process in linux
background process in linux
jobs command in linux
fg and bg command in linux
put foreground processes to background in linux
put background processes to foreground in linux
run command even if terminal is closed
nohup command in linux
disown command in linux
job id in linux
examples on foreground and background processes in linux
#jobs #nohup #disown #process #linux
_____________________________________________________
Support My Work On ...
Patreon :) / pedagogy
_____________________________________________________
Connect With Me On ...
Telegram :) https://t.me/vpedagogy
Instagram :) / vikramsingh100998
LinkdIn :) / vikram-singh-0b3712178
Facebook :) / vikramsingh100998