Find and remove IP blocked in Linux
Posted by Cătălin on Mon, 6 Oct 2014Find and remove IP blocked in Linux
Find: iptables -L -n | grep 63.227.119.xx DROP all -- 63.227.119.xx 0.0.0.0/0 DROP all -- 63.227.119.xx 0.0.0.0/0 Remove iptables -D fail2ban-SSH -s 63.227...
Read More...dental website
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...dental website
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...dental website
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...dental website
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...dental website
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...dental website