Finding a text string in Linux
Posted by Cătălin on Tue, 15 Jul 2014Finding a text string in Linux
In this example, search for a string called "jquery-1.6.2" in all text (*.js) files located in "/home/user/public_html/" directory, use: $ grep "jquery-1.6.2" /home/user/public_html/*.js OR ...
Read More...code
How to count all the files recursively?
Posted by Cătălin on Mon, 23 Jun 2014How to count all the files recursively?
How to count all the files recursively through directories in Linux: find -maxdepth 1 -type d | while read -r dir; do printf "%s:\t" "$dir"; find "$dir" -type f | wc -l; done
Read More...code
How to find IPs in the same network?
Posted by Cătălin on Mon, 24 Mar 2014How to find IPs in the same network?
Open Terminal and type: arp -a it will list all the computers on the network and the host names.
Read More...code
Installing SSL Certificate on Apache with mod_ssl
Posted by Cătălin on Sun, 2 Feb 2014Installing SSL Certificate on Apache with mod_ssl
Generate your certificate.csr and private.key with on Apache with mod_ssl cd /etc/ssl/domain.tld openssl genrsa -des3 -out private.key 4096 openssl req -new -key private.key -out certificate.csr ...
Read More...code
Renew SSL certificate at StartSSL
Posted by Cătălin on Sun, 2 Feb 2014Renew SSL certificate at StartSSL
In case you are approved for a certificate renewal here is how you do it: The web server SSL certificates from startssl is free for class 1 and needs to be renewed every year. Two weeks before...
Read More...code
How to burn ISO image on Mac?
Posted by Cătălin on Wed, 22 Jan 2014How to burn ISO image on Mac?
To burn ISO image on Mac is very easy. Open your Terminal and type: hdiutil burn /Users/path/xxx.iso Instead of typing the path you can also drag and drop the ISO file into terminal and press enter...
Read More...code