~Search~ Nyari file di konsol linux

# find / -name ‘.qmail:dhanni’

Option lainnya

# find /home -name ‘*.avi’ ( cari file dgn extesion AVI )

# find /home -name ‘*.mpg’ -o -name ‘*.avi’ ( cari 2 pencarian )

# find /home -iname ‘*.mpg’ -o -iname ‘*.avi’ ( -iname cari file yg sama persis-casesensitive )

# find /home/ -name ‘*.avi’ -a -size +700M ( cari file AVI yg lebih dari 700 MB)

# find /home/ -name ‘*.avi’ -a -size +700M -mtime -15 ( cari file AVI yg lebih dari 700 MB dan yg telah dimodif 15 hari lalu )

# find /home/ -name ‘*.avi’ -a -size +700M -mtime -15 -exec mv ‘{}’ /my/new/movies/ \;

( cari file AVI yg lebih dari 700 MB dan yg telah dimodif 15 hari lalu  pindahkan ke folder /my/new/movies )

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s