Search
 
SCRIPT & CODE EXAMPLE
 

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"
Comment

bash get file size in mb

stat --printf="%s" file.any
Comment

print file size in mb linux

ls -ltrh #acceding with time here
Comment

PREVIOUS NEXT
Code Example
Shell :: curl parallel requests 
Shell :: github change commit date 
Shell :: bash shell for windows 
Shell :: install sonarqube on ubuntu 
Shell :: linux command line 
Shell :: shell search history 
Shell :: scp command from local to remote 
Shell :: bash compare two strings 
Shell :: angular install ngx-bootstrap 
Shell :: datadog without agent 
Shell :: cors package install npm 
Shell :: how to change git commit date 
Shell :: git create server repository 
Shell :: colcon reset build 
Shell :: .bash_profile mac mvn 
Shell :: linux cannot upgrade pip 
Shell :: how to start payara server 
Shell :: patch a file in vendor 
Shell :: ssh change pasword to key file 
Shell :: install pandas xlrd 
Shell :: kali linux wired connection insted of wifi 
Shell :: get last line from string powershell 
Shell :: sed script "etc/psswd" 
Shell :: cara menghapus kode-kode di terminal linux 
Shell :: solr cloud cluster setup 
Shell :: docker laravel configuration ubuntu 
Shell :: debugging kubernete in intellij 
Shell :: how to check bit file private key 
Shell :: powershell script to change phone number in ad 
Shell :: docker testssl 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =