Forrest logo
back to the ed tool

ed:tldr:79c54

ed: Start an interactive editor session with an empty document and a specific [p]rompt.
$ ed -p '> '
try on your machine

The command "ed -p '> '" performs the following:

  • "ed" is the name of the command-line text editor.
  • The "-p" option is used to specify a prompt string that will be displayed to the user.
  • "> " is the prompt string itself, where "> " is the symbol typically used as a prompt in many text editors or command-line interfaces.

So, when this command is executed, it launches the "ed" editor and sets the prompt to "> ". This prompt is displayed to the user, indicating that they can start entering commands or editing text within the editor.

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