在 Linux 上截屏的 3 种方法
截图 截屏

> 
> 使用我最喜欢的工具在 Linux 上截屏，可以节省时间。
> 
> 
> 


![](/data/attachment/album/202208/18/172307e5du1dxqd66d66cm.jpg)


在写开源软件时，我更喜欢展示一些截图来帮助演示我在说什么。古语有云，一图胜千言。如果你能展示一件事，那通常比试图用言语描述它要好。


有几种方法可以在 Linux 中截图。以下是我在 Linux 上用于捕获截图的三种方法：


### 1、GNOME


GNOME 有一个很棒的内置截图工具。只需按下键盘上的 `PrtScr` 键，GNOME 就会显示一个截图对话框：


![Image of GNOME screenshot tool](/data/attachment/album/202208/18/171728p2m5e2l55dtdytyd.png)


默认操作是抓取区域的截图。这是一种在你制作截图时裁剪截图的非常有用的方法。只需将高亮显示框移动到你需要的位置，然后使用“抓取”角来更改大小。或选择其他图标之一以截取整个屏幕或系统上的单个窗口。点击“圆圈”图标进行截图，类似于手机上的“拍照”按钮。 GNOME 截图工具将截图保存在图片文件夹内的截图文件夹中。


### 2、GIMP


如果你需要更多截图选项，你可以使用流行的图像编辑器 GIMP 截图。要进行截图，请选择“<ruby> 文件 <rt>  File </rt></ruby>”并选择“<ruby> 创建 <rt>  Create </rt></ruby>”子菜单，然后选择“<ruby> 截图 <rt>  Screenshot </rt></ruby>”。


![Image of the GIMP screenshot menu](/data/attachment/album/202208/18/171728zu9zr53ouku5bgzy.png)


该对话框允许你截取单个窗口、整个屏幕或仅一个区域的屏幕截图。我喜欢这个工具可以让你设置一个延迟：选择窗口后多长时间，按下截图后多长时间。当我想截取菜单操作的截图时，我经常使用此功能，因此我有足够的时间去窗口打开菜单。


GIMP 将截图作为新图像打开，你可以对其进行编辑并保存到你喜欢的位置。


### 3、Firefox


如果你需要截取网站的截图，请尝试使用 Firefox 的内置截图程序。右键单击网页正文中的任意位置，然后从菜单中选择“<ruby> 截图 <rt>  Take Screenshot </rt></ruby>”：


![Image of screenshot utility](/data/attachment/album/202208/18/171729tqdxec9e2ducekka.png)


Firefox 切换到模态显示，并提示你单击或拖动页面以选择区域，或使用其中一个图标保存整个页面的副本，或仅在浏览器中可见的内容：


![Image of Firefox modal display](/data/attachment/album/202208/18/171729ne0ianvn52e0ittu.png)


当你在屏幕上移动鼠标时，你可能会注意到 Firefox 会高亮显示某些区域。这些是页面上的块元素，例如 `<div>` 或其他块元素。单击该元素以对其进行截图。 Firefox 将截图保存到你的下载文件夹，或你设置为“下载”位置的任何位置。


如果你尝试记录流程，那么截图可以为你节省大量时间。


尝试使用其中一种方法在 Linux 上截图。


（图片来源：Jim Hall，CC BY-SA 40）




---


via: <https://opensource.com/article/22/8/screenshots-linux>


作者：[Jim Hall](https://opensource.com/users/jim-hall) 选题：[lkxed](https://github.com/lkxed) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
When writing about open source software, I prefer to show a few screenshots to help demonstrate what I'm talking about. As the old saying goes, a picture is worth a thousand words. If you can show a thing, that's often better than merely trying to describe it.

There are a few ways you can take screenshots in Linux. Here are three methods I use to capture screenshots on Linux:

## 1. GNOME

GNOME has a great built-in screenshot tool. Just hit the **PrtScr** key on your keyboard, and GNOME displays a screenshot dialog:

![Image of GNOME screenshot tool](https://opensource.com/sites/default/files/2022-07/screenshot-gnome.png)

(Jim Hall, CC BY-SA 40)

The default action is to grab a screenshot of a region. This is an incredibly useful way to crop a screenshot as you make it. Just move the highlight box to where you need it, and use the "grab" corners to change the size. Or select one of the other icons to take a screenshot of the entire screen, or just a single window on your system. Click the circle icon to take the screenshot, similar to the "take photo" button on mobile phones. The GNOME screenshot tool saves screenshots in a Screenshots folder inside your Pictures folder.

## 2. GIMP

If you need more options for screenshots, you can grab a screenshot using GIMP, the popular image editor. To take a screenshot, go to **File **and choose the **Create **submenu, and then choose **Screenshot**.

![Image of the GIMP screenshot menu](https://opensource.com/sites/default/files/2022-07/gimp-screenshot.png)

(Jim Hall, CC BY-SA 40)


The dialog allows you to take a screenshot of a single window, the entire screen, or just a region. I like that this tool lets you set a delay: how long until you select the window, and how long after that to take the screenshot. I use this feature a lot when I want to grab a screenshot of a menu action, so I have enough time to go to the window and open the menu.

GIMP opens the screenshot as a new image, which you can edit and save to your preferred location.

## 3. Firefox

If you need to take a screenshot of a website, try Firefox's built-in screenshot utility. Right-click anywhere in the web page body, and select **Take Screenshot** from the menu:

![Image of screenshot utility](https://opensource.com/sites/default/files/2022-07/firefox-screenshot_cropped_0.png)

(Jim Hall, CC BY-SA 40)


Firefox switches to a modal display and prompts you to click or drag on the page to select a region, or use one of the icons to save a copy of the full page or just what's visible in the browser:

![Image of Firefox modal display](https://opensource.com/sites/default/files/2022-07/firefox-screenshot_1.png)

(Jim Hall, CC BY-SA 40)

As you move your mouse around the screen, you may notice that Firefox highlights certain areas. These are block elements on the page, such as a `<div> `

or another block element. Click on the element to take a screenshot of it. Firefox saves the screenshot to your **Downloads** folder, or wherever you have set as your "download" location.

If you're trying to document a process, a screenshot can save you a lot of time. Try using one of these methods to take a screenshot on Linux.

## 3 Comments