Hapus semua file secara otomatis di linux

mencari dan mengumpulan file *.thor lalu memindahkan file tersebut dengan nama file-jahat2.txt

#find / -name “*.thor” > file-jahat2.txt

lallu menghapus file tersebut secara sekaligus.

for f in `cat file-jahat2.txt`; do rm “$f” -rf; done

atau cara simple nya adalah menghapus secara otomatis semua file dengan extention locky dan thor disemua folder

find / -name “*.locky” -delete

find / -name “*.locky” -delete

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s