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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find size of a file kittusri9 Shell Programming and Scripting 4 04-28-2008 08:01 AM
unix script to check whether particular file exists and to find its size Balachandar Shell Programming and Scripting 9 02-05-2008 03:56 AM
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
find the file by size rooh UNIX for Dummies Questions & Answers 1 08-16-2001 07:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2006
lmraochodisetti lmraochodisetti is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 4
Question how to find the file size in unix

Anybody can help

HOW TO FIND THE FILE SIZE IN UNIX

Last edited by lmraochodisetti; 07-24-2006 at 03:15 AM..
  #2 (permalink)  
Old 07-24-2006
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
ls

Did you try
Code:
'ls -l'
  #3 (permalink)  
Old 07-24-2006
tayyabq8's Avatar
tayyabq8 tayyabq8 is offline Forum Advisor  
Moderator
  
 

Join Date: Nov 2004
Location: Bahrain
Posts: 579
To get filename and its size only:
Code:
ls -la | awk '{print $9, "\t", $5}'
  #4 (permalink)  
Old 07-24-2006
rajlucky_raj rajlucky_raj is offline
Registered User
  
 

Join Date: May 2006
Location: INDIA
Posts: 5
You Can use
du -k filename
  #5 (permalink)  
Old 07-24-2006
lmraochodisetti lmraochodisetti is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 4
Thanks to all

Thanking you to all who have given reply to my faq.
  #6 (permalink)  
Old 12-16-2008
cmaroju cmaroju is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 19
ls -ltrS



will display all the files based on their size in a particular directory in reverse order.
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 05:32 AM.


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