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!

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:
    117
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,884
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice