Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

So the two commands are different but same concept, usually used to run a command after something has finished.

Linux: (5 = 5 seconds)

No Format
ping -w 5 localhost

Note: For Linux you can use:

No Format
sleep .5 # Waits 0.5 second.
sleep 5  # Waits 5 seconds.
sleep 5s # Waits 5 seconds.
sleep 5m # Waits 5 minutes.
sleep 5h # Waits 5 hours.
sleep 5d # Waits 5 days.

Windows: (5 = 5 seconds)

No Format
ping localhost -n 5