This tutorial should help you shutdown your linux pc at a certain time..This can be daily or once a week or twice a week etc.. So here's how you do it

Step 1 : Go to the Terminal(Applications->Accessories->Terminal) and type crontab -e
Step 2 : Now add the following line to the crontab

15 14 * * * /sbin/shutdown -h now

The above line would shutdown your pc daily at 2:15pm ( remember its the 24 hr format)..You can edit the above line as required

NOTE:In cron * stands for everyday or every second or every minute etc depending on where you place it .The standard format is
m h dom mon dow command
Where m = minute (0-59)
h = hour (0-23)
dom = day of month (1-31)
mon = month (1-12)
dow = day of week (0-7)

Step 3 : Save the file after making changes and exit.

0 comments

Post a Comment