1. Computing & Technology
Linux / Unix Command: sleep
Command Library

NAME

sleep - Sleep for the specified number of seconds  

SYNOPSIS

#include <unistd.h>

unsigned int sleep(unsigned int seconds);
 

DESCRIPTION

sleep() makes the current process sleep until seconds seconds have elapsed or a signal arrives which is not ignored.  

RETURN VALUE

Zero if the requested time has elapsed, or the number of seconds left to sleep.  

CONFORMING TO

POSIX.1  

SEE ALSO

signal(2), alarm(2)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Discuss in my forum

©2012 About.com. All rights reserved.

A part of The New York Times Company.