{"id":155,"date":"2024-09-03T22:55:45","date_gmt":"2024-09-03T22:55:45","guid":{"rendered":"https:\/\/serverexplorer.ledocdev.com\/?p=155"},"modified":"2025-12-09T10:19:05","modified_gmt":"2025-12-09T10:19:05","slug":"create-cron-job-server-command-line-server-explorer","status":"publish","type":"post","link":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/","title":{"rendered":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Automation is awesome. Why manually run scripts when you can make your server do it for you? Enter <strong>cron jobs<\/strong>\u2014the powerful tool that allows you to schedule tasks with precision. Whether you want to automate backups, send reminders, or clean up logs, cron jobs are your go-to tool.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we\u2019ll show you how to set up a cron job using the command line and how to do it effortlessly with Server Explorer. Let\u2019s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 1 : Creating a Cron Job via Command Line<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, let\u2019s tackle the traditional method using the command line. This part is for those who prefer hands-on control by typing commands in a terminal.<\/p>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 1 : Access Your Server<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open your terminal and SSH into your server:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh username@your-server-ip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(If this doesn\u2019t work, double-check your SSH details.)<\/em><\/p>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 2: Open the Crontab File<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The crontab is where all the scheduling happens. To open it, type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>crontab -e<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command opens your crontab file, where you\u2019ll be adding your cron jobs.<\/p>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 3: Understand the Cron Job Syntax<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before proceeding, here\u2019s a quick breakdown of cron job syntax. Each line in your crontab follows this structure:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>* * * * * \/path\/to\/your\/script.sh<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Minute (0-59)<\/strong><\/li>\n\n\n\n<li><strong>Hour (0-23)<\/strong><\/li>\n\n\n\n<li><strong>Day of the Month (1-31)<\/strong><\/li>\n\n\n\n<li><strong>Month (1-12)<\/strong><\/li>\n\n\n\n<li><strong>Day of the Week (0-7)<\/strong> (Sunday can be 0 or 7)<\/li>\n\n\n\n<li><strong>Command<\/strong>: The script or command you want to run.<\/li>\n\n\n\n<li><em><strong>Comment: <\/strong>you can add some comments if you want it in your cron job<\/em><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>30 2 * * * \/path\/to\/backup.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>This job runs <code>backup.sh<\/code> every day at 2:30 AM.<\/strong><\/em><\/p>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 4: Add Your Cron Job<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s say you want to run a cleanup script every Monday at 4:00 AM. You\u2019d add this line to your crontab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0 4 * * 1 \/path\/to\/cleanup.sh<\/code><\/pre>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 5: Save and Exit<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After adding your cron job, save the file and exit. In most editors like nano, you can do this by pressing <code>CTRL + X<\/code>, then <code>Y<\/code>, and <code>Enter<\/code>. Yeah i know it can be a little tricky. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Buuuuut!!! if you prefer a more user-friendly approach?<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Part 2: Creating a Cron Job with Server Explorer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For the elite who prefer simplicity over complexity, Server Explorer offers a straightforward solution. Let\u2019s explore how you can effortlessly create a cron job using this powerful tool.<\/p>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 1: Connect to Your Server via SSH<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Open Server Explorer and connect to your server by entering your SSH credentials. This is straightforward\u2014no complex commands needed.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"812\" data-id=\"336\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-1024x812.avif\" alt=\"\" class=\"wp-image-336\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-1024x812.avif 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-300x238.avif 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-768x609.avif 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-1536x1219.avif 1536w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.37.00-png.avif 1936w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Server Explorer SSH Connection screen<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 2: Open the Cron Job Manager<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once connected, search to the <strong>Cron menu<\/strong> and click on it.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"822\" data-id=\"338\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-1024x822.avif\" alt=\"\" class=\"wp-image-338\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-1024x822.avif 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-300x241.avif 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-768x616.avif 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-1536x1232.avif 1536w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.38.44-png.avif 2024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Server Explorer cron job manager interface<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 3: Adding an Existing Script<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019ve already got a script ready to go:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Click the <strong>+ New<\/strong> button next to the search field. This opens a file selector for your server.<\/li>\n\n\n\n<li>Navigate to your script, select it, and confirm your choice. This will bring up the cron configurator.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"822\" data-id=\"339\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-1024x822.avif\" alt=\"\" class=\"wp-image-339\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-1024x822.avif 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-300x241.avif 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-768x616.avif 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-1536x1232.avif 1536w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.49.27-png.avif 2024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Server Explorer file selector<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 4: Configure Your Cron Job<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you\u2019ll see options to set the schedule for your cron job. You can either:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Choose from pre-configured options<\/strong> like \u201cEvery day,\u201d \u201cEvery hour,\u201d etc \u2014 <em>Yeah, I know, super convenient!<\/em><\/li>\n\n\n\n<li><strong>Customize your schedule<\/strong> using the form fields \u2014 <em>Perfect for when you want things just the way you like them.<\/em><\/li>\n\n\n\n<li><strong>Use the built-in AI<\/strong> (if you\u2019re not an expert) to schedule the job with natural language like, \u201cEvery Friday at 10 AM.\u201d \u2014 <em>Because who doesn\u2019t love an easy, natural-language setup?<\/em><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"822\" data-id=\"340\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-1024x822.avif\" alt=\"\" class=\"wp-image-340\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-1024x822.avif 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-300x241.avif 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-768x616.avif 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-1536x1232.avif 1536w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/Capture-decran-2025-10-14-a-22.59.23-png.avif 2024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Server Explorer cron configurator<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<p class=\"is-style-sub-heading wp-block-paragraph\"><strong>Step 6: Save and Exit<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019re happy with your setup, hit <strong>Save<\/strong> and close the dialog. Your cron job is now live \u2014<em>and just like that, you\u2019re done! Easy, right?<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you prefer the control of the command line or the visual ease of Server Explorer, setting up cron jobs has never been simpler. Now that you\u2019ve got the tools and knowledge, you\u2019re ready to take control of your server\u2019s tasks!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Speaking of Server Explorer, it&#8217;s your SSH client with a file explorer and many other cool features. You can see all others features <a href=\"https:\/\/serverexplorer.ledocdev.com\/\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Available on MacOS&nbsp;<a href=\"https:\/\/apps.apple.com\/bj\/app\/server-files-explorer\/id6474502110?l=fr-FR&amp;mt=12\">here<\/a>&nbsp;and on the Microsoft Store&nbsp;<a href=\"https:\/\/apps.microsoft.com\/detail\/9nrb68w7pjg8?hl=en-US&amp;gl=US\">here<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-group is-style-default has-28-font-size is-layout-flex wp-block-group-is-layout-flex\">\n<div class=\"wp-block-group has-primary-transparent-gradient-background has-background is-vertical is-content-justification-left is-layout-flex wp-container-core-group-is-layout-119d9ce3 wp-block-group-is-layout-flex\" style=\"border-radius:16px;padding-top:var(--wp--preset--spacing--xxs);padding-right:var(--wp--preset--spacing--xs);padding-bottom:var(--wp--preset--spacing--xxs);padding-left:var(--wp--preset--spacing--xs)\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1804\" height=\"439\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows.png\" alt=\"\" class=\"wp-image-230\" style=\"width:135px;height:auto\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows.png 1804w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows-300x73.png 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows-1024x249.png 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows-768x187.png 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/windows-1536x374.png 1536w\" sizes=\"auto, (max-width: 1804px) 100vw, 1804px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<p class=\"has-16-font-size wp-block-paragraph\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><strong>\u2b50\ufe0f 4.8<\/strong><\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-style-light has-body-heading-gradient-background has-background is-vertical is-content-justification-left is-layout-flex wp-container-core-group-is-layout-119d9ce3 wp-block-group-is-layout-flex\" style=\"border-radius:16px;padding-top:var(--wp--preset--spacing--xxs);padding-right:var(--wp--preset--spacing--xs);padding-bottom:var(--wp--preset--spacing--xxs);padding-left:var(--wp--preset--spacing--xs)\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1525\" height=\"439\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/logo-macos-1.png\" alt=\"\" class=\"wp-image-224\" style=\"width:109px;height:auto\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/logo-macos-1.png 1525w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/logo-macos-1-300x86.png 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/logo-macos-1-1024x295.png 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/02\/logo-macos-1-768x221.png 768w\" sizes=\"auto, (max-width: 1525px) 100vw, 1525px\" \/><\/figure>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-8f761849 wp-block-group-is-layout-flex\">\n<p class=\"has-neutral-0-color has-text-color has-link-color has-16-font-size wp-elements-1 wp-block-paragraph\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\"><strong>\u2b50\ufe0f 5.0<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/10\/og-facebook-1024x576.avif\" alt=\"server-explorer-on-windows-macos\" class=\"wp-image-335\" srcset=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/10\/og-facebook-1024x576.avif 1024w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/10\/og-facebook-300x169.avif 300w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/10\/og-facebook-768x432.avif 768w, https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2025\/10\/og-facebook-png.avif 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">server management software, devops ssh tool, docker, cron, security<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Automation is awesome. Why manually run scripts when you can make your server do it for you? Enter cron jobs\u2014the powerful tool that allows you to schedule tasks with precision. Whether you want to automate backups, send reminders, or clean up logs, cron jobs are your go-to tool. In this article, we\u2019ll show you how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":168,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[10,11,14,9,15],"class_list":["post-155","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps-management","tag-automation","tag-commandline","tag-devops-2","tag-servermanagement","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer<\/title>\n<meta name=\"description\" content=\"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/\" \/>\n<meta property=\"og:site_name\" content=\"Server Explorer\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-03T22:55:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-09T10:19:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"darrellkidjo.dev\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@darrell_kidjo\" \/>\n<meta name=\"twitter:site\" content=\"@darrell_kidjo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"darrellkidjo.dev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/\"},\"author\":{\"name\":\"darrellkidjo.dev\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#\\\/schema\\\/person\\\/20f67c2affa11693453fec19477c9ec8\"},\"headline\":\"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer\",\"datePublished\":\"2024-09-03T22:55:45+00:00\",\"dateModified\":\"2025-12-09T10:19:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/\"},\"wordCount\":689,\"publisher\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/OIG1.Av4maWojyFIKl1aDVn6.jpg\",\"keywords\":[\"#Automation\",\"#CommandLine\",\"#DevOps\",\"#ServerManagement\",\"#SSH\"],\"articleSection\":[\"VPS Management\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/\",\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/\",\"name\":\"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/OIG1.Av4maWojyFIKl1aDVn6.jpg\",\"datePublished\":\"2024-09-03T22:55:45+00:00\",\"dateModified\":\"2025-12-09T10:19:05+00:00\",\"description\":\"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#primaryimage\",\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/OIG1.Av4maWojyFIKl1aDVn6.jpg\",\"contentUrl\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/OIG1.Av4maWojyFIKl1aDVn6.jpg\",\"width\":1024,\"height\":1024,\"caption\":\"create cron server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/2024\\\/09\\\/03\\\/create-cron-job-server-command-line-server-explorer\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#website\",\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/\",\"name\":\"Server Explorer\",\"description\":\"Server Explorer SSH client - SFTP Explorer, VPS Security, terminal, Ai Integrated, Cron Management, Docker Manager for Linux servers on Mac and Windows\",\"publisher\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#organization\"},\"alternateName\":\"Server Files Explorer\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#organization\",\"name\":\"Server Explorer\",\"alternateName\":\"Server Files Explorer\",\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/OIG.P8HQiZbb_YxAtGo_Pkmw-removebg-preview.png\",\"contentUrl\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/OIG.P8HQiZbb_YxAtGo_Pkmw-removebg-preview.png\",\"width\":500,\"height\":500,\"caption\":\"Server Explorer\"},\"image\":{\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/darrell_kidjo\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/darrell-kidjo-ab49381a3\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/#\\\/schema\\\/person\\\/20f67c2affa11693453fec19477c9ec8\",\"name\":\"darrellkidjo.dev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g\",\"caption\":\"darrellkidjo.dev\"},\"sameAs\":[\"https:\\\/\\\/serverexplorer.ledocdev.com\"],\"url\":\"https:\\\/\\\/serverexplorer.ledocdev.com\\\/index.php\\\/author\\\/darrellkidjo-dev\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer","description":"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer","og_description":"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.","og_url":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/","og_site_name":"Server Explorer","article_published_time":"2024-09-03T22:55:45+00:00","article_modified_time":"2025-12-09T10:19:05+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg","type":"image\/jpeg"}],"author":"darrellkidjo.dev","twitter_card":"summary_large_image","twitter_creator":"@darrell_kidjo","twitter_site":"@darrell_kidjo","twitter_misc":{"Written by":"darrellkidjo.dev","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#article","isPartOf":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/"},"author":{"name":"darrellkidjo.dev","@id":"https:\/\/serverexplorer.ledocdev.com\/#\/schema\/person\/20f67c2affa11693453fec19477c9ec8"},"headline":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer","datePublished":"2024-09-03T22:55:45+00:00","dateModified":"2025-12-09T10:19:05+00:00","mainEntityOfPage":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/"},"wordCount":689,"publisher":{"@id":"https:\/\/serverexplorer.ledocdev.com\/#organization"},"image":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#primaryimage"},"thumbnailUrl":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg","keywords":["#Automation","#CommandLine","#DevOps","#ServerManagement","#SSH"],"articleSection":["VPS Management"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/","url":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/","name":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer - Server Explorer","isPartOf":{"@id":"https:\/\/serverexplorer.ledocdev.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#primaryimage"},"image":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#primaryimage"},"thumbnailUrl":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg","datePublished":"2024-09-03T22:55:45+00:00","dateModified":"2025-12-09T10:19:05+00:00","description":"Learn how to create a cron job on your server with a step-by-step guide using both the command line and Server Explorer. Automate tasks easily with examples, special parameters, and a user-friendly tool.","breadcrumb":{"@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#primaryimage","url":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg","contentUrl":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/09\/OIG1.Av4maWojyFIKl1aDVn6.jpg","width":1024,"height":1024,"caption":"create cron server"},{"@type":"BreadcrumbList","@id":"https:\/\/serverexplorer.ledocdev.com\/index.php\/2024\/09\/03\/create-cron-job-server-command-line-server-explorer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/serverexplorer.ledocdev.com\/"},{"@type":"ListItem","position":2,"name":"How to Create a Cron Job on a Server: A Step-by-Step Guide Using the Command Line and Server Explorer"}]},{"@type":"WebSite","@id":"https:\/\/serverexplorer.ledocdev.com\/#website","url":"https:\/\/serverexplorer.ledocdev.com\/","name":"Server Explorer","description":"Server Explorer SSH client - SFTP Explorer, VPS Security, terminal, Ai Integrated, Cron Management, Docker Manager for Linux servers on Mac and Windows","publisher":{"@id":"https:\/\/serverexplorer.ledocdev.com\/#organization"},"alternateName":"Server Files Explorer","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/serverexplorer.ledocdev.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/serverexplorer.ledocdev.com\/#organization","name":"Server Explorer","alternateName":"Server Files Explorer","url":"https:\/\/serverexplorer.ledocdev.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/serverexplorer.ledocdev.com\/#\/schema\/logo\/image\/","url":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/01\/OIG.P8HQiZbb_YxAtGo_Pkmw-removebg-preview.png","contentUrl":"https:\/\/serverexplorer.ledocdev.com\/wp-content\/uploads\/2024\/01\/OIG.P8HQiZbb_YxAtGo_Pkmw-removebg-preview.png","width":500,"height":500,"caption":"Server Explorer"},"image":{"@id":"https:\/\/serverexplorer.ledocdev.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/darrell_kidjo","https:\/\/www.linkedin.com\/in\/darrell-kidjo-ab49381a3\/"]},{"@type":"Person","@id":"https:\/\/serverexplorer.ledocdev.com\/#\/schema\/person\/20f67c2affa11693453fec19477c9ec8","name":"darrellkidjo.dev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/475cdf09b61eef7d56e50d2142844c4b668e33b2dd5202b6d97932ea1441fc7a?s=96&d=mm&r=g","caption":"darrellkidjo.dev"},"sameAs":["https:\/\/serverexplorer.ledocdev.com"],"url":"https:\/\/serverexplorer.ledocdev.com\/index.php\/author\/darrellkidjo-dev\/"}]}},"_links":{"self":[{"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":12,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"predecessor-version":[{"id":341,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/posts\/155\/revisions\/341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/media\/168"}],"wp:attachment":[{"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serverexplorer.ledocdev.com\/index.php\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}