-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hello Ted, Yes, there is a missing ' + ' (plus) sign and spaces around it (I'm not sure why is missing) after the {} (curly brackets). The command line should be: find /var/log/ -type f -mtime +30 -exec rm -rf {} + ; Actually the -rf argument is not needed after the rm command in the example, but it's a habit (probably a bad one) to always write it. Sorry for the confusion. Regards, I. Petrov On 05/18/2015 06:36 PM, Ted Byers wrote:
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
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVWk1pAAoJEH8sJoKRFRU5LUIP/RbyWqnSi1OLAUzQRlkpFJiu HGC2JGG2SdOGIrgoprgUW8s18JwQ+lR4X1tOaJIsJX9mIPih2PhwhVFWF4gptQ/l mZfrzvfVyAvxpYEBfkUXxKhc3IAv0q/eZtmvftW6o7LQJNUVatMJ/tCBWyghL3YT +G9fMUbrCD4k3PTZ3sjk97W9DF9H0G8VIlKpsQXv6TvXzuoo2qlzk4MHjWMO9i34 CFdO/WqTR1wqZJCl19lZv5HnSN8hxOU9mWdcfPdypQd5KPfBvnOT2NL1NSEGWoRp sOK/EZPbGLxgCOkBZVLSVnEGx8lDyriDzcoz8Mg/dIAQFOc097iPdD7NTU3gtANC o1xgbqRrhNzoEN/m7Ldc38U0ZykScSOYCJn61CQgh3z+3CTaAnycSJ0ByHU+Z0oV SOkA+pnxKLksShbY+aZ274N0XiaRu2Etok9wBh/DmmZuxfa2WywRjM67MqNsnNgT xiq/na2w3gZBXVYMH3SW849eW0nGIwxnuqKmOGTgrNhylFFECIcIrRknHSFMSXQq gM4nQanmzUSM9o9FeX8JCawX8zvNmZ0faIjI7dX6PeiiYmyD/+7HrGIe6gj2WhaJ BSd1049suA7ySeO+OL1s1/uyeYEyQETCvlg+tqskwpWq9u62ylC74zMOf7yMDjVD rlSYcWotxqrizRnP9qlr =nWXO -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org