English Linux nohup command

1 reply
Goto Page
To the start Previous 1 Next To the start
06.12.18 09:55:59 am
Up
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 03:29:28 pm
Up
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.
To the start Previous 1 Next To the start