How To Take Screenshot With scrot - Command Line Tool In Linux

December 20, 2013 | By
| Reply More

Dear linoxide reader,

In this article we will teach you how to use a nice command-line tool called scrot that is used take screenshots in your linux machine. According to the description in the manual, this screen capture utility uses imlib2 library to aquire and save images. I like to practise the tool as much as possible, so lets open a new terminal (CTRL+ALT+T) and start the action.

Note: scrot is available in every repository, so the installation should be very easy.

How To Take Screenshots With scrot

1. Run the following command to capture your whole screen.


how to take screenshot in linux

When used without an option, scrot utility will capture your whole screen and will save the output in the following format inside your home directory.

The format: year-month-day-screen_resolution_scrot.png.

2. If you like to select a window or grab a rectangle, you should use the -s option which is the short version of --selection.

scrot -s

Type the above command in your terminal, hit enter and select the area you want to grab with your mouse. The screenshot will be saved in your home directory.

3. A very useful option that i use alot and would like to share with you linux geeks, is the -d option which is used to wait a number of seconds before taking a shot. You can also use the -c option while working with delays because it displays a nice countdown.

scrot -d 13 -c

how to take screenshot in linux


Free Linux Ebook to Download

Leave a Reply

All comments are subject to moderation.