How to apply CRON on site via terminal? And how to test if it is working?

How to apply CRON on site via terminal? And how to test if it is working?

Say the user is “test”

Via root, run

crontab -u test -e