terminal.cab

All commands

sleep

Topic: Processes

Program: sleep

Waits for a while, for example sleep 5 for five seconds.

Package: proc

Usage

sleep NUMBER[SUFFIX]...

Description

Wait for NUMBER seconds (s), minutes (m), hours (h) or days (d); several numbers are added. In the simulator the wait runs on its virtual clock.

Options in the simulator

1 more options of the real program, not in the simulator yet
  • --version not in the simulator yet

    Explanation to come

Examples

From the lesson Foreground, background, staying on
sleep 300 &
[1] 4243
jobs
[1]+  Running                 sleep 300 &
jobs -l
[1]+  4243 Running                 sleep 300 &

Try it in the terminal

Where you learn it

Lessons

All commands