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
We need your assistance to stay live
This week Top Posts
- 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 |
- Fedora 21 Scheduled For Release In October : For Fedora users, just keep calm and use Fedora 20 for now. Fedora Developers has announced that F...1 comment |
- 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 Server (Apache, MySQL or MariaDB, PHP) On Ubuntu 13.10 : Updated January 12, 2014 LAMP is a combination of operating system and open-source software stack. ...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 |
- How to Install uTorrent Client on Ubuntu/Debian/Linux Mint : uTorrent is a lightweight and efficient BitTorrent client for Linux, Windows OS and Mac OS. The inst...0 comments |
- Fedora 21 Scheduled For Release In October
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .