Mencari file berdasarkan ukuran file

Perintah berikut untuk mencari file lebih dari 20M, anda bisa menyesuaikan besar file yang ingin di cari

find / -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'

Contoh hasil

/var/lib/mysql/ibdata1: 58M
/var/cache/yum/i386/6/base/27c84f25664a218c9c0df304facd771dd951189814c502465a8dad11f0bc27c9-filelists.sqlite: 29M
/var/cache/yum/i386/6/epel/ee56f2c038e00aad1a6e1241266dbca1797bebcdcff0ff4687d4c2a8d436b00a-primary.sqlite: 22M
/var/cache/yum/i386/6/epel/003e57633e2cb02eb2beb17a47b55a03ed56acab55da78664bcce659a47403ad-filelists.sqlite: 39M
/var/cache/yum/i386/6/updates/9d20d0d5642d2e70182c1ad67540b9a3cadf75f1853c9a89988772e00eb7f52a-filelists.sqlite: 23M
/usr/lib/locale/locale-archive-rpm: 95M
/usr/lib/galera/libgalera_smm.so: 24M
/usr/lib/libmysqld.so.18: 50M
find: `/proc/8495/task/8495/fd/5': No such file or directory
find: `/proc/8495/task/8495/fdinfo/5': No such file or directory
find: `/proc/8495/fd/5': No such file or directory
find: `/proc/8495/fdinfo/5': No such file or directory
  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Install Comodo Web Application Firewall

Signing-up untuk Comodo Web Application Firewall di...

Menangani HTTP Attack dengan mod_antiloris

Request pertama datang dari client ke protokol http, lalu web server membuka 1 koneksi http dan...

Membuat Folder di Proteksi Password dengan .htaccess

Dengan .htaccess membuat sebuah folder yang di lindungi password sangat lah mudah, buat file...

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Issue:- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)...

clamscan/freshclam: command not found

Jika anda menginstall ClamAV melalui Manage Plugins pada WHM cPanel, mungkin saja anda akan...