The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find the file size in unix lmraochodisetti UNIX for Advanced & Expert Users 5 12-16-2008 08:51 AM
How to find size of a file kittusri9 Shell Programming and Scripting 4 04-28-2008 08:01 AM
Find file size and date gsusarla UNIX for Advanced & Expert Users 10 04-08-2008 05:33 PM
find file size hgriva1 Shell Programming and Scripting 6 11-07-2007 04:07 AM
command to find out total size of a specific file size (spread over the server) abhinov SUN Solaris 3 08-08-2007 06:48 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-16-2001
rooh rooh is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 62
find the file by size

Hi,

Can somebody PLEASE help me.
Suppose I want to find a file which has largest no of bytes in a particular directory, How do i do that.
ls -s will give the size of Blocks.

But I want the largest sized file and in bytes or KB OR MB.

tHANKS IN advanvce.
Bye

Rooh
  #2 (permalink)  
Old 08-16-2001
alwayslearningunix
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
ls -l | awk '{print $5,$9}' | sort -n

Regards.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0