Scrot: A Command-Line Screenshot Tool
There are a lot ways to take screenshot in Linux. scrot is a very useful command-line tool for taking screenshots.
scrot is pre-installed in most Linux distributions. When it is not installed, just run the basic installation command in your terminal.
$ sudo apt-get install scrot
How do you use scrot to take screenshot? scrot takes screenshots quickly and silently.
Take a screenshot of the whole desktop
Open a terminal and type scrot then hit Enter.
The image captured will be stored in the current directory and its name by default will be in the format:
Also you can specify your choice name and image type by using this command:
$ scrot ~/Photos/unixmen.jpg
The above command will capture the full desktop and save it in Photos folder with name unixmen and image type jpg.
Take a screenshot of selected desktop area
scrot also a feature that enable you to take sscreenshot of any selected area of the screen. It is just awesome.
Type the command below in the terminal and hit Enter:
$ scrot -s
After hitting enter, drag the mouse over the area to capture and release the button.
To take a screenshot of the whole screen with scrot after a specific time, you need to add the “-d” (delay) argument to the scrot command with the time in seconds. So to take a screenshot in 7 seconds, here is the format:
$ scrot -d 7 unixmen.jpg
This will capture the whole screen after exactly 7 seconds and save it in the Home folder with name unixmen.jpg.
You can also use the parameter “-c” in addition to “-d” to print countdown to screenshot in the terminal. Example:
$ scrot -d 7 -c unixmen.jpg
This starts counting down from 8.. 7.. 6.. 5.. 4.. 3.. 2.. 1.. 0.. (as shown below) immediately it reaches 0 a screenshot is taken, named unixmen.jpg located in the Home folder.
Adding “-q” to the command also sets the quality of the image captured.
Capture and edit
You can also take a screenshot, open and edit it on the go using GIMP by combining two commands. Use the format below:
$ scrot -q 90 -d 7 unixmen.png && gimp unixmen.png &
The above command is made up of two commands. One for taking the screenshot with scrot (scrot -q 90 -d 7 unixmen.png) and the other for opening the newly created screenshot image on GIMP (gimp unixmen.png).
The && is the AND logic operator which tells the terminal “If the first command is true, then perform the second one”. The & at the end means the commands will be run in the background so that the terminal can be used for other commands if needed.
For more information about scrot, type the command below to read the man page:
$ man scrot
Like us on Facebook
This week Top Posts
- How To Install Netflix In Ubuntu : Hi unixmen readers! How are you? In this article we will teach you how to install the desktop vers...4 comments |
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- How To Configure Linux Clients To Authenticate Using OpenLDAP : This is the continuation of our previous tutorial. In our previous tutorial we learned how to instal...2 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- Install and Configure Samba share in Ubuntu 13.10 'Saucy Salamander' , 13.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comments |
- Setup IT And Asset Management System With GLPI On Debian/Ubuntu
- How To Configure Linux Clients To Authenticate Using OpenLDAP
- How To Install Netflix In Ubuntu
- cowsay And fortune Combined Together
- How To Show Username On Panel In Ubuntu 13.04/13.10
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .