title: crontab
category: Server
time: 1484088064598
---
# crontab schedule tasks

## Default crontab tasks
```
# Check crontab tasks (Current User)
crontab -l

# Edit crontab tasks (Current User)
crontab -e

# Check or Edit crontab tasks for other user
sudo -u user.name crontab -l
```

## Put crontab in directory (Usually use symlink)
```
# Tasks config file location
cd /etc/cron.d/

# For daily, monthly tasks
# Where * is daily/monthly etc.
cd /etc/cron.*
```
