← All commands
Topic hub Services & Processes
Windows Linux Services & Processes Processes

Windows timeout /t equivalent in Linux

Waits for a specified amount of time before continuing.

Windows timeout /t
Linux equivalents
Debian/Ubuntu same command
sleep 5
Fedora same command
sleep 5
Arch same command
sleep 5

Overview

What this command does

Waits for a specified amount of time before continuing.

Migration tip: sleep accepts suffixes such as s, m, h and d.

Practical tasks

Common use cases

Pause a script

Waits for a specified amount of time before continuing.

sleep 5

Wait five seconds

sleep 2m

Wait two minutes

sleep 0.5

Wait half a second

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

sleep 5
sleep 2m
sleep 0.5

Walkthrough

Examples with explanations

sleep 5 # pause for five seconds
sleep 2m # pause for two minutes
sleep 0.5 # pause for half a second

Reference

Common options and variations

Command or optionUse
sleep 5Wait five seconds
sleep 2mWait two minutes
sleep 0.5Wait half a second

Distro differences

Debian/Ubuntu vs Fedora vs Arch

This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command sleep 5 Same command on this distribution.
Fedora same command sleep 5 Same command on this distribution.
Arch same command sleep 5 Same command on this distribution.

Keep learning

Related Services & Processes commands