Xing's Blog

  • Categories
  • Archives
  • Search
  • Table of Contents
  • Overview
  1. 1. Syntax
  2. 2. Example

Xinghua Zhang

262 posts
22 categories
30 tags
GitHub
0%

Linux Command - sleep

Posted on 2022-05-21 In Linux-Command

sleep - delay for a specified number of seconds

Syntax

1
sleep seconds

Example

sleep for 3 seconds

1
sleep 3

echo ‘DONE’ after 2 seconds

1
(sleep 2; echo 'DONE')
# Linux
Spring Boot - Scheduling Tasks
Java Concurrency - Synchronnized
© 2025 Xinghua Zhang
Powered by Hexo & NexT.Mist