Crontab on FEDORA

This is an intentional post to my students at  UNI. We are learning how to use the shell commands on Linux. The simplest example is to register the datatime in a file in my home every 2 minutes.

First, we must check if the crontab file exists. This is located on /etc. Remember that all the files that are inside the /etc directory are managed  by the superuser: root:

Screenshot from 2016-09-02 19:41:02As you see, the last line explains the way to configure “our task”. The first * character set minutes, in this case we are going to write */2:

The last line of the crontab indicates also the user that is going to execute the file “”.

Screenshot from 2016-09-02 20:03:53Besides that, we have created the sh file and we put the right permissions using chmod a+x (a of all and x of executable). Checked the list of the files.

Finally, configure the sh file starting with the header #!/bin/bash and the commands to execute our purpose.  Check the output in the file mentioned:

Screenshot from 2016-09-02 20:19:10My students must do more complex examples, I hope they can enjoy their weekend 🙂

About Julita Inca

Ingeniero de Sistemas UNAC, Magíster en Ciencias de la Computación PUCP, Magíster en Computación de Alto Rendimiento de la Universidad de Edimburgo, OPW GNOME 2011, Miembro de la GNOME Foundation desde el 2012, Embajadora Fedora Perú desde el 2012, ganadora del scholarship of the Linux Foundation 2012, experiencia como Admin Linux en GMD y Especialista IT en IBM, con certificaciones RHCE, RHCSA, AIX 6.1, AIX 7 Administrator e ITILv3. Experiencia académica en universidades como PUCP, USIL y UNI. Leader of LinuXatUNI Community, HPC Software Specialist at UKAEA, and reviewer of the Technological Magazine of ESPOL-RTE, and volunteering Linux training for MINSA Peru... a simple mortal, just like you!
This entry was posted in τεχνολογια :: Technology and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s