On 15-05-15 05:13 PM, I.Petrov wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hello Ted,
The following command will delete all files older than 30 days in the /var/log/ directory and all of its subdirectories:
find /var/log/ -type f -mtime +30 -exec rm -rf {};
The old files in /var/log/ are smaller because are compressed. Resizing of the partitions (shrinking on some of them and extending of others) should be possible but must be made from a live cd/usb as the partitions which will be resized must not be mounted. However I would do a backup of whatever I can if I choose to to do this.
Regards, I. Petrov Thanks for this.
Alas, there seems to be a typo, or something. The following is what I got in the session in which I tried: ted@gremlin:~> find /var/log/ -type f -mtime +30 -exec rm -rf {}; find: missing argument to `-exec' ted@gremlin:~> Why would it not see 'rm -rf {}; as the argument for '-exec'? Thanks Ted -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org