what happens if i?
what happens if it type sudo rm -r /var/* ?
|
Try it and see. (Hint: Linux will do exactly what you tell it to do but not always what you think you told it.) Hope you have a backup and a Live CD. :)
|
Quote:
|
Actually, I don't think you can cripple a system by deleting anything in /var, but you may mess it up at least for one session.
|
Quote:
That's crippling enough for me. But yeah, there will be some minimal functionality that will permit you to operate to restore your system. I doubt it would be worth your time however, I'd rather backup whatever needs to be backed up and then reinstall. |
Quote:
|
It will remove the /var directory. Don't try it on a good system. You'll need to reinstall.
|
None
|
what if i ust remove /var/logs or /var/log is that ok?
|
Quote:
|
Some loggers might need some dubdirectories in there. It depends on the logger and on the config. I am not sure if that would stop the syslogger from running or would just cause some warnings at startup.
Some programs might do slightly strange things when the system logger is not working. But it should be nothing major (besides the fact that you lose virtually all the chances to diagnose any possible problem in your system). |
If you do delete /var/log/* you will likely delete logs of packages you have installed ... I wouldn't consider that crippling, but it will affect you.
When I say crippling, I mean that you would need to boot a live CD (as was mentioned in post # 2) and fix everything in order to regain a functional system. Deleting /var may crash some programs and delete some possibly important stuff, but you should still be able boot properly, and your computer will still be usable, plus some likely bugs that will appear as a result. |
Why do you want to do this ?
|
Quote:
|
Quote:
Good luck. |
All times are GMT -5. The time now is 11:49 PM. |