Take a screenshot of the current window and save it to the specified file location

gnome-screenshot

  • Capture the screen, a window, or a user-defined area and save the image to a file.
    More information: <https://manned.org/gnome-screenshot>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

gnome-screenshot --window --file {{path/to/file}}

click the source code to copy install gnome-screenshot on any operating system with command-not-found.com