Answers for "get size of file linux"

15

list file size as mb

ls -l --block-size=M
Posted by: Guest on May-28-2020
0

get the size of files in a directory linux

# Displays all the files and sizes in MB or GB
du -h --max-depth=1
Posted by: Guest on February-23-2021
6

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
3

linux command for file size

#Get file size of each folder
du -bsh *
Posted by: Guest on April-26-2020
1

ls human readable size

du -sh directory_name    #Gives you the summarized(-s) size of the directory in human readable(-h) format
du -bsh *                #Gives you the apparent(-b) summarized(-s) size of all the files and directories in the current directory in human readable(-h) format
Posted by: Guest on July-04-2020
0

get size of file linux

du -h your-file.txt
Posted by: Guest on September-19-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language