If you wish to take a screen shot on a Linux system, whether it is a CentOS, Ubuntu, or other Linux distribution, one tool that may already be on the system that will allow you to perform a screen capture from a command line interface, i.e., a shell prompt, is gnome-screenshot. You can determine if the utility is present on a system using the which command.
$ which gnome-screenshot /usr/bin/gnome-screenshot
You can obtain help on using the tool to take a screenshot by typing
gnome-screenshot
at a shell prompt.
$ gnome-screenshot --help Usage: gnome-screenshot [OPTION...] Take a picture of the screen Help Options: -h, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options Application Options: -c, --clipboard Send the grab directly to the clipboard -w, --window Grab a window instead of the entire screen -a, --area Grab an area of the screen instead of the entire screen -b, --include-border Include the window border with the screenshot -B, --remove-border Remove the window border from the screenshot -d, --delay=seconds Take screenshot after specified delay [in seconds] -e, --border-effect=effect Effect to add to the border (shadow, border or none) -i, --interactive Interactively set options --display=DISPLAY X display to use
[ More Info]