Run a command in the background
Type here
command &
Run a long training script in the background
Type here
python3 train.py &
Redirect errors to a separate log file
Type here
python3 script.py > output.txt 2> errors.log
Keep a script running after the terminal closes
Type here
nohup python3 train.py > train.log 2>&1 &