Check File Size Command on Linux

Posted by Planet Malaysia on March 11, 2009

advertisement

The “ls” command is the first command came into the my mind which used for files or directory listing on Linux. Beside that, you can try still check file size on Linux as show below:

  • ls -l FILENAME|/bin/awk -F” ” ‘{print$5}’
  • ls -l FILENAME | cut -d ” ” -f 5
  • du -b FILENAME
  • stat -c%s FILENAME
  • cat FILENAME |wc -c


Please let me know if you have better idea.

Possibly Related Posts:


Comments

Leave a Reply




Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com