nohup
keep running after logoutnohup — no hang-up — starts a command that ignores the signal sent when a terminal closes. Combined with &, it lets a long job carry on after you disconnect from SSH.
nohup command & — start it, log out, and it is still running tomorrow.
At the terminal
Read the session first, then the notes: each numbered line in the output is answered by the note with the same number.
What the numbered lines are telling you
The job number and process id. Note the id: it is how you will find the process later.
With no terminal to print to, output is appended to nohup.out in the current directory.
Normally this would end the script. Because of nohup, it keeps running.
After logging back in, the process is running and its progress can be read from nohup.out.
Variations worth knowing
The same tool, pointed at a narrower question. These four cover most of what it is reached for day to day.
nohup ./job.sh > job.log 2>&1 &Sends both output and errors to a log file of your choosing.
tmux new -s workA session you can detach from and return to — better for interactive work.
systemd-run --user ./job.shRuns the command as a temporary systemd unit, with logging.
disown -h %1Protects a job that is already running from the hang-up signal.
In cybersecurity
A process that outlives your login is easy to forget and hard to notice.
nohup is the simplest way to leave something running on a machine. Processes whose parent is init and that belong to a user who is not logged in are worth a look.
The output file grows without limit and may contain credentials the command printed. Redirect it somewhere deliberate, with sensible permissions.
Nothing restarts the process if it crashes, and nothing stops it. For anything permanent, write a systemd unit.