screencapture
From Mac Guides
screencapture is a Terminal command used to invoke the screen capture feature in Mac OS X.
[edit]
Examples
To take a screenshot of the entire screen and save it to the desktop
screencapture -S ~/Desktop/screen.jpg
To take a picture of a window, and save it to the desktop
screencapture -iW ~/Desktop/screen.jpg
To take a screenshot of a section of the screen, and save it to the clipboard
screencapture -ic
[edit]
Man Page Excerpt
The screencapture utility is not very well documented to date. A list of
options follows.
-S In window capture mode, capture the screen instead of the window.
-W Start interaction in window selection mode.
-c Force screen capture to go to the clipboard.
-i Capture screen interactively, by selection or window. The con-
trol key will cause the screen shot to go to the clipboard. The
space key will toggle between mouse selection and window selec-
tion modes. The escape key will cancel the interactive screen
shot.
-m Only capture the main monitor, undefined if -i is set.
-s Only allow mouse selection mode.
-w Only allow window selection mode.
-x Do not play sounds.
-C Capture the cursor as well as the screen. Only allowed in non-
interactive modes.
-t <format> Image format to create, default is png.
file where to save the screen capture
[edit]

