Linux check occupied space in folder


hidden files
sudo du -sch /home/ec2-user/.[!.]* |sort -h

all files except hidden
sudo du -sch /home/ec2-user/* |sort -h