Rockforduk

Member
May 5, 2016
23
0
1
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
 

24x7server

Well-Known Member
Apr 17, 2013
1,896
91
78
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
 

Rockforduk

Member
May 5, 2016
23
0
1
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
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?
Hello,

You can adjust the following Pure-FTPd configuration settings:

# List dot-files even when the client doesn't send "-a".
DisplayDotFiles yes

# Users can't delete/write files beginning with a dot ('.')
# even if they own them. If TrustedGID is enabled, this group
# will have access to dot-files, though.
ProhibitDotFilesWrite no

# Prohibit *reading* of files beginning with a dot (.history, .ssh...)
ProhibitDotFilesRead no
An example of how to modify the Pure-FTPd configuration values is available on the document below:

Configure FTP Servers

Thank you.