Divi WordPress Theme

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

Topic: command to edit/remove cron job (crontab) on Linux server  (Read 97729 times)

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • iTrader: +153/-0
    • View Profile
command to edit/remove cron job (crontab) on Linux server
« on: July 29, 2007, 12:49:12 PM »
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
« Last Edit: April 02, 2015, 11:04:34 PM by Kailash »
VPS Hosting - AccuWebHosting

Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #1 on: July 21, 2009, 10:37:14 AM »
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

Offline kvchosting

  • New Member
  • *
  • Posts: 17
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #2 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

Offline digitalpoint

  • New Member
  • *
  • Posts: 45
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #3 on: November 27, 2009, 10:42:14 AM »
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

Offline kvchosting

  • New Member
  • *
  • Posts: 17
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #4 on: December 01, 2009, 10:56:13 PM »
No problem at all.

Glad to be part of technical discussion.

Offline ptduran

  • Newbie
  • *
  • Posts: 1
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #5 on: January 27, 2010, 11:33:36 PM »
Thanks for the information.

Offline izumi777

  • New Member
  • *
  • Posts: 15
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #6 on: March 14, 2010, 05:26:30 PM »
Thanks for the tutorial.  ;)

Offline webhosting.am

  • New Member
  • *
  • Posts: 16
  • iTrader: +0/-0
    • View Profile
Re: command to edit/remove cron job (crontab) on Linux server
« Reply #7 on: July 21, 2010, 11:34:10 AM »
great forum, I find so much interesting in it. ::)
Shopify Divi WordPress Theme

Check MySQL service uptime through command line

Started by KailashBoard How Tos

Replies: 2
Views: 21331
Last post November 22, 2011, 10:03:24 PM
by Mrtu92
restart Apache through command line

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 5442
Last post August 12, 2007, 06:30:11 PM
by Kailash
check Apache version through command line

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 18908
Last post January 20, 2008, 05:42:39 PM
by Kailash
Reset MySQL root / user password from command line

Started by KailashBoard How Tos

Replies: 0
Views: 7894
Last post September 13, 2008, 09:51:19 AM
by Kailash
Critical 0-day Remote Command Execution Vulnerability in Joomla

Started by KailashBoard Vulnerabilities

Replies: 0
Views: 2815
Last post December 15, 2015, 03:35:30 PM
by Kailash