Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

1k disk blocks 1

Status
Not open for further replies.

sfu

Programmer
Oct 13, 2003
10
US
I need to find the size of a file and or a directory in 1k disk blocks.
A normal ls -l | cut -d' ' -f5 respectively ls -ld give me the size in bytes. Is there another way to find it in 1k disk blocks or do I have to multiply it with some numbers ?

Thanks for your help.
 
du -k to have size in 1k blocs

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top