Show Hidden Files in Linux with du Command

To display the disk usage for all files (including hidden files), you can use the du -ah command. This command will show the disk usage of all files and subdirectories in the current directory, including hidden files.

For example:

du -ah

To display the disk usage of folders and hidden folders only in the current directory, you can use the command du -ahd1. This command will show the disk usage of all folders and hidden folders in the current directory.

For example:

du -ahd1
bannerAds