how to take screenshot in ubuntu terminal code example

Example 1: screenshot in ubuntu

#save to pictures
PrtSc – Save a screenshot of the entire screen to the “Pictures” directory.
Shift + PrtSc – Save a screenshot of a specific region to Pictures.
Alt + PrtSc  – Save a screenshot of the current window to Pictures.

# copy to clipboard
Ctrl + PrtSc – Copy the screenshot of the entire screen to the clipboard.
Shift + Ctrl + PrtSc – Copy the screenshot of a specific region to the clipboard.
Ctrl + Alt + PrtSc – Copy the screenshot of the current window to the clipboard.

Example 2: particular screenshot in ubuntu

Prt Scrn to take a screenshot of the desktop.
Alt + Prt Scrn to take a screenshot of a window.
Shift + Prt Scrn to take a screenshot of an area you select.