Delete private var log files


















Learn more. Ask Question. Asked 9 years, 5 months ago. Active 1 year ago. Viewed k times. Just had the message: Low disk space.. Improve this question. Paul B Paul B 2 2 gold badges 8 8 silver badges 19 19 bronze badges. An alternative is to compress it using gzip or bzip2 -- though this requires temporarily having enough space to hold both uncompressed and compressed copies of the file. Add a comment. Active Oldest Votes. Improve this answer. Eliah Kagan Eliah Kagan k 51 51 gold badges silver badges bronze badges.

Thanks for the advice. I have now found out the offending log file is a "mail. Here is the link to the Ubuntu forum: [ ubuntuforums. I hope this helps anyone with a similar issue with root space loss. I now have 60Gb free space after deleting the offending. This file is executed every time you log in or launch a terminal instance, thus your logs will always be deleted.

Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Learn more. Ask Question. Asked 11 years, 3 months ago. Active 8 months ago. Viewed k times.

Does anyone have a good rm command line? My admin skills leave me nervous. Note: I am using Debian. I am not sure what version. Improve this question.

Aaron Copley Deleting log files is a bad idea you'll also need to find every running process that has it's own log file and "kill -HUP" it, a soft restart that will result in the program recreating any necessary log files.

What problem are you trying to resolve that's led you to consider this? Add a comment. Active Oldest Votes. Instead of deleting the files you should rotate them, e. Improve this answer.

Well, IMHO deleting all logs can make perfect sense in some cases. M Boyle This person is a verified professional. Have a look at logrotate. Change the config files for the various logs to not keep rotated log files. General Linux expert. Never remove anything recursively, rm -rf unless you know exactly what you are doing. I would also suggest that you never delete a log file. Even if the logging process re-creates the file, the permissions might not be correct. For security purposes, processes, users, and groups that can read and write log files, and their directories, have to be controlled.

Follow Martin Boyle's advice above and rotate the logs. I have a problem where when I try to delete any files in this folder it tells me I dont have permission. I am the only one on this computer and I am admin. I have tried to change permissions using the File: Get Info tab to change permissions but it says that I can only read and I cant change it. Did you read the article? The article is located above the comments section, it explains this thoroughly.

Thank you so much for yr help. I had no idea on what to do…. And for all the other idiots who have nothing positive to say, if you are all such apple geniuses why were you even on this site if you know it all. This is to help people who need it. Grow up…. Seriously get a life!! I use Onyx to do tasks like this. It is a very well-done and comprehensive maintenance program…been using it for at least ten years now, on every iteration of OS X that has come.

My MBP stays trouble-free. Why do you brain boxes use this forum to sneer and witch at each other, wasting time, space and air when there are interested parties like little me with a keen thirst to gain knowledge who would welcome your genuine help?

Your arrogance only shows your indifference, and is a measure of to which depth your heads are rectally positioned. You win this thread. And what ever happened with Applejack, which was a great way to clean up various aspects of the Mac? Aside from that, AppleJack is a fantastic program, and I use it every once in a while when I feel my Mac becoming a little sluggish.

Prior had purchased a right to use software. Now were forced to write and to ask please could we get serial numbers for software which had been working under a former OS. Is the title over your head? This could have been done in half the length. Why did I have to read that long repetitive introduction? Sign me up for your Apple Newsletter Mike, you know it all and I am ready to absorb your knowledge. I am available at ToddMakowski yahoo. Regular reporting rebooting is.

Good idea in general.



0コメント

  • 1000 / 1000