Shell/Bash: display file size in mb in linux Example

By

Shell/Bash Example: This is the "display file size in mb in linux" Example. compiled from many sources on the internet by SimpleTutorials.org

display file size in mb in linux

[email protected]:~/working_dir/opencv$ ls -lh CMakeLists.txt
-rw-r--r-- 1 prashad prashad 65M Sep 29 01:05 CMakeLists.txt
[email protected]:~/working_dir/opencv$ 


NOTE:
To display the file sizes in units like 7K, 5M, 8.2G, etc… use the -lh option with  ls. 
"ls -lh"



* Summary: This "display file size in mb in linux" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others