Forrest logo
back to the ed tool

ed:tldr:633bb

ed: Start an interactive editor session with an empty document and a specific prompt.
$ ed --prompt='> '
try on your machine

The command "ed --prompt='> '" is used to open the ed (editor) program with a custom prompt.

  • "ed" is a line-oriented text editor that is available on Unix-like operating systems.
  • "--prompt='> '" is an option that sets the prompt in ed to "> ".

The prompt is the character or sequence of characters that appears at the beginning of each command line in the editor. By default, ed uses a colon (":") as the prompt. However, with this command, the prompt will be changed to a greater than sign (">").

Once ed is launched with this command, any commands entered by the user will be preceded by the greater than sign (">") prompt, indicating that they should enter a command at that point. For example, if you want to insert some text, you might enter "> i" at the prompt to switch to insert mode, then type the desired text.

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