Home >> Linux Command P-T, Process Management

sleep

Fungsi Perintah

Memberhentikan proses selama waktu yang ditentukan.

Struktur Perintah

sleep [number][time_suffix]
time_suffix : seconds, minutes, hours, days, dll. Defaultnya adalah seconds.

Contoh Penggunaan

Menunda proses echo test2 selama 10 detik.

$ echo test && sleep 10 && echo test2
test
test2

Leave a Reply