linux get directory size and number of files 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