Forrest logo
back to the elinks tool

elinks:tldr:ddfe6

elinks: Dump output of webpage to console, colorizing the text with ANSI control codes.
$ elinks -dump -dump-color-mode ${1} ${url}
try on your machine

This command is used to retrieve the content of a webpage and display it in a text-only format in the terminal. Here is the breakdown of each component of the command:

  • elinks: This is the name of the command-line web browser, which is being used to access and retrieve the webpage's content.

  • -dump: This flag instructs elinks to display the webpage's content in a text-only format rather than opening it in a graphical user interface.

  • -dump-color-mode ${1}: This flag specifies the color mode to be used when displaying the content. ${1} represents a command-line argument that should be provided when executing this command.

  • ${url}: This is another command-line argument that represents the URL of the webpage you want to retrieve the content from. It should be replaced with the actual URL when executing the command.

By running this command with the appropriate arguments, you can extract the textual content of a webpage and view it in the terminal.

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