# Reboot linux server usingcron tab
Sometimes it is a good idea to schedule a regular reboots, to clear the memory and remove any crashed processes.
This can be easily achieved by adding the task to a crontab (Linux scheduling system):
First, open the crontab (as a root):
And add a new line similar to this:
0 1 * * * /sbin/shutdown -r 0
This will perform a nightly reboot at 1am. If you think that daily reboot is too much, you can schedule a weekly reboot:
0 1 * * sat /sbin/shutdown -r 0
This will reboot the server on a Saturday at 1am.
----------© DarknessCode - LinuxSucks