Take a screenshot

From Linuxintro
Revision as of 09:03, 20 December 2013 by imported>ThorstenStaerk

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
xprop
find out the ID of the window you click on. Needed e.g. for the import tool.