Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Show hidden files by default

Discussion in 'General Discussion' started by musioc, Feb 2, 2017.

Tags:
  1. musioc

    musioc Well-Known Member

    Joined:
    Aug 4, 2011
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    66
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. Adam S.

    Adam S. Registered

    Joined:
    May 1, 2015
    Messages:
    3
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    PEI
    cPanel Access Level:
    Root Administrator
    Do you need to do something to update the cache? Or does it update on it's own? if on it's own, how quickly does it update?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thank you.
     
Loading...

Share This Page