Englisch Linux nohup command

1 Antwort
Gehe zu Seite
Zum Anfang Vorherige 1 Nächste Zum Anfang
06.12.18 09:55:59
Hoch
macnux
User
Offline Off
Hello,

I learned that nohup command can run a command after closing the session from this article https://likegeeks.com/linux-command-line-tricks/.
Now, what about returning back and see the progress of the running command?
How can I return to see the results?

Thank you.
06.12.18 15:29:28
Hoch
Fraizeraust
Moderator
Offline Off
nohup
will automatically output the data to a file named nohup.out which is located in the working directory (the directory location which you executed the command line). You've to use a text editor to look up at that file.

Alternatively, you can tell nohup to redirect the output to a defined file. To do so you must use the following command line below.
Code:
1
nohup some_command > output.log 2>&1&

output.log is only an example, you can replace the filename with whatever you want.
Zum Anfang Vorherige 1 Nächste Zum Anfang