Golden Codes - armanexplorer planet

Practical code snippets for Django, Python, Bash, Git and All!

View on GitHub

intro

# system crontabs, will be changed by packages mostly
cat /etc/crontab

# custom system crontabs
cd /etc/cron.d

# add cron job to current user cron jobs
crontab -e

# list the users crontabs
cd /var/spool/cron/crontabs

check logs

Docs

# only today
journalctl -t CRON --since "today"

# live logs + 100 last lines + only today
journalctl -t CRON --since "today" -n 100 -f

# from 3 days ago until now
journalctl -t CRON --since "3 days ago"