There is no way in the WHM to enable show hidden files on all accounts. Currently the only official way to enable this is to log into each cPanel account, click on the file manager, click on settings, then put a check mark beside show hidden files.
If you wish to have hidden files displayed on all accounts without having to turn it on in the file manager of each account, then you can do this.
- SSH to the server
- cd /home
for i in *; do echo 1 > ./$i/.cpanel/nvdata/showhiddenfiles; done;
This will create a file called showhiddenfiles in /home/$username/.cpanel/nvdata with the number “1” in the file. This will enable show hidden files on every domain on the server.
Once this file exists under each account, and “/home/$user/.cpanel/nvdata.cache” is updated on each account, the hidden files will then show in File Manager.
If you want to manually update the nvdata.cache files, simply delete them, and next time you log into cPanel, it will regenerate. If you want to mass delete them, run this command.
rm -f /home/*/.cpanel/nvdata.cache