Download Article Download Article

Taking a screenshot on Linux isn't quite as straightforward as it is on other operating systems, such as Windows or macOS. This is because there is no universal screenshot utility installed in Linux. Luckily, most Linux distributions include at least one program that can take a screenshot, and there are more available if you don't have one installed.

Method 1
Method 1 of 4:

Using Gnome Screenshot

Download Article
  1. PrtScn to take a full-screen screenshot. The screenshot will show everything in your display. You will be prompted to select where you would like to save the screenshot file.
    • The Print Screen key is located at the top of the keyboard, usually between F12 and ScrLk. It may be labeled "Print Screen", "PrtScn", "PrntScrn", or something else similar.
  2. Alt+PrtScn to take a screenshot of a window. This shortcut will create a screenshot of your active window. The file will be created in your Pictures folder.[1]
    Advertisement
  3. Shift+PrtScn to select what you capture. You'll be able to click and drag a selection box to determine what is captured in the screenshot. A file with the image you captured will be created in your Pictures folder.[2]
  4. The Gnome Screenshot utility allows you to perform some additional screenshot functions, such as adding a delay. You can find the Screenshot utility in the Accessories folder of your Applications menu.
  5. You can choose from any of the options outlined above.
  6. If your screenshot is time-dependent, you can use the Screenshot utility to add a delay before the screenshot is captured. This will allow you to make sure the right content is on the screen.[3]
  7. You can choose to include your mouse pointer in the screenshot, as well as whether or not you want to add a border to the screenshot.[4]
  8. Advertisement
Method 2
Method 2 of 4:

Using GIMP

Download Article
  1. GIMP is a free image editor that comes installed on some Linux distributions. If you don't have it installed, you can get it for free using your distribution's package manager or Software Center. Open the Software Center, search for "gimp", and then install the "GIMP Image Editor".[5]
  2. The screenshot creation tool will open. This tool is very similar to the Gnome Screenshot utility.[6]
  3. You can choose to take three different types of screenshots: single window, full-screen, or custom selection. If you choose the single window option, you'll be able to click the window that you want to take a screenshot of.[7]
  4. You can add a delay before the screenshot is taken so that you can arrange everything exactly how you want it. If you have single window or custom screenshots selected, you'll choose your screenshot target after the delay timer runs out.[8]
  5. Depending on your settings, the screenshot may be taken immediately. When you're finished, the screenshot will open in the GIMP editing window.
  6. If you don't want to make any edits to the screenshot, you can save it to your hard drive. Click the "File" menu and select "Export". Give the screenshot a name and choose where you would like to save it. Click the "Export" button once you are satisfied.
  7. Advertisement
Method 3
Method 3 of 4:

Using ImageMagick

Download Article
  1. ImageMagick is a command-line utility that can capture screenshots for you. Many distributions come with ImageMagick already installed, but you can install it for free from your distribution's package manager if you don't have it.
    • To open the Terminal quickly in Ubuntu and many other distributions, press Ctrl+Alt+T.
  2. On Debian-based distributions such as Ubuntu, type sudo apt-get install imagemagick and press Enter. You will be prompted for your administrator password. If ImageMagick hasn't been installed, it will begin downloading and installing. If it is already installed, you will be informed.
  3. Type import -window root Pictures/fileName.png and press Enter. Replace fileName with the name you want to give the screenshot.[9]
  4. Type import Pictures/fileName.png and press Enter. Replace fileName with the name you want to give the screenshot. The cursor will turn into a crosshair, and you can click the window that you want to capture.
  5. Type import -window root -pause # Pictures/fileName.png and press Enter. Replace # with the amount of seconds that you want to wait before the screenshot is taken. After waiting the set amount of time, the screenshot will be taken and you will be returned to the terminal prompt.
  6. Advertisement
Method 4
Method 4 of 4:

Using Shutter

