自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

如何在Ubuntu中更改默認(rèn)終端

系統(tǒng) Linux
終端(Terminal)是 Linux 系統(tǒng)的關(guān)鍵部分。它能讓你通過 shell 訪問 Linux 系統(tǒng)。Linux 上有多個(gè)終端應(yīng)用(技術(shù)上稱為終端仿真器)。

[[315395]]

終端(Terminal)是 Linux 系統(tǒng)的關(guān)鍵部分。它能讓你通過 shell 訪問 Linux 系統(tǒng)。Linux 上有多個(gè)終端應(yīng)用(技術(shù)上稱為終端仿真器)。

大多數(shù)桌面環(huán)境都有自己的終端實(shí)現(xiàn)。它們的外觀可能有所不同,并且可能有不同的快捷鍵。例如,Guake 終端對(duì)高級(jí)用戶非常有用,它提供了一些可能無法在發(fā)行版默認(rèn)終端中使用的功能。

你可以在系統(tǒng)上安裝其他終端,并將其設(shè)為默認(rèn),并能通過快捷鍵 Ctrl+Alt+T 打開。

現(xiàn)在問題來了,如何在 Ubuntu 中更改默認(rèn)終端。它沒有遵循更改 Ubuntu 中的默認(rèn)應(yīng)用的標(biāo)準(zhǔn)方式,要怎么做?

更改 Ubuntu 中的默認(rèn)終端

在基于 Debian 的發(fā)行版中,有一個(gè)方便的命令行程序,稱為 update-alternatives,可用于處理默認(rèn)應(yīng)用。

你可以使用它來更改默認(rèn)的命令行文本編輯器、終端等。為此,請(qǐng)運(yùn)行以下命令:

  1. sudo update-alternatives --config x-terminal-emulator

它將顯示系統(tǒng)上存在的所有可作為默認(rèn)值的終端仿真器。當(dāng)前的默認(rèn)終端標(biāo)有星號(hào)。

  1. abhishek@nuc:~$ sudo update-alternatives --config x-terminal-emulator
  2. There are 2 choices for the alternative x-terminal-emulator (providing /usr/bin/x-terminal-emulator).
  3.  
  4. Selection Path Priority Status
  5. ------------------------------------------------------------
  6. 0 /usr/bin/gnome-terminal.wrapper 40 auto mode
  7. 1 /usr/bin/gnome-terminal.wrapper 40 manual mode
  8. * 2 /usr/bin/st 15 manual mode
  9.  
  10. Press <enter> to keep the current choice[*], or type selection number:

你要做的就是輸入選擇編號(hào)。對(duì)我而言,我想使用 GNOME 終端,而不是來自 Regolith 桌面的終端。

  1. Press <enter> to keep the current choice[*], or type selection number: 1
  2. update-alternatives: using /usr/bin/gnome-terminal.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in manual mode

自動(dòng)模式 vs 手動(dòng)模式

你可能已經(jīng)在 update-alternatives 命令的輸出中注意到了自動(dòng)模式和手動(dòng)模式。

如果選擇自動(dòng)模式,那么在安裝或刪除軟件包時(shí),系統(tǒng)可能會(huì)自動(dòng)決定默認(rèn)應(yīng)用。該決定受優(yōu)先級(jí)數(shù)字的影響(如上一節(jié)中的命令輸出所示)。

假設(shè)你的系統(tǒng)上安裝了 5 個(gè)終端仿真器,并刪除了默認(rèn)的仿真器?,F(xiàn)在,你的系統(tǒng)將檢查哪些仿真器處于自動(dòng)模式。如果有多個(gè),它將​​選擇優(yōu)先級(jí)最高的一個(gè)作為默認(rèn)仿真器。

我希望你覺得這個(gè)小技巧有用。 

責(zé)任編輯:龐桂玉 來源: Linux中國(guó)
相關(guān)推薦

2020-03-02 14:25:17

Ubuntu終端Linux

2020-05-17 16:12:03

Linux終端命令

2020-11-17 09:46:13

終端TerminatorLinux

2016-07-29 11:21:16

Ubuntulinux程序

2021-11-03 21:11:02

UbuntuLinux

2020-02-01 16:16:31

UbuntuLinuxWindows

2020-06-15 18:40:15

Ubuntu 20.0文件夾顏色Ubuntu

2021-11-17 15:11:21

UbuntuLinux

2015-07-16 16:19:02

UbuntuGNOME

2019-01-02 09:50:26

Ubuntu命令Linux

2022-11-01 15:38:22

LinuxShell

2012-04-19 16:33:03

Titanium視頻更改默認(rèn)圖片

2023-12-14 13:02:00

BashLinuxShell

2024-06-21 09:02:27

.NET開發(fā)C#

2022-08-29 14:16:53

GRUB主題壁紙

2018-05-29 09:33:55

Linux終端顯示圖片

2020-09-18 17:29:58

Linux

2022-11-02 16:47:36

2023-07-24 11:01:29

UbuntuWine

2019-01-28 19:30:15

Windows 10風(fēng)扇速度BIOS
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)