Cara Empty files menggunakan shell script

Jalankan shell scpript dibawah ini, untuk mengosongkan logs yg berjibun.

for file in /nama/apps/logs/*.log; do > $file; done

Pastikan anda di path folder yang tepat ๐Ÿ™‚

Please follow and like us:
0

Leave a Reply

Your email address will not be published. Required fields are marked *