Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.68 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to know the Size of a File inside Linux [closed]
  2. ls -lart
  3.        
  4. %  ls -l
  5. total 0
  6. -rw-r--r--    1 ugoren   group           2 Jan  8 14:02 a
  7. -rw-r--r--    1 ugoren   group           3 Jan  8 14:02 b
  8. -rw-r--r--    1 ugoren   group           4 Jan  8 14:02 c
  9.                                          ^
  10.                                     Right Here
  11.        
  12. stat -c "%n: %s" thefile
  13.        
  14. $ stat -c "%n: %s" *.css
  15. 001.css: 4832
  16. 179.css: 5853
  17. 202.css: 5689
  18. 204.css: 11101
  19. 212.css: 5857
  20. 213.css: 7692
  21. t.css: 39
  22. zengarden-sample.css: 4030
  23.        
  24. ls -lh filename
  25.        
  26. -rw-r--r-- 1 ashiaka ashiaka 3.5K 2011-11-25 17:03 setup.py
  27.                                ^
  28.                             size in KB
  29.        
  30. ls -lh