Hide or show content for devices in Bootstrap
Posted by Cătălin on Fri, 3 Oct 2014Hide or show content for devices in Bootstrap
Using hidden <div class="hidden-sm hidden-md"> hidden-sm hidden-md </div> <div class="hidden-sm hidden-lg"> hidden-sm hidden-lg </div> <div class="hidden-md hidden-lg"> hidden-md...
Read More...code
How To Check If Your Linux Is Vulnerable to Shellshock
Posted by Cătălin on Sat, 27 Sep 2014How To Check If Your Linux Is Vulnerable to Shellshock
You can test your system by running this test command from Terminal: env x='() { :;}; echo vulnerable' bash -c 'echo hello' If you're not vulnerable, you'll get this result: bash: warning: x:...
Read More...code
Terminal search files by text that the file names contain
Posted by Cătălin on Mon, 21 Jul 2014Terminal search files by text that the file names contain
sudo find / -type f -name "*string*"
Read More...code
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