Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file called "nohup.out". It is consuming a lot of space and I will like to remove it.

/opt/apache-activemq-5.2.0/bin/nohup.out: 4.2G

Will it affect the application in any way? I do not want logs, only disk space.

share|improve this question
up vote 3 down vote accepted

That's the output of a file produced by the nohup program, which is used to run things in the context of a shell, but without the program being killed when the shell is exited. You can delete it if you don't want what's in it, but if the program that created the file is still running, then the disk space won't actually be reclaimed until the program exits.

Also, the chances are that whatever created the file will probably do it again in the future, so you really want to run activemq as a proper daemon, rather than someone logging in and running it in a shell with nohup.

share|improve this answer

As another idea, you could run it so that there is no output to be placed into nohup.out:

Just start the command like this:

nohup command > /dev/null

This will cause the output from everything to be sent to "/dev/null" and disappear. If you don't care about the logs, this is the easiest way to stop the file from taking up room on the HDD...

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.