Command Find in your Linux OS

Hari ini main2 sama find lagi ngubek2 data tertentu yang mo di pindahain kedalam satu folder, ubek2 manual masih gak lengkap, ngubek2 google and nanya temen akhirnya dapet

find ./ -name *.ria -exec mv -v {} /home/ria \;

huheheehehe….untuk manual lengkapnya sebagai berikut di copy paste dari sini:

========================================================

 

Sometimes we need to find the file in server which we do not know where exactly it is located:

Search and list all files from current directory and down for the string ABC:

Quote:

find ./ -name “*” -exec grep -H ABC {} \;
find ./ -type f -print | xargs grep -H “ABC” /dev/null
egrep -r ABC

 

Find all files of a given type from current directory on down:
Quote:

find ./ -name “*.conf” –print

 

Find all user files larger than 5Mb:
Quote:

find /home -size +5000000c –prin

 

Find all files owned by a user (defined by user id number) on
the system: (could take a long time)

Quote:

find / -user 501 –prin

 

Find all files created or updated in the last five minutes: (Great for finding effects of make install)
Quote:

find / -cmin -

 

Find all world writable directories:
Quote:

find / -perm -0002 -type d –prin

 

Find all world writable files:
Quote:

find / -perm -0002 -type f -print
find / -perm -2 ! -type l -ls

 

Find files with no user:
Quote:

find / -nouser -o -nogroup –print

 

Find files modified in the last two days:
Quote:

find / -mtime 2 -o -ctime 2

finding files in a directory that are older than 3 days and deleting them:
Quote:

find /directoryname -type f -mtime +3 -exec rm {} \;

7 Comments so far »

  1. by Gunawan Djamil, on March 12 2008 @ 1:52 am

     

    Klo buat nyari cinta sejati gimana mbak … :P

  2. by ria, on March 12 2008 @ 4:00 pm

     

    Kalo kata orang2 sih gak usah di cari mas…pasti juga dateng sendiri :D

  3. by resi bismo, on March 12 2008 @ 4:11 pm

     

    kalo yang gini2 an nyerah deh…. gak ngerti!

  4. by ria, on March 13 2008 @ 9:14 am

     

    hihihihi…mo nyoba linux mas??? bagus loch :D

  5. by Tony, on March 20 2008 @ 10:11 pm

     

    Blog yang menarik ! Muncul paling atas pada saat searching linux kluwek :)

  6. by Tony Seno, on March 20 2008 @ 10:49 pm

     

    Tips bagus :) tapi kalau saya sih cari2 data di komputer saya (ubuntu) pakai “recoll”…

  7. by ria, on March 24 2008 @ 8:05 am

     

    ya bisa juga sih mas…itu di tulis lengkap soalnya butuh mencari sesuatu di server waktu itu :D
    mungkin aku bisa paling atas pas nyari linux kluwek karena aku bikin posting tentang itu :)

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

eMail: (Required)

Website:

:) :( :d :"> :(( :n/ :x 8-| /:) :o :-? :-" :-w ;) [-( :)>- more »

Comment:


 

Whoami

Me…is Me…Ria, one of talk active person, sensitive, loving for freedom, freak of green, loving my mom n family much, like to make a friend, waiting someone propose me ^_^, love IT world, Miss my old friend…and so many things that I’ve to write and share with You…This is the real me..Simple person..Simple Girls…Ordinary Girl....