Show hidden files by default

musioc

Well-Known Member
Aug 4, 2011
127
1
68
Hi dear cpanel members and admins
We have to answer tickets about how to see htaccess or other hidden files in cpanel every weeks
Is there any option to enable it (show hidden files) by default?
If not, Can you let me know a way to bulk enable it ? where is config file?

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

Is this in regards to the "Show Hidden Files (dotfiles)" option available under "Settings" in "cPanel >> File Manager"? If so, there are no native options that will allow you to enable it for all accounts. I recommend opening a feature request if you'd like to see such an option added:

Submit A Feature Request

As workaround, you can develop a bash script that automatically creates a file named "showhiddenfiles" in the "/home/$user/.cpanel/nvdata/" directory with "1" as its content for each account. 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.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

You can remove the nvdata.cache file and it will automatically regenerate the time time cPanel is accessed for the account.

Thank you.