← Useful Tips
SSH / ServerSsh

nohup command > out.log 2>&1 &: Keep a command running after the terminal closes

Use nohup command > out.log 2>&1 & to keep a command running after the terminal closes. It cuts friction in remote-server work and long-running jobs.

nohup command > out.log 2>&1 &

Why it helps

Use nohup command > out.log 2>&1 & to keep a command running after the terminal closes. It cuts friction in remote-server work and long-running jobs.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
nohup command > out.log 2>&1 &: Keep a command running after the terminal closesnohup command > out.log 2>&1 &keep a command running after the terminal closeshow to keep a command running after the terminal closesSSH / Server keep a command running after the terminal closes

Related tips