Search for a File in Linux Rumi, October 27, 2008October 27, 2008 Locating any file on a linux operating system can be done quickly from the command line. Step 1 Index your file system with updatedb. This makes a list of files so that later searches won’t have to look in the entire span of directories each time. The process can later be added to a cronjob and happen automatically. Run the Command: updatedb Step 2 Once the directory has been updated, the way to find the location of a desired file is with locate. An alternative is the find command, which can take a longer time to finish searching the entire system. locate “name of file” Filter Results Narrowing down results with grep can prevent the screen from being filled up with results, as in this case many files contained the term “nx” Example: To find where nxclient’s dsa key is hiding. locate nx | grep key | grep dsa Output: /etc/nxserver/client.id_dsa.key /etc/nxserver/server.id_dsa.pub.key Related Configurations (Linux)
Running Zimbra on HTTPS June 11, 2012 1. First you need to su as 'zimbra' user 2. go to /opt/zimbra/bin/ 3. Use the following commands to enable SSL: ./zmtlsctl https ./zmcontrol restart Now it's working like a charm. For other readers: I can only access to webclient by SSL now (but that's ok for me). other options… Read More
Munin Installation on Linux March 24, 2013 Installation on Debian/Ubuntu? If you are running Debian/Ubuntu?, you are in luck. Munin node Since "Munin Node" is in the standard repository, you can just type: # apt-get install munin-node Munin master Since "Munin master" is in the standard repository, you can just type: # apt-get install munin Installation on… Read More
.htaccess tips and tricks July 9, 2011 Redirecits redirectpermanent /training/test.html http://www.example.com/learning/newtest.html Allow SSI FIles AddType text/html .shtml .shtm .htm .html AddHandler server-parsed .shtml .shtm .htm .html Parsing PHP in HTML RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Allow or prevent directory browing IndexIgnore */* Options +Indexes Password Protection <Files secret_file.html> AuthType Basic AuthName "Team Page" AuthUserFile… Read More