Jump to content
Sign in to follow this  
daredevil

debian Display/list cron jobs in debian/linux

Recommended Posts

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

 

crontab -u userName -l
Use the following syntax to view faetpub user cronjob:

 

crontab -u faetpub -l
View Root User Cronjob

 

Just type the following command:

 

crontab -l
View Daily Cronjob

 

Type the following commands:

 

cd /etc/cron.daily/
ls -l
cat filename
View Hourly Cronjobs

 

Type the following commands:

 

cd /etc/cron.hourly/
ls -l
cat filename
View Weekly Cronjobs

 

Type the following commands:

 

cd /etc/cron.weekly/
ls -l
cat filename
View Monthly Cronjobs

 

Type the following commands:

 

cd /etc/cron.monthly/
ls -l
cat filename
View Software (Package) Specific Cronjobs

 

Type the following commands

 

cd /etc/cron.d/
ls -l
cat filename
To delete user cron

 

Type the following command:

crontab -r -u username
Example: To delete all crons for user faetpub:

crontab -r -u faetpub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

About Us

We are glad you decided to stop by our website and servers. At Fearless Assassins Gaming Community (=F|A=) we strive to bring you the best gaming experience possible. With helpful admins, custom maps and good server regulars your gaming experience should be grand! We love to have fun by playing online games especially W:ET, Call of Duty Series, Counter Strike: Series, Minecraft, Insurgency, DOI, TF2 & Battlefield Series and if you like to do same then join us! Here, you can make worldwide friends while enjoying the game. Anyone from any race and country speaking any language can join our Discord and gaming servers. We have clan members from US, Canada, Europe, Sri Lanka, India, Japan, Australia, Brazil, UK, Austria, Poland, Finland and many other countries. It doesn't matter how much good you are in the game or how much good English you speak. We believe in making new friends from all over the world. If you want to have fun and want to make new friends join up our gaming servers and our VoIP servers any day and at any time. .

×

Important Information

By using this site, you agree to our Terms of Use.