home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13832 < prev    next >
Encoding:
Text File  |  1992-11-23  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: How to get the size of a file??
  5. Message-ID: <1992Nov23.094750.1814@ericsson.se>
  6. Keywords: file size ls dir
  7. Sender: news@ericsson.se
  8. Nntp-Posting-Host: eos6c02.ericsson.se
  9. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  10. Organization: Ericsson Telecom AB
  11. References:  <rudolph.722501747@unixg.ubc.ca>
  12. Date: Mon, 23 Nov 1992 09:47:50 GMT
  13. Lines: 27
  14.  
  15. In article <rudolph.722501747@unixg.ubc.ca>, 
  16. rudolph@unixg.ubc.ca (Christopher E Rudolph) writes:
  17. |> Hello, I am new to unix stuff, and yes I have read alot of the FAQ, but I
  18. |> haven't been able to find anything that tells me how to view the size of
  19. |> file when I list the contents of a directory.
  20.  
  21. The man page for ls is usually a better place to start looking. The FAQ
  22. is more for questions that the man page doesn't answer:
  23.  
  24.      -s   Give size of each file, including any  indirect  blocks
  25.           used  to  map  the  file, in kilobytes (ls) or 512-byte
  26.           blocks (/usr/5bin/ls).
  27.  
  28. You can also use du -a, the answers are sometimes different as ls
  29. reports the last octet in the file while du reports the ammount of disk
  30. space used.
  31.  
  32. -- 
  33.  
  34. Michael Salmon
  35.  
  36. #include    <standard.disclaimer>
  37. #include    <witty.saying>
  38. #include    <fancy.pseudo.graphics>
  39.  
  40. Ericsson Telecom AB
  41. Stockholm
  42.