Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Dear All,
Is there any way to configure my linux machine to shut down automaticaly,which time I need?
If yes how,tell me please?
khalid khan

A simpler way is to add the appropriate shutdown command to the /etc/profile file (as root):
Open a terminal window and su to root:
[user@localhost ~]$ su
Password: (enter root password here)This example will open /etc/profile in the kate text editor:
[root@localhost user] # kate /etc/profile
Add the following command to the end of the file:
shutdown -h hh:mm
Replace hh:mm with the time at which you want the computer to shutdown automatically each day
The -h option tells shutdown to turn the
computer off (halt).For more information on the shutdown
command open a terminal window and enter:man shutdown
Remember, the man command is your friend.
With it you can get information on nearly
any command available in your Linux system.HTH,
Ernie Registered Linux User 247790
ICQ 41060744

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |