如何更改 Ubuntu 的终端的颜色
终端 颜色
![](/data/attachment/album/202111/03/173150n4wjwgi4iii4662z.jpg)


如果你只是想完成一些工作，默认的终端已经看起来足够好了。


但是，如果你想要一个独一无二的的终端体验或者符合你自身品位的一些东西，你也可以改变你的 Ubuntu 的终端的颜色。


在这篇速成教程中，我将专注于调整 Ubuntu 中的颜色方案。由于 Ubuntu 使用 GNOME 的终端，因此这些步骤可能也对大多数的使用 GNOME 桌面环境的其它的发行版有效。


### 更改你的 Ubuntu 的终端的颜色


这些步骤类似于 [如何更改终端的字体和大小](https://itsfoss.com/change-terminal-font-ubuntu/)。你必须找到自定义颜色的选项，就是这样的简单。


让我们快速指出你需要找到什么：


**步骤 1**：[在 Ubuntu 中打开终端窗口](https://itsfoss.com/open-terminal-ubuntu/)，方法是按 `Ctrl+Alt+T` 组合键。


**步骤 2**：打开终端<ruby> 首选项 <rt>  Preferences </rt></ruby>。你可以单击菜单按钮或者右击终端屏幕的任意位置来访问首选项。


![](/data/attachment/album/202111/03/173200krrlbl201sqnqv51.png)


针对你的自定义选项，创建一个独立的配置文件将会是一个好主意，因为这样做不会更改默认的设置。


![](/data/attachment/album/202111/03/173202ap0j190lp6xppnmi.jpg)


**步骤 3**：现在，你可以找到一些调整字体大小和样式的选项。但是，在这里，你需要前往 “<ruby> 颜色 <rt>  Colors </rt></ruby>” 选项卡，如下面的屏幕截图所示。


![](/data/attachment/album/202111/03/173204iwy2wtvi2iriwjoe.png)


**步骤 4**：在默认情况下，你将会注意到：它使用来自系统主题的颜色。如果你想融入你自己的系统主题，这应该是首选的方式。


但是，如果你想要自定义，你需要先取消系统的颜色的选项，然后再开始选择颜色。


![](/data/attachment/album/202111/03/173206ngr7zrogrogqnp97.jpg)


如你在上面的屏幕截图中能够注意到的那样，你可以选择使用一些内置的颜色方案，也可以 **通过更改文本和背景的默认颜色选项** 来完成自定义颜色方案。


如果你选择一种“自定义”内置方案，那么你可以自定义从文本到光标的各个层面的终端的屏幕颜色。


![](/data/attachment/album/202111/03/173208tub25gg2xgzdp26e.png)


再强调一次！如果你想快速地访问终端的不同的自定义版本，请创建一个单独的配置，否则，每次当你想要一种独特的颜色组合方案时，你都将需要重新自定义。


### 更改终端的颜色的其它的方法


这里有其它的几种更改 Ubuntu 的终端的颜色的方法：


#### 更改主题


大多数的 Ubuntu 主题都有它们自己的终端的颜色的实现，并且其中的一些实现看起来非常漂亮。这里是如何针对 Ant 和 Orchis 主题进行更改终端的颜色方案：


![](/data/attachment/album/202111/03/173210gogo7mwb5939y7no.png)


你可以选择一种黑暗主题，接下来你的主题将会变成黑色。不需要担心选择颜色方案的问题。


#### 依据你的壁纸选择终端颜色


如果你不想手动自定义你的终端的颜色，你可以使用 Pywal 。使用这个方便的 Python 工具，你的计算机能够随着你的每一张壁纸来 [更改你的终端的颜色方案](https://itsfoss.com/pywal/) 。


它将自动地适配你所使用的壁纸。因此，你不需要费心地自定义终端。


### 针对你的终端的自定义选项


如果你是一个更高级的玩家，你可能会热衷于更多的自定义终端的外貌的选项。你可以通读我们关于 [调整终端的外貌的不同的方法](https://itsfoss.com/customize-linux-terminal/) 的资源来探索更多的信息。


你更喜欢自定义终端吗？在下面的评论区，让我们知道你的经历！




---


via: <https://itsfoss.com/change-terminal-color-ubuntu/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[robsean](https://github.com/robsean) 校对：[wxy](https://github.com/wxy)


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


OK
The default terminal looks good enough if you want to get things done.

But, if you want a unique terminal experience or something that suits your taste, you can also change the color of your Ubuntu terminal.

In this quick tutorial, I shall focus on tweaking the color scheme of the terminal in Ubuntu. Ubuntu uses GNOME Terminal so the steps should be valid for most other distributions using GNOME desktop environment.

## Changing the color of your Ubuntu terminal

The steps are similar to how you [change the font and size of the terminal](https://itsfoss.com/change-terminal-font-ubuntu/). You have to find the option for customizing colors, that’s it.

Let me quickly highlight what you need to go through to find it:

**Step 1**. [Open the terminal window in Ubuntu](https://itsfoss.com/open-terminal-ubuntu/) by pressing Ctrl+Alt+T.

**Step 2**. Head to the terminal preferences. You can click on the menu button to access the **Preferences** or right-click anywhere on the terminal screen.

![terminal preference](https://itsfoss.com/content/images/wordpress/2021/09/terminal-preference.png)

It will be a good idea to create a separate profile for your customization so that the default settings do not change.

![Terminal Profiles](https://itsfoss.com/content/images/wordpress/2021/02/terminal-profiles-800x619.jpg)

**Step 3**. Now, you can find the options to tweak the font size and style. But, here, you need to head to the “**Colors**” tab, as shown in the screenshot below.

![terminal colors option](https://itsfoss.com/content/images/wordpress/2021/09/terminal-colors-option.png)

**Step 4**. By default, you will notice that it uses colors from the system theme. If you want to blend in with your system theme, that should be the preferred choice.

But, if you want to customize, you need to deselect the option and then start choosing the colors.

![changing colors ubuntu terminal](https://itsfoss.com/content/images/wordpress/2021/09/changing-colors-ubuntu-terminal.webp)

As you can notice in the screenshot above, you can choose to use some of the built-in color schemes and also get to customize them to your liking *by changing the default color option for the text and background.*

You can customize every aspect of the terminal screen color, starting from the texts to the cursor, if you select a “custom” built-in scheme.

![ubuntu terminal color customize](https://itsfoss.com/content/images/wordpress/2021/09/ubuntu-terminal-color-customize-800x550.png)

Again! Create separate profiles if you want to access different customized versions of the terminal quickly or else you will end up customizing every time you want a specific color combination.

## Other ways to change the terminal color

Here are a couple of other ways to change the terminal color in Ubuntu:

### Change the theme

Most Ubuntu themes have their own implementation of terminal colors and some of them actually look very nice. Here is how the terminal color scheme is changed for Ant and Orchis themes.

![terminal ant theme](https://itsfoss.com/content/images/wordpress/2021/09/terminal-ant-theme.png)

![terminal orchis theme](https://itsfoss.com/content/images/wordpress/2021/09/terminal-orchis-theme.png)

You choose a dark theme and your terminal turns black. No need to wonder about selecting color schemes.

### Change terminal color based on your wallpaper

If you do not want to customize the colors of your terminal manually, you can utilize Pywal. With this handy Python tool, you can [change the color scheme of your terminal](https://itsfoss.com/pywal/) as per your wallpaper.

It will automatically adapt to any of your active wallpapers. So, you do not have to bother customizing the terminal.

## More Customization Options for Your Terminal

If you are more of a tinkerer, you would love to know that you have more options to customize the look of the terminal. You can read through our resource on [different ways to tweak the look of the terminal](https://itsfoss.com/customize-linux-terminal/) to explore more about it.

*How do you prefer to customize the terminal? Let me know your experiences in the comments below!*