linux check filsize of file 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