Search This Blog

Wednesday, November 4, 2009

Linux, find tool trick

Many times when you are working with some application which create some lock/log/shared/record files you want to know what is happening for a sort time ago for example. The quick trick with the find tool allow you to find for example all files which ware created/changed for _xyz_ minutes ago.

How to find quickly new created files in some directory:

$ find /tmp/ -cmin -1 -maxdepth 1
$ find /tmp/ -cmin -10 -maxdepth 1

1 comment:

  1. I have a easy and a quick command to locate and to use this command at the terminal you will have to type:
    $ locate -i searchstring
    This will search all the files and directories with "Searchstring" in the name, and -i means the search is not case sensitive, and you will get the result instantly
    Hope you like this command.configuration management

    ReplyDelete