← All RHCE Flashcard Decks

Scripting and Task Scheduling Flashcards

6 cards from real RHCE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Scripting and Task Scheduling flashcards as text
  1. What does the `at` command do?

    Answer: Runs a command at a specific future time once

    The `at` command schedules a command or script to run once at a specified future time, unlike cron which runs jobs repeatedly.

  2. Which command in bash reads user input and stores it in variable `NAME`?

    Answer: read NAME

    The `read` built-in command reads a line from standard input and assigns it to the specified variable.

  3. What does `2>&1` do in a bash command?

    Answer: Redirects stderr to stdout

    `2>&1` redirects file descriptor 2 (stderr) to wherever file descriptor 1 (stdout) currently points.

  4. Which bash construct tests if a variable `$FILE` exists as a regular file?

    Answer: if [ -f $FILE ]

    The `-f` test operator returns true if the specified path exists and is a regular file.

  5. What does the `#!/usr/bin/env bash` shebang offer over `#!/bin/bash`?

    Answer: Portability — uses the first `bash` found in PATH

    `#!/usr/bin/env bash` uses `env` to locate `bash` in the PATH, making the script more portable across systems where bash may not be at `/bin/bash`.

  6. Which directory stores system-wide cron jobs organized by frequency?

    Answer: /etc/cron.hourly/, /etc/cron.daily/, etc.

    Scripts placed in `/etc/cron.hourly/`, `/etc/cron.daily/`, `/etc/cron.weekly/`, and `/etc/cron.monthly/` are run at the respective intervals by `run-parts`.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. redhat.com — Test delivery, renewal, score validity, exam format, score release · verified Oct 2026