在 Linux 下使用任务管理器
任务管理器
![](/data/attachment/album/201607/11/080353zocqvyqkfk9dsft9.jpg)


有很多 Linux 初学者经常问起的问题，“**Linux 有任务管理器吗？**”，“**怎样在 Linux 上打开任务管理器呢？**”


来自 Windows 的用户都知道任务管理器非常有用。你可以在 Windows 中按下 `Ctrl+Alt+Del` 打开任务管理器。这个任务管理器向你展示了所有的正在运行的进程和它们消耗的内存，你可以从任务管理器程序中选择并杀死一个进程。


当你刚使用 Linux 的时候，你也会寻找一个**在 Linux 相当于任务管理器**的一个东西。一个 Linux 使用专家更喜欢使用命令行的方式查找进程和消耗的内存等等，但是你不用必须使用这种方式，至少在你初学 Linux 的时候。


所有主流的 Linux 发行版都有一个类似于任务管理器的东西。大部分情况下，它叫<ruby> 系统监视器 <rp>  （ </rp> <rt>  System Monitor </rt> <rp>  ） </rp></ruby>，不过实际上它依赖于你的 Linux 的发行版及其使用的[桌面环境](https://wiki.archlinux.org/index.php/desktop_environment)。


在这篇文章中，我们将会看到如何在以 GNOME 为[桌面环境](https://itsfoss.com/best-linux-desktop-environments/)的 Linux 上找到并使用任务管理器。


### 在使用 GNOME 桌面环境的 Linux 上的任务管理器等价物


使用 GNOME 时，按下 super 键（Windows 键）来查找任务管理器：


![](/data/attachment/album/201607/11/080407m1gr5r5qklj58qj2.png)


当你启动系统监视器的时候，它会向你展示所有正在运行的进程及其消耗的内存。


![](/data/attachment/album/201607/11/080427thwmuia2ugd43iu1.jpeg)


你可以选择一个进程并且点击“<ruby> 终止进程 <rp>  （ </rp> <rt>  End Process </rt> <rp>  ） </rp></ruby>”来杀掉它。


![](/data/attachment/album/201607/11/080438nw4wrrjmx5w4omm8.png)


你也可以在“<ruby> 资源 <rp>  （ </rp> <rt>  Resources </rt> <rp>  ） </rp></ruby>”标签里面看到关于一些统计数据，例如 CPU 的每个核心的占用，内存用量、网络用量等。


![](/data/attachment/album/201607/11/080454aw6mmyf8ywyvf6jf.png)


这是图形化的方式。如果你想使用命令行，在终端里运行“top”命令然后你就可以看到所有运行的进程及其消耗的内存。你也可以很容易地使用命令行[杀死进程](https://itsfoss.com/how-to-find-the-process-id-of-a-program-and-kill-it-quick-tip/)。


这就是关于在 Fedora Linux 上任务管理器的知识。我希望这个教程帮你学到了知识，如果你有什么问题，请尽管问。




---


via: <https://itsfoss.com/task-manager-linux/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 译者：[xinglianfly](https://github.com/xinglianfly) 校对：[wxy](https://github.com/wxy)


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


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

“**Is there a task manager for Linux**?” “How do you open the task manager on Linux?” “Where do I find the Ubuntu task manager?”

These are some of the most frequently asked questions from Linux beginners:

People who are coming from Windows know how valuable the task manager is. You press Ctrl+Alt+Del to get to the task manager in Windows. This task manager shows you all the running processes and their memory consumption. You can choose to end a process from this task manager application.

When you’re just starting out with Linux, you may also look for a **task manager equivalent on Linux**. An expert Linux user prefers the command-line way to find processes and memory consumption, etc., but you don’t have to go that way, at least not when you’re just starting out with Linux.

All the major Linux distributions have a task manager equivalent. Usually, **it’s called System Monitor**, but it actually depends on your Linux distribution and the [desktop environment](https://wiki.archlinux.org/index.php/desktop_environment) it uses.

In this article, we’ll see how to find and use the task manager on Ubuntu and other Linux distributions that use GNOME as the [desktop environment](https://itsfoss.com/best-linux-desktop-environments/).

## System Monitor: The Task Manager of Linux distributions

If you’re using the GNOME desktop, press the Super key (Windows key) and look for System Monitor. In other desktop environments, search for System Monitor in the menu.

![system monitor gnome](https://itsfoss.com/content/images/wordpress/2016/06/system-monitor-gnome-fedora.png)

This will start the [GNOME System Monitor](https://help.gnome.org/users/gnome-system-monitor/). It shows you all the running processes and their memory consumption.

![task manager in Linux](https://itsfoss.com/content/images/wordpress/2016/06/fedora-system-monitor.jpeg)

You can select a process and click on End process to kill it. You can also select multiple entries here and [kill the processes](https://itsfoss.com/how-to-find-the-process-id-of-a-program-and-kill-it-quick-tip/) in one click.

![Kill process in fedora](https://itsfoss.com/content/images/wordpress/2016/06/kill-process-fedora.png)

You can also see some statistics about your system in the Resources tab, such as CPU consumption per core basis, memory usage, network usage, etc.

![system monitor fedora](https://itsfoss.com/content/images/wordpress/2016/06/system-stats-fedora.png)

You can watch this video to see it in action:

### There are more ways to manage tasks

That was the graphical way. If you want to go the command line way, just [run the top command](https://linuxhandbook.com/top-command/) in the terminal and you can see all the running processes and their memory consumption. You can easily [kill processes in the Linux](https://itsfoss.com/how-to-find-the-process-id-of-a-program-and-kill-it-quick-tip/) command line.

If you want a command-line-based task manager on Linux, I recommend [using htop](https://itsfoss.com/use-htop/). You can see running processes, memory usage, and more, and you can easily use hotkeys to end processes. And it looks good as well.

![htop running in Linux terminal](https://itsfoss.com/content/images/wordpress/2016/06/htop-screenshot.jpg)

This is all you need to know about task manager equivalents on Linux. I hope you found this quick tutorial helpful. If you have questions or suggestions, feel free to comment.