linux get file and directory by size code example
Example: get the size of files in a directory linux
# Displays all the files and sizes in MB or GB
du -h --max-depth=1
# Displays all the files and sizes in MB or GB
du -h --max-depth=1