Sleeping and sequencing

The command sleep just sleeps for the given number of seconds :-) For example, try the following commands:

[alice@onyx ~]$ sleep 2

You can try a longer sleep and use Ctrl-c to cancel it. Here is another command to try.

[alice@onyx ~]$ date; sleep 10; date
Sat Oct 14 13:09:13 MDT 2017
Sat Oct 14 13:09:23 MDT 2017
[alice@onyx ~]

Note that the semi-colon allows us to type multiple commands in one line that are executed in sequence. The sleep command is useful in scripting, which we will study in a later module.