Forrest logo
back to the urxvt tool

urxvt:tldr:ddabd

urxvt: Run in a specific directory.
$ urxvt -cd ${path-to-directory}
try on your machine

The command urxvt -cd ${path-to-directory} is used to open the URxvt (or rxvt-unicode) terminal emulator and set the initial working directory to the specified ${path-to-directory}.

Here's the breakdown of the command:

  • urxvt: This is the command to launch the URxvt terminal emulator. URxvt is a highly configurable and lightweight terminal emulator for X11 (X Window System).

  • -cd: It is an option for URxvt that instructs it to change its current working directory to the specified directory.

  • ${path-to-directory}: This is a placeholder for the actual path to the directory you want to set as the initial working directory. You need to replace ${path-to-directory} with the appropriate path, such as /home/user/documents or /path/to/directory.

By utilizing -cd followed by the desired directory's path, you can ensure that when the URxvt terminal is opened, it automatically navigates to the specified directory instead of starting in the default directory (usually the user's home directory).

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 urxvt tool