How to Check File Size in Linux?
Contents

How do you check file size in Linux?

4 Answers.

ls -l –block-size=M will give you a long format listing (needed to actually see the file size) and round file sizes up to the nearest MiB.

If you want MB (10^6 bytes) rather than MiB (2^20 bytes) units, use –block-size=MB instead.

How do I tell the size of a file?

Control+click on an image to see an image’s properties.

  • Click Finder on your Dock.
  • Find the image you want to check.
  • Control+click (ctrl+click) your image. A menu appears.
  • Click Get Info.
  • Expand the General: section to see your image’s file size.
  • Expand the More Info: section to see your image’s dimensions.
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest