jueves, 12 de diciembre de 2024

How to Run Linux Commands in Background

 Using Ampersand
[command] &
 

Check the background processes' status in the current shell session with the jobs command jobs

Using System Redirects [command] output.log>&1 &
ping phoenixnap.com >/dev/null 2>&1 &

Using nohup
nohup myscript.sh >myscript.log 2>&1 </dev/null &

No hay comentarios:

Publicar un comentario