![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to find a file named vijay in a directory using find command | amirthraj_12 | UNIX for Dummies Questions & Answers | 6 | 4 Weeks Ago 09:37 AM |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 05:12 PM |
| Little bit weired : Find files in UNIX w/o using find or where command | jatin.jain | Shell Programming and Scripting | 10 | 09-19-2007 03:47 AM |
| command find returned bash: /usr/bin/find: Argument list too long | yacsil | Shell Programming and Scripting | 1 | 12-15-2003 03:38 PM |
| how to find a file in UNIX without find command? | bluo | Shell Programming and Scripting | 3 | 09-24-2003 08:47 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm looking for a command to list the biggest files of a directory and display the size. I know the command " Find . -size +10000 -print", but It displays only the files without size details. Hope I'm clear Thanks, Fabien |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I use this to sort a file list in size order :
ls -la | sort -bnr +4 | pg |
|
#3
|
||||
|
||||
|
How about:
find . -size +10000 -print | xargs -ld |
|
#4
|
|||
|
|||
|
I was just going to post this also:
find . -size +1000000 -ls |
|
#5
|
|||
|
|||
|
Thanks for your quick suggestion
|
|
#6
|
|||
|
|||
|
Interesting option Perderabo. I did'nt know you could specify ls options through the print switch...cool!
|
|
#7
|
||||
|
||||
|
Actually, I have a typo there. It should be...
find . -size +10000 -print | xargs ls -ld But in any event, the xargs command is reading the file names produced by the find command. |
||||
| Google The UNIX and Linux Forums |