Posts Tagged ‘find’

Find files modified at a certain time

Thursday, October 23rd, 2008

To find all files that was modified since a specific time ago (i.e an hour ago, a day ago, 24 hours ago, a weeks ago and so on) in Unix environment, the find command will come in handy.
(more…)

Finding and locating files with find command

Monday, August 25th, 2008

let us see how to use find command
(a) To gain lots of useful information about users and their files

(b) Monitor and enhance the security of system using find command

(more…)

Finding large files and directories on Linux

Monday, August 25th, 2008

Use this simple command to find large directories. To find directories over 1GB

[root@localhost]# du -h / | grep ^[0-9\.]*G

G can be replaced with M if looking for MB instead.

To find directories over 10GB and sort the output with the largest directories on top

[root@localhost]# du -h / | grep ^[1-9][0-9][0-9\.]*G | sort -rn

(more…)

5 ways to find files in linux in Linux

Wednesday, March 5th, 2008

First off lets check to see if findutils and findutils-locate are installed.  You can check by performing a:

rpm -qa | grep findutil (in Ubuntu/Debian you can check synaptic to see if they’re installed).

It should produce results such as this:

# rpm -qa | grep findutils
findutils-4.2.31-24
findutils-locate-4.2.31-24

(more…)