Login
Linux find file containing a string

Each time I need to search for some text in files on *NIX machines I get to google and search for it. Not always can find it quickly, so now is the time to put it right once and for all :)

ok, so the tas is to search for a text: little fox

in all files that are in /home/username

I will use grep for this, with option -H so I can see the filenames in where the text is and the line of the text where the search text appeared.

Read more...
 
New Virtuemart extension for Artio JoomSEF

I have previously made extensions for old versions of Joomla! 1.0.x , and now when Joomla! has updated to 1.5.x and 1.6.x versions I will be providing the same extensions for the upgraded versions. First of all that includes Virtuemart...

VirtueMart is an Open Source E-Commerce solution to be used together with a Content Management System (CMS) called Joomla!

Its a full featured shopping cart system, with loads of features and it is one stop shopping cart for Joomla! content management system. It is perfect on selling goods online and so far it has more than 2.5million downloads, so that says everything about its usability. It is wide popular, so I decided to write some extensions to help people spend less to get online with features that are currently to paid for.

So bear with me as new extensions are on the way...Virtuemart SEF url's with Artio JoomSEF 3.x

 If you want to be the first one to get a word once it is ready, please go here and subscribe to a newsletter about it.

I have ZERO SPAM policy so no worries, your email is safe! thats my word!

 
Howto rotate logs manually

Few days ago I needed to rotate few log files manually. Log file got too big because of the testing environment logging all data for easier tracking of any possible issues and it got to approx 1.5GB in size.

So after test environment was switched off I needed a clean log files to start with and see if there are any critical errors. There were not, but just in case :)

So here is what you need to do if you want to rotate the files manually (assuming you are using Linux) :

  1. sudo logrotate /etc/logrotate.d/[file_to_be_rotated ]
 
so in my case it was 3 log files to be rotated:
  1. sudo -v -f logrotate /etc/logrotate.d/mysql-server
  2. sudo -v -f logrotate /etc/logrotate.d/apache2
  3. sudo -v -f logrotate /etc/logrotate.d/cacti
 

there are 2 parameters I have used:
-v - Verbose
-f - Force rotation of logs even if not needed

Thats about it. Hopefully it was usefull tip and saved someone's day.

 
<< Start < Prev 1 2 3 Next > End >>

Results 1 - 4 of 9