Forrest logo
back to the import tool

import:tldr:7dc69

import: Capture contents of a remote X server screen in the PNG format.
$ import -window root -display ${remote_host}:${screen}.${display} ${output-png}
try on your machine

This command is used to capture a screenshot of the remote host's screen and saves it as a PNG image file.

Explanation of the command:

  • import: This is a command-line tool in Unix-like systems (such as Linux) used to capture and manipulate screen image files.
  • -window root: This flag tells import to capture the entire screen, starting from the root window. In other words, it captures the complete desktop or screen.
  • -display ${remote_host}:${screen}.${display}: This flag specifies the display to capture from. ${remote_host} is the hostname or IP address of the remote host. ${screen} is the identifier for the screen (usually set to 0). ${display} is the display number (usually set to 0). Together, ${remote_host}:${screen}.${display} indicates the specific display on the remote host to capture the screen from.
  • ${output-png}: This is the name and location of the output PNG image file where the captured screen will be saved to. You need to replace ${output-png} with the desired file path and name. For example, /path/to/screenshot.png.

In summary, this command allows you to remotely capture the screen of a specified host and save it as a PNG image file. The resulting image will be saved at the location specified by ${output-png}.

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