alt+del+ctrl_在Linux中使用Ctrl + Alt + Del for Task Manager轻松杀死任务

alt+del+ctrl

alt+del+ctrl

In Windows you can easily kill any task by pressing Ctrl+Alt+Del and bringing up the task manager. Linux running the GNOME desktop environment (i.e. Debian, Ubuntu, Linux Mint, etc.) has a similar tool that can be enabled to run exactly the same way.

在Windows中,您可以通过按Ctrl + Alt + Del并启动任务管理器来轻松终止任何任务。 运行GNOME桌面环境Linux(即Debian,Ubuntu,Linux Mint等)具有类似的工具,可以启用该工具以完全相同的方式运行。

Setting up global key bindings

设置全局键绑定

The GNOME desktop environment by default uses the Ctrl+Alt+Del shortcut to bring up the shutdown, logout, restart, and hibernate dialog. This is not useful for users who are used to quick access to a task manager.

默认情况下,GNOME桌面环境使用Ctrl + Alt + Del快捷方式来显示关闭,注销,重新启动和Hibernate对话框。 这对于习惯于快速访问任务管理器的用户没有用。

000_log-out

To change the settings of Ctrl+Alt+Del in GNOME open the keyboard shortcuts preferences. In Ubuntu it is located under System -> Preferences -> Keyboard Shortcuts, and in Linux Mint open the mintMenu -> Control Center -> Keyboard Shortcuts.

要在GNOME中更改Ctrl + Alt + Del的设置,请打开键盘快捷键首选项。 在Ubuntu中,它位于系统->首选项->键盘快捷方式下,而在Linux Mint中,打开mintMenu->控制中心->键盘快捷方式。

001_control-panel

The keyboard shortcuts preferences will show all of the shortcuts that the GNOME desktop environment can control.

键盘快捷键首选项将显示GNOME桌面环境可以控制的所有快捷键。

Note: Other program specific or Compiz keyboard shortcuts will not show up here. You will need to look in those programs for what shortcuts are available.

注意:其他特定于程序或Compiz键盘快捷键的内容不会在此处显示。 您将需要在那些程序中寻找可用的快捷方式。

002_Keyboard Shortcuts

Adding custom global keyboard shortcuts is as easy as clicking Add.

添加自定义全局键盘快捷键就像单击“添加”一样简单。

003_new-shortcut

For a Ctrl+Alt+Del replacement we will name the new shortcut “Task Manager” and the command to run is gnome-system-monitor.

对于Ctrl + Alt + Del替换,我们将新的快捷方式命名为“任务管理器”,要运行的命令是gnome-system-monitor。

005_Custom Shortcut
006_Keyboard Shortcuts

Click Apply and notice the new keyboard shortcut shows up under Custom Shortcuts but is disabled.

单击“应用”,注意新的键盘快捷键显示在“自定义快捷键”下,但已被禁用。

Click where it says “Disabled” and then press the new desired keyboard shortcut Ctrl+Alt+Delete. If the keyboard shortcut already exists as another GNOME keyboard shortcut you will be prompted to reassign the keyboard shortcut.

单击显示“已禁用”的位置,然后按新的所需键盘快捷键Ctrl + Alt + Delete。 如果键盘快捷键已经作为另一个GNOME键盘快捷键存在,则将提示您重新分配键盘快捷键。

010_replacement-warning

Click Reassign and the new keyboard shortcut will now be enabled and will show the keyboard sequence for the command.

单击重新分配,新的键盘快捷键将被启用,并将显示该命令的键盘顺序。

012_Keyboard Shortcuts

For an even easier way to kill programs that are not responding, set up one more keyboard shortcut and name it “Kill Window” with the command xkill.

为了更轻松地杀死不响应的程序,请设置另一个键盘快捷方式,并使用xkill命令将其命名为“ Kill Window”。

013_xkill-shortcut

Click on “Disabled” just as before to set the keyboard shortcut for Kill Window to Ctrl+Delete.

像以前一样单击“禁用”,将“杀死窗口”的键盘快捷方式设置为Ctrl + Delete。

014_Keyboard Shortcuts

Using System Monitor

使用系统监视器

To test out the new keyboard shortcuts push Ctrl+Alt+Del. The System Monitor will open and will have a lot of useful information on the System tab. This tab gives you easy access to your Linux distribution and release, current running kernel, GNOME version, and available disk space.

要测试新的键盘快捷键,请按Ctrl + Alt + Del。 系统监视器将打开,并且在系统选项卡上将有很多有用的信息。 该选项卡使您可以轻松访问Linux发行版和发行版,当前运行的内核,GNOME版本以及可用磁盘空间。

015_System Monitor

The next tab is the Processes tab and is similar to the task manager in Windows. You can sort by CPU usage, memory usage, process name, etc.

下一个选项卡是“进程”选项卡,类似于Windows中的任务管理器。 您可以按CPU使用率,内存使用率,进程名称等进行排序。

016_System Monitor

To kill a process, find the name and click the End Process button. A confirmation will pop-up and you can easily kill the non-responsive process.

要终止进程,请找到名称,然后单击“结束进程”按钮。 将会弹出确认信息,您可以轻松取消无响应的过程。

019_Selection

The Resources tab shows CPU, memory, and network history and is very helpful in troubleshooting system performance. The history is only stored as long as the system monitor is open so make sure you leave it running if you want to view performance while running certain programs.

“资源”选项卡显示CPU,内存和网络历史记录,对系统性能进行故障排除非常有帮助。 历史记录仅在系统监视器处于打开状态时才存储,因此,如果要在运行某些程序时查看性能,请确保使其保持运行状态。

017_System Monitor

The last tab, File Systems, shows information about local hard disks and partitions. Particularly useful is the device, directory, and used information. The device shows how the system identifies your partition, and directory shows where that partition is mounted or if it is mounted at all.

最后一个选项卡“文件系统”显示有关本地硬盘和分区的信息。 设备,目录和使用的信息特别有用。 设备将显示系统如何识别您的分区,目录将显示该分区的安装位置或是否已安装。

018_System Monitor

Using xkill

使用xkill

020_xkill

The last keyboard shortcut that was set up was for a program called xkill. This program doesn’t have a user interface or settings. When you push the keyboard shortcut to run xkill the only thing you will notice is your mouse cursor will change into an X.

设置的最后一个键盘快捷键是用于名为xkill的程序。 该程序没有用户界面或设置。 当您按下键盘快捷键来运行xkill时,唯一会注意的是鼠标光标将变为X。

To kill a process with xkill move the mouse over the window that needs to be killed and left click with the mouse anywhere in the window. The program should instantly disappear along with any sub-windows the process had opened.

要使用xkill杀死进程,请将鼠标移至需要杀死的窗口上方,然后在窗口中的任何位置单击鼠标左键。 该程序应立即与该进程打开的所有子窗口一起消失。

If either of these methods are used to kill a process just remember that any unsaved work will be lost because neither of these programs allow the program to save work before closing.

如果使用这两种方法之一杀死进程,请记住所有未保存的工作都将丢失,因为这些程序都不允许该程序在关闭前保存工作。

翻译自: https://www.howtogeek.com/howto/20355/use-ctrlaltdel-for-task-manager-in-linux-to-kill-tasks-easily/

alt+del+ctrl

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页