get the size of a file in linux code example
Example 1: get the size of files in a directory linux
# Displays all the files and sizes in MB or GB
du -h --max-depth=1
Example 2: linux command for file size
#Get file size of each folder
du -bsh *
# Displays all the files and sizes in MB or GB
du -h --max-depth=1
#Get file size of each folder
du -bsh *