Answers for "best way to determine file size in linux"

10

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
6

linux command for file size

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

find the size of file in linux

ls -l filename   #Displays Size of the specified file
ls -l *          #Displays Size of All the files in the current directory
ls -al *         #Displays Size of All the files including hidden files in the current directory
ls -al dir/      #Displays Size of All the files including hidden files in the 'dir' directory
Posted by: Guest on March-07-2020

Code answers related to "best way to determine file size in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language