Question: How can I take a screenshot in X.org?

I am unsure if the Print Screen button will "just work" and I don't know how I would go about testing it.

Answer: 
I found a great answer to this question [here](https://stackoverflow.com/a/10609516/252223), it is worth repeating. 

> 
> This can be achieved with ImageMagick. Install by running the command
> 
> 
> 
> ```
> sudo apt-get install imagemagick
> 
> ```
> 
> To grab all desktop just type
> 
> 
> 
> ```
> import -window root screen.png
> 
> ```
> 
> Or you can do it with a delay of 5 seconds
> 
> 
> 
> ```
> sleep 5; import -window root screen.png
> 
> ```
> 
>
I use 'xwd'. For example, one I just did: `xwd | xwdtopnm > dw.ppm`
The only downside I know of with xwd is that you need some other utility to convert its output to something understood by anything other than 'xwud'.