Que se passe-t-il après i ctr + c pendant un nohup via ssh?

J’ai quelques questions sur Nohup. Ci-dessous, les commandes et les résultats que j’ai essayés. Si je dois utiliser nohup ... & et puis disown , alors à quoi sert le nohup ? J’aurais pu simplement utiliser ... & et puis disown .

Exécutez une commande avec nohup puis ctr + c, la commande ne se poursuit pas

 $ nohup somecommand -option inputfile > outputfile nohup: ignoring input and appending output to `nohup.out' ^C 

Exécuter la commande avec nohup ... & puis ctr + c, la commande continue mais s’arrête après la sortie

 $ nohup somecommand -option inputfile > outputfile & nohup: ignoring input and appending output to `nohup.out' ^C $ exit 

Exécuter la commande avec nohup ... & puis ctr + c, la commande continue même après la sortie

 $ nohup somecommand -option inputfile > outputfile & nohup: ignoring input and appending output to `nohup.out' ^C $ disown $ exit 

Exécuter la commande avec sans nohup et puis ctr + c, la commande continue même après la sortie

 $ somecommand -option inputfile > outputfile & nohup: ignoring input and appending output to `nohup.out' ^C $ disown $ exit 

Assurez-vous de redirect stdout et stderr en utilisant nohup et &

 nohup somecommand -option inputfile > outputfile 2>&1 & exit 

commande serait toujours en cours d’exécution.