• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

command to edit/remove cron job (crontab) on Linux server

Started by Kailash, July 29, 2007, 12:49:12 PM

Kailash

crontab command is used to edit/remove the current cron job on the server. Below are the few options of crontab command:

crontab -l
  - Displays the current cron jobs.
crontab -e - To edit the cron jobs.
crontab -r  - To remove cron jobs.

If you wish to edit it for particular user, you can use the following:

crontab [-u user] [-l | -r | -e] [-i]

Regards,

Kailash

digitalpoint

Recently, I needed to change Backup time on my cPanel server (cpbackup) and wasn't aware about to change cron time. Kailash, thanks for this post which helped me to change the backup time.

Thanks,

Digitalpoint

kvchosting

If you are doing it for a user as root

For edit and to list the cronjobs below are the commands

crontab -u <username> -e

crontab -u < username> -l


digitalpoint

Quote from: kvchosting on November 25, 2009, 06:57:35 PM
If you are doing it for a user as root

For edit and to list the cronjobs below are the commands

crontab -u <username> -e

crontab -u < username> -l

Hey,

Thanks for additional information to modify cron for particular user.

Digitalpoint

kvchosting

No problem at all.

Glad to be part of technical discussion.



webhosting.am