[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File size reporting
- To: yevgeny <publicom(at-nospam)barak.net.il>
- Subject: Re: File size reporting
- From: Max Kovgan <mcmaugh(at-nospam)netvision.net.il>
- Date: Wed, 04 Apr 2001 19:48:46 +0200
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
hi..jenya.
> I would like to get a total file size reporting for multy-level
> directory
> structure, like right click-> Properties in Windows.
>
> Note, i don't need a disk usage ( du -sk ), just total file size.
try:
[else@where]#du -smL <file_name>
it will give u the size in megs.
or
[else@where]#du -skL <file_name>
-"---------------------"-- kilos
this is identical to windoze properties.
also , please try:
man du
i ignore your comments to "wc" command
about the tarring idea...
how would u then know what's the size of a directory
that after being tarred is bigger than your free disk space ?
that's it.
hope this helps.
ciao
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il