LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-07-2008, 11:45 AM   #1
visitnag
Member
 
Registered: Mar 2008
Posts: 147

Rep: Reputation: 15
finding larger files...


How to find files which are more than 10Mb along with locate path and creation date?
 
Old 11-07-2008, 12:57 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 11-07-2008, 12:59 PM   #3
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46
Moin,

Quote:
Originally Posted by visitnag View Post
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
 
Old 11-07-2008, 01:49 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
-size +10M
is more compact...

Cheers,
Tink
 
Old 11-09-2008, 10:10 AM   #5
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46
Moin,

Quote:
Originally Posted by Tinkster View Post
-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
 
Old 11-09-2008, 10:49 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 11-10-2008, 12:24 PM   #7
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46
Moin,

Quote:
Originally Posted by Tinkster View Post
Which antique are you using? :}
I want to work on my system, not to celebrate install partys.

Jan
 
Old 11-10-2008, 03:12 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally Posted by jan61 View Post
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
 
Old 11-11-2008, 02:26 PM   #9
jan61
Member
 
Registered: Jun 2008
Posts: 235

Rep: Reputation: 46
Moin,

Quote:
Originally Posted by Tinkster View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't read files larger than 2.14 GB jhendri868 Linux - Software 2 09-10-2008 03:41 PM
How Do I Copy Files larger Than 4GB? stevest Suse/Novell 3 12-09-2007 08:54 AM
Creating files larger than 2GB Nerox Programming 11 08-03-2007 06:09 PM
problem with files larger then 100Mbyte++ carboncopy Slackware 8 04-26-2005 10:40 AM
Files larger than 4 GB Hamsjael Linux - Software 1 03-09-2005 01:51 PM


All times are GMT -5. The time now is 10:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration