Featured Posts

Installing MathabxInstalling Mathabx Mathabx is an important symbol library for latex. The full list of available symbols in latex can be found here. Following steps will help one to install mathabx in ...

Readmore

cronScheduled Tasks using cron Learn how to schedule tasks using cron in Linux!

Readmore

Joomla!Getting started with Joomla! Joomla! is a great open source tool for making great websites with very little effort and absolutely no cost ...

Readmore

Rss

Scheduled Shutdown using cron

0

Posted by Arsh | Labels: Ubuntu, Utilities | Posted on Thursday, May 14, 2009

Use the command
$ crontab -e
In the editor window write
0 9 * * * /sbin/shutdown -h now
This will shutdown your computer at 9 hrs. After this restart cron service:
sudo /etc/init.d/cron restart

Change file permissions recursively without affecting directories

0

Posted by Arsh | Labels: Linux | Posted on Tuesday, May 12, 2009

If you want to change the permissions of the file to 600 without affecting the directories permissions, use the following command:

find . ! -type d -exec chmod 600 {} \;