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.

Hidden Files Command

Discussion in 'General Discussion' started by Rockforduk, Jun 25, 2017.

  1. Rockforduk

    Rockforduk Member

    Joined:
    May 5, 2016
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi Everyone,
    What is the command please to show and hide hidden files by default? System wide command please.

    Command to show

    Command to hide

    As i have allot of .files showing by default and would like to hide them please. I am aware this will also affect the .htaccess but they can do that manually right? Also if i hide the .htaccess file it will not affect any plugins or scripts that use them?

    Thanks

    Rockforduk
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,491
    Likes Received:
    60
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    Please note, when a dot is added in front of any file, it is considered as hidden and not visible with simple ls -l command.

    Below command will list all the files and folders inside a directory including hidden directories..
    # cd <Directory>
    # ls -la

    Below command will list all the files and folders inside a directory not the hidden directories..
    # cd <Directory>
    # ls -l
     
  3. Rockforduk

    Rockforduk Member

    Joined:
    May 5, 2016
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi there,
    Thankyou for your reply so how to i hide the hidden files server wide? As when you login via FTP it shows and awful lot of hidden files and i would like to hide them all for all users?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You can adjust the following Pure-FTPd configuration settings:

    Information on how to modify the Pure-FTPd configuration is available at:

    FTP FAQ - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page