Download Article
  1. This is a popular screenshot program that contains some advanced upload and editing capabilities. If you take and share screenshots often, you may want to give this program a try.
    • You can find Shutter through most distribution's package managers. Simply search for "Shutter" and install the program.[10]
    • To install Shutter from the Terminal on Debian-based distributions, type sudo add-apt-repository ppa:shutter/ppa and press Enter. Update your repositories by typing sudo apt-get update, and then install Shutter by typing sudo apt-get install shutter.
  2. Along the top of the Shutter window, you'll see the three options that you can pick from: "Selection", "Desktop" and "Window". Click the button to select the type of screenshot you want to take.
  3. If you selected "Desktop", your screenshot will be taken automatically. If you selected "Selection", the screen will dim and you can click and drag to create a selection box. Everything inside of the box will be captured. If you selected "Window", you can click the window that you want to take a screenshot of.
    • The screenshot will be saved automatically to your Pictures folder.
  4. After taking the screenshot, a preview will appear in the Shutter window. Click the "Edit" button to open the Shutter editor. You can use the editor to highlight things on the screenshot or make notations. Click "Save" when you are finished.
  5. You can send the screenshot to an image upload service, or add an FTP server to upload it to. Click the "Export" button to open the Export menu.
    • In the "Public hosting" tab, you can choose to upload the screenshot to your Dropbox account or a variety of online image hosting websites. You'll be asked for your account credentials when you select one.
    • In the "FTP" tab, you can enter in the connection information for your FTP server, which is useful if you post screenshots on a blog or website.
    • In the "Places" tab, you can move the screenshot to another location on your computer or network.
  6. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I take a screenshot with my keyboard exclusively (not using a mouse) on a Linux (CentOS 7) with MAC keyboard?
    Community Answer
    Community Answer
    You can take a screenshot of the entire screen by pushing the "Print Screen" (PrtSc) button on your keyboard. To get a screenshot of only the active window, use Alt-PrtSc. This is easier than using the Gnome "Take Screenshot" tool.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Thanks for submitting a tip for review!

You Might Also Like

Change Your Password in Linux Using TerminalChange Your Password in Linux Using Terminal
Change the Timezone in LinuxChange the Timezone in Linux
Change the Name of a Wireless NetworkEasy Ways to Change the Wi-Fi Network Name
Capture Gaming Screenshots3 Easy Ways to Capture Gaming Screenshots on a Computer
Install Google Chrome Using Terminal on Linux
Can Linux Run ExeCan Linux Run .exe Files? How to Run Windows Software on Linux
Linux How to Mount DriveHow to Mount Drives on Linux: Command Line & GUI
Become Root in LinuxBecome Root in Linux
Tar a DirectoryHow to Tar a Directory and Subdirectories in Linux
Find a File in LinuxFinding Linux Files: Complete Guide to Using Find Commands
Use Wine on LinuxHow to Install and Use Wine on Linux
Add or Change the Default Gateway in LinuxAdd or Change the Default Gateway in Linux
Execute INSTALL.sh Files in Linux Using TerminalHow to Run an INSTALL.sh Script on Linux in 4 Easy Steps
Run Files in LinuxRun Files in Linux
Advertisement

About This Article

Stan Kats
Reviewed by:
Cybersecurity Expert
This article was reviewed by Stan Kats. Stan Kats is the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology & cybersecurity solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan has over 7 years of cybersecurity experience, holding senior positions in information security at General Motors, AIG, and Aramark over his career. Stan received a BA in International Relations from The University of Southern California. This article has been viewed 733,747 times.
How helpful is this?
Co-authors: 21
Updated: April 15, 2024
Views: 733,747
Categories: Linux
Article SummaryX

To take a screenshot while using Linux, use the “PrtScn” button on your keyboard, which is usually located between the “F12” and “ScrLk” buttons. This method will take a full-screen screenshot in most GNOME desktops environments, like Ubuntu and Linux Mint. If you just want to take a screenshot of your active window, press “Alt” and “PrtScn” at the same time. Alternatively, install GIMP, which is a free image editor. After you’ve installed GIMP, click the “File” menu and select “Create,” then “Screenshot”. Once the screenshot tool is open, you can choose whether you want to take a single window, full-screen, or custom screenshot before hitting the “Snap” button to take a screenshot. For more help, including how to take a screenshot with ImageMagick, read on.

Did this summary help you?

Thanks to all authors for creating a page that has been read 733,747 times.

Reader Success Stories

  • Anonymous

    Anonymous

    Aug 24, 2018

    "This made me aware PrtScn is not enough and that I should combine Alt first. Further-on; Shutter is a refined tool..." more
    Rated this article:
Share your story

Is this article up to date?

Advertisement