command linux : hapus file secara massal / rekursif


menghapus file secara Rekursif/Massal

find /home/serverfile/mirror1/umum/ -type f -name "*mp3" -exec ls -f {} \;
find /home/serverfile/mirror1/umum/ -type f -name "*mp3" -exec rm -f {} \;

hapus directory secara Rekursif/Massal

find /home/serverfile/mirror2/mirror-project/ -type d -name "*video*" -exec rm -Rf {} \;

melihat besar sebuah folder / size folder

du -s -h /home/folder2/16980/*


sumber : Vavai

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: