Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

So I start some server with nohup ./myServer &, I actually have loging mon my server so I do not need any help from nohup with it, but any way I get 66GB nohup.out file in fiew days and that is a problem. I want just to start an app, leve it working on its own. So how to make nohup not create any output files and so not eat any space?

share|improve this question

1 Answer 1

up vote 13 down vote accepted

Redirect the output to /dev/null:

nohup ./myServer >& /dev/null &

Alternatively, if you want to discard the standard output but keep the standard error, you could use this:

nohup ./myServer > /dev/null &

You can find more details here if you need more control over the redirections (using bash):

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.