It depends what you want to do.
I use one for my forums (active users), it runs a php file every five minutes.
When someone does something on a forum, its updates the database and sets them as active. The php file which the cron runs sets all users to be inactive.
You need to know unix/linux code when you use cron's.
Google some example code or tutorials on it.