home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: How to get the size of a file??
- Message-ID: <1992Nov23.094750.1814@ericsson.se>
- Keywords: file size ls dir
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <rudolph.722501747@unixg.ubc.ca>
- Date: Mon, 23 Nov 1992 09:47:50 GMT
- Lines: 27
-
- In article <rudolph.722501747@unixg.ubc.ca>,
- rudolph@unixg.ubc.ca (Christopher E Rudolph) writes:
- |> Hello, I am new to unix stuff, and yes I have read alot of the FAQ, but I
- |> haven't been able to find anything that tells me how to view the size of
- |> file when I list the contents of a directory.
-
- The man page for ls is usually a better place to start looking. The FAQ
- is more for questions that the man page doesn't answer:
-
- -s Give size of each file, including any indirect blocks
- used to map the file, in kilobytes (ls) or 512-byte
- blocks (/usr/5bin/ls).
-
- You can also use du -a, the answers are sometimes different as ls
- reports the last octet in the file while du reports the ammount of disk
- space used.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-