Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

display file size in mb in linux

prashad@ubuntu:~/working_dir/opencv$ ls -lh CMakeLists.txt
-rw-r--r-- 1 prashad prashad 65M Sep 29 01:05 CMakeLists.txt
prashad@ubuntu:~/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"
Source by net2.com #
 
PREVIOUS NEXT
Tagged: #display #file #size #mb #linux
ADD COMMENT
Topic
Name
5+9 =