LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   finding larger files... (https://www.linuxquestions.org/questions/linux-newbie-8/finding-larger-files-681804/)

visitnag 11-07-2008 11:45 AM

finding larger files...
 
How to find files which are more than 10Mb along with locate path and creation date?

pljvaldez 11-07-2008 12:57 PM

http://www.cyberciti.biz/tips/linux-...nd-part-2.html

At the bottom is even the line for printing a certain column of the output of ls. You just have to change the $8 to the correct column.

jan61 11-07-2008 12:59 PM

Moin,

Quote:

Originally Posted by visitnag (Post 3334619)
How to find files which are more than 10Mb along with locate path and creation date?

try find:
Code:

find /base/directory -type f -size +10000k -printf "%p %c\n"
For detailed information look at man find.

Jan

Tinkster 11-07-2008 01:49 PM

-size +10M
is more compact...

Cheers,
Tink

jan61 11-09-2008 10:10 AM

Moin,

Quote:

Originally Posted by Tinkster (Post 3334736)
-size +10M
is more compact...

but not supported on all versions
Code:

jan@jack:~/tmp> find --version
GNU find Version 4.1.7
jan@jack:~/tmp> find . -size +10M -print
find: invalid -size type `M'

Jan

Tinkster 11-09-2008 10:49 AM

Which antique are you using? :}
Slackware 12.1 comes with
$ find --version
GNU find version 4.2.31
Built using GNU gnulib version 2007-02-24



Cheers,
Tink

jan61 11-10-2008 12:24 PM

Moin,

Quote:

Originally Posted by Tinkster (Post 3336203)
Which antique are you using? :}

I want to work on my system, not to celebrate install partys.

Jan

Tinkster 11-10-2008 03:12 PM

Quote:

Originally Posted by jan61 (Post 3337333)
I want to work on my system, not to celebrate install partys.

Jan

Very good - same here. So what kind of antique are you using?



Cheers,
Tink

jan61 11-11-2008 02:26 PM

Moin,

Quote:

Originally Posted by Tinkster (Post 3337524)
So what kind of antique are you using?

On which system? ;-) On my main desktop system a SuSE 9.1 is running, but I'm also running Debian Woody (!) and SuSE 8.2 on other parts of my zoo. I know, I should have upgraded a long time ago for security reasons, but I'm too lazy for such a stupid work %-/

My (upgraded) firewall's main task is to protect me from bad things from outside, so I can continue working inside on my ancient systems.

Jan


All times are GMT -5. The time now is 07:36 PM.