Here’s how to quickly grab screenshot of desktop from terminal in Linux Mint / Ubuntu:
1. Issue the following command at the terminal –
import -frame <filename.png>
for example the command –
import -frame screenshot.png
will allow us to capture a screenshot of a portion of the desktop and save it as ‘screenshot.png’ in the current working directory.
2. As soon as the above command is executed, the cursor changes to cross-hair and allows you to select a portion of the desktop which you wish to capture in the screenshot.
3. As you can see, the portion that we selected got saved as ‘screenshot.png’ in our current working directory.