i want to recursively unzip into proper folder
so i have
/home/abdullah/quran1/files.zip
/home/abdullah/quran2/files.zip
…
/home/abdullah/quranfolder/files.zip
best way to search inside php files for text yoursearchtexthere
find . -name '*.php' -exec grep –with-filename –line-number 'yoursearchtexthere' {} \;
i simply want to unzip all of them at once, here is the shell script [...]
Have you ever tried to do a recursive linux search for a text string inside a particular file? For example
grep -r “mail” *.php
and then it fails because the current folder doesn’t have any php files in it?
This below line will search all files for the text moo
find . [...]
Here is a cool way to delete files according to some complex rules without knowing complicated bash commands.
First, create a file as follows that contains your deletion rules.
+ public_html/
+ public_html/*
– access-logs
– etc/
– logs/
– mail/
– .cpanel/
– .cpaddons/
When I first started this blog, it was done in Subtext, which is a very impressive .NET blog software. It is a fork off the old .TEXT blog engine. To give you a bit of history, .TEXT codebase was left and eventually became Community Server. That was my preferred choice of blogging engines, [...]
Some tips on securing your PHP and how you can get hacked (hax0red) if it’s not on.
How adding a little bit of security can stop most hackers.
How a server was infected with a trojan virus, and how to clean the Wollf trojan from your machine and ensure that you do not get infected again. As well a list of 70GB of files from a real server that was compromised.
A full explanation about SQL injection vulnerability and why you should care, Clipshare vulnerability, PHP Nuke vulnerability, and how to fix it in such a way that your site will not get hacked again with relatively few code changes.
How to delete spam emails from your exim mail queue if its getting to large and full of spam. Use carefully.
grep -R -l [SPAM] /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm
What is the Windows HOSTS file, and how to use the HOSTS file to test your site before re pointing the server during a server migration to successfully ensure a seamless migration with no down time.
-
Articles
- January 2011
- April 2010
- March 2010
- February 2010
- January 2010
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- February 2009
- December 2008
- November 2008
- October 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
-
Calendar
February 2012 M T W T F S S « Jan 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 -
Meta
