×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is a crontab and how can you view and create one?

by EITCA Academy / Saturday, 05 August 2023 / Published in Cybersecurity, EITC/IS/LSA Linux System Administration, Advancing in Linux sysadmin tasks, Scheduling tasks with cron, Examination review

A crontab, short for "cron table," is a configuration file used in Linux systems to schedule recurring tasks or jobs. It is a fundamental tool for Linux system administrators to automate routine tasks, such as backups, system updates, log rotation, and more. The crontab file contains a list of commands or scripts that are executed at specified intervals, allowing users to schedule tasks without manual intervention.

To view and create a crontab, one must access the Linux command line interface. There are two types of crontabs: system-wide and user-specific. The system-wide crontab applies to all users on the system and is typically located in the /etc/crontab file or in the /etc/cron.d/ directory. User-specific crontabs, on the other hand, are associated with individual user accounts and can be managed using the crontab command.

To view an existing crontab, use the following command:

crontab -l

This command lists the current crontab entries for the user executing it. If no crontab exists for the user, it will display an empty result.

To create or edit a crontab, use the following command:

crontab -e

This command opens the crontab file in the default text editor specified by the EDITOR environment variable. If EDITOR is not set, it will use the vi editor by default. Within the editor, each line represents a separate cron job entry. Each entry consists of six fields, specifying the timing and command to be executed.

The format of a cron job entry is as follows:

* * * * * command_to_be_executed

The five asterisks (*) represent the timing parameters, which determine when the command will be executed. Each asterisk corresponds to a specific time unit:

1. Minute (0-59)
2. Hour (0-23)
3. Day of the month (1-31)
4. Month (1-12)
5. Day of the week (0-7, where both 0 and 7 represent Sunday)

For example, to schedule a command to run every day at 2:30 PM, the cron job entry would be:

30 14 * * * command_to_be_executed

Once the crontab file is saved and closed, the cron daemon automatically reloads the updated crontab and starts executing the scheduled tasks accordingly.

It is important to note that the cron daemon runs with the permissions of the user who owns the crontab. Therefore, the user must have the necessary privileges to execute the specified commands or scripts successfully.

A crontab is a important tool in Linux system administration for automating recurring tasks. By understanding how to view and create crontabs, system administrators can effectively schedule and manage routine jobs, improving efficiency and reducing manual intervention.

Other recent questions and answers regarding Examination review:

  • What should be considered when executing commands with cron that require root privileges or access to system directories?
  • How can you schedule a task to run every minute, every hour, every day, every month, and every weekday?
  • Where are user crontabs and system-wide crontabs stored?
  • How many fields does a crontab consist of and what do they represent?

More questions and answers:

  • Field: Cybersecurity
  • Programme: EITC/IS/LSA Linux System Administration (go to the certification programme)
  • Lesson: Advancing in Linux sysadmin tasks (go to related lesson)
  • Topic: Scheduling tasks with cron (go to related topic)
  • Examination review
Tagged under: Automation, Crontab, Cybersecurity, Linux, Scheduling, System Administration
Home » Cybersecurity » EITC/IS/LSA Linux System Administration » Advancing in Linux sysadmin tasks » Scheduling tasks with cron » Examination review » » What is a crontab and how can you view and create one?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.