Scrot: A Command Line Tool to Take Desktop/Server Screenshots Automatically in Linux

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Shambhu Singh

I am an Linux sever and Desktop Administrator with over than 4 years of Linux experience. I love Linux and I am actually really interested in the many Linux distributors like Ubuntu, Mint, Fedora, BOSS etc.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Linux BASH Programming Cookbook
Getting Started with Ubuntu 16.04
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

11 Responses

  1. Eddie Mack says:

    Thanks for the write-up. It was very informative. I would like to know if there is a way to modify the automated script so that the screen is captured only whenever a certain application is running. I have a user who has installed TOR browser on an office machine and I would like to know why. It seems doable with this method, I just lack the knowledge of bash to make it happen. Thanks for any help you can provide.

  2. Spider Man says:

    From @climagic: sleep 5; scrot -u Phishing-email-example-with-mouseover.png # Use a sleep and the -u option with scrot to capture a mouseover screenshot.

  3. Muneeb K says:

    Bashscript not working for me …

    • Ravi Saive says:


      Which bash script is not working for you? what error you see while executing the script? could you share the output with us?

  4. Stanley C says:

    How does linux ubuntu show dual screens?

  5. anil says:


    How we can take the screenshoot of any particular website like google or any monitoring tool like backuppc.


  6. Arindam says:

    Scrot is great for taking screenshots of a window without the title and borders:

    $ scrot -s

    And for those who want the window with the title and borders:

    $ scrot -b -s

    Great program.

  7. Vishal Kumar says:

    It will be a major pain in the neck if you do not do the following before installing scrot on centos using the mentioned script to install from source.
    First enable Repoforge on CentOS:
    Then do $ sudo yum install giblib-devel

    Otherwise it will keep giving an error The giblib-config script installed by giblib could not be found

  8. Narendra says:

    Great work…

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?