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

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

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. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  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.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

13 Responses

  1. Dean says:

    Lol “Scrot”

  2. 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.

  3. 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.

  4. 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?

  5. Stanley C says:

    How does linux ubuntu show dual screens?

  6. anil says:


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


  7. 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.

  8. 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

  9. Narendra says:

    Great work…

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.