Answers for "linux shell get size of file"

7

linux file size

cd dir ; du -hsx * | sort -rh | head -20 
# example output
# 300MB    some_backup_file.log
# 1.8GB    some_huge_file.war
Posted by: Guest on August-11-2020
0

bash size file

du -hs file/or/folder/path

---------------------------------------------------
-h for human readable
-s for summary: only total amount, not single files
Posted by: Guest on July-21-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language