Forrest logo
back to the xdotool tool

xdotool:tldr:b4540

xdotool: Type a message, with a 500ms delay for each letter.
$ xdotool type --delay ${500} "Hello world"
try on your machine

The command xdotool type --delay ${500} "Hello world" is used to simulate keyboard typing in a Linux or Unix environment using the xdotool tool.

Here's a breakdown of the command:

  • xdotool is a command-line tool used to automate keyboard and mouse actions.
  • type is a sub-command of xdotool used to simulate keyboard input.
  • --delay ${500} specifies the delay between each key press. ${500} is a variable that should hold the desired delay value, in this case, 500 milliseconds.
  • "Hello world" is the text that will be virtually typed.

Essentially, this command will simulate the typing of "Hello world" with a 500 milliseconds delay between each key press.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xdotool tool