how to check file and folder size in linux 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