Take a screenshot

From Linuxintro
Revision as of 21:47, 19 April 2020 by imported>ThorstenStaerk
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To take a screenshot via command line and save it as desktop.jpg:

  • install imagemagick, e.g. for Ubuntu Linux:
apt-get install imagemagick
  • use the command import to take the screenshot:
import -window root desktop.jpg
  • to find out the ID of a window, call
xprop
and click on the window

One-key-screenshot

import -window root snapshot-$(date +%Y-%m-%d_%H-%M-%S).jpg

See also