Definição
nohup mantém o processo rodando depois que o terminal fecha. Combine com & e redirecione a saída.
Para sessões longas, tmux ou screen são alternativas mais confortáveis.
Exemplos
1. Rodar e desconectar
nohup python etl.py > etl.log 2>&1 &
2. Guardar o PID
nohup python etl.py > etl.log 2>&1 & echo $! > etl.pid
3. Acompanhar depois
tail -f etl.log kill $(cat etl.pid)