Archive for the ‘one-liner’ Category

If you would need to view the files which have been modified in the past 7 days, you would need to use the parameter "mtime" : In order to view the files which have not been modified in the past 7 days, you would need to use the "+" sign in front of the period [...]

Reset MySQL's root password

Posted: 24th March 2010 by Valkyrka in cpanel, mysql, one-liner, plesk

I think a lot of people needed to reset the MySQL root password for multiple reasons ( they have forgotten the password, an employee left the job without giving the MySQL root password to the new sysadmin etc. ). Resetting the MySQL root password is very simple however, it would require you to kill the [...]

Show Apache's memory usage

Posted: 23rd March 2010 by Valkyrka in bash, one-liner

In order to view Apache memory usage, this 'one-liner' command should do the trick : Here is a sample output : Additionally, you may replace the 'httpd' string with any process name ( i.e. mysqld, exim etc. ).