How do I see MB file size in Linux? Find File size with Du command in Linux
What we need is to open the terminal and type du -sh file name in the prompt. The file size will be listed on the first column. The size will be displayed in Human Readable Format. This means we can see file sizes in Bytes, Kilobytes, Megabytes, Gigabytes, etc.
How do I check the file size in MB?
- –l – displays a list of files and directories in long format and shows the sizes in bytes.
- –h – scales file sizes and directory sizes into KB, MB, GB, or TB when the file or directory size is larger than 1024 bytes.
- –s – displays a list of the files and directories and shows the sizes in blocks.
What is the file size in Linux?
|File System||File Size [Byte]||File System Size [Byte]|
|Ext2 or Ext3 (8 kB block size) (systems with 8 kB pages (like Alpha))||246 (64 TB)||245 (32 TB)|
|ReiserFS 3.5||232 (4 GB)||244 (16 TB)|
|ReiserFS 3.6 (under Linux 2.4)||260 (1 EB)||244 (16 TB)|
|XFS||263 (8 EB)||263 (8 EB)|
How big is a 1 MB file?