{"id":327,"date":"2014-06-21T01:27:43","date_gmt":"2014-06-21T01:27:43","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=327"},"modified":"2014-06-21T01:27:43","modified_gmt":"2014-06-21T01:27:43","slug":"show-cron-jobs","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/06\/21\/show-cron-jobs\/","title":{"rendered":"Show Cron Jobs"},"content":{"rendered":"<p>How do I view currently setup or all running cron jobs under Linux operating systems?<\/p>\n<p>The cron service searches its spool area (usually \/var\/spool\/cron\/crontabs) for crontab files (which are named after user accounts); crontabs found are loaded into memory. cron also reads \/etc\/crontab, which is in a slightly different format. Additionally, cron reads the files in \/etc\/cron.d: it treats the files in \/etc\/cron.d as in the same way as the \/etc\/crontab file. The intended purpose of \/etc\/cron.d\/ directory feature is to allow packages that require finer control of their scheduling than the \/etc\/cron.{daily,weekly,monthly} directories to add a crontab file to \/etc\/cron.d.View Users Cronjob<\/p>\n<p>Use the following syntax to view username users cronjob:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncrontab -u userName -l\ncrontab -u username -l\n\n<\/pre>\n<p>View Root User Cronjob<\/p>\n<p>Just type the following command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncrontab -l\n\n<\/pre>\n<p>View \/etc\/crontab<\/p>\n<p>A cronjob can be also run from \/etc\/crontab file. To view it, enter:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# less \/etc\/crontab\n\n<\/pre>\n<p>View Daily Cronjob<\/p>\n<p>Type the following commands:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/etc\/cron.daily\/\nls -l\ncat filename\n\n<\/pre>\n<p>View Hourly Cronjobs<\/p>\n<p>Type the following commands:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/etc\/cron.hourly\/\nls -l\ncat filename\n\n<\/pre>\n<p>View Weekly Cronjobs<\/p>\n<p>Type the following commands:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/etc\/cron.weekly\/\nls -l\ncat filename\n\n<\/pre>\n<p>View Monthly Cronjobs<\/p>\n<p>Type the following commands:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/etc\/cron.monthly\/\nls -l\ncat filename\n\n<\/pre>\n<p>View Software (Package) Specific Cronjobs<\/p>\n<p>Type the following commands<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\ncd \/etc\/cron.d\/\nls -l\ncat filename\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How do I view currently setup or all running cron jobs under Linux operating systems? The cron service searches its spool area (usually \/var\/spool\/cron\/crontabs) for crontab files (which are named after user accounts); crontabs found are loaded into memory. cron also reads \/etc\/crontab, which is in a slightly different format. Additionally, cron reads the files &#8230; <a title=\"Show Cron Jobs\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/06\/21\/show-cron-jobs\/\" aria-label=\"Read more about Show Cron Jobs\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-cron"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}