Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
My as far as I know /var/ directory stores variable size data , and /tmp/ directorie store temporary files.
Does this imply that if I delete the contents of both of this dirs , my system is going to function ok for now on ?
i.e deletion of /tmp/ and /var/directory contents does hurt the system ?
I thought it was better to ask before proceed
That would cause many programs not to work. /tmp is the temporary directory and /var is used to store log files, printer spools, and cache files which many programs access.
That would cause many programs not to work. /tmp is the temporary directory and /var is used to store log files, printer spools, and cache files which many programs access.
This would happen even if I delete thees directory files at the very startup ( manually , after system finished the startup process ) ?
Originally posted by puishor This would happen even if I delete thees directory files at the very startup ( manually , after system finished the startup process ) ?
Yes, there are files that many programs look for and will generate errors if they're not found.
If you're trying to save space, I would use the logrotate package and archive/delete the old log files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.