> ## Content Index
> Fetch the complete content index at: https://yinguobing.com/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# 修复Ubuntu Terminal的彩色显示
- URL: https://yinguobing.com/blog/lost-color-of-ubuntu-terminal/
- Published: 2017-01-20T07:36:41.000Z
- Updated: 2024-04-02T08:33:04.000Z
- Description: Ubuntu终端下的输出都变成黑白的，并且常用的`ll`命令提示`command not found`.
- Author: 尹国冰
- Tags: 新手入门

Ubuntu终端下的输出都变成黑白的，并且常用的`ll`命令提示`command not found`.

造成这种情况的原因是`home`目录下的`.bashrc`文件丢失。将正确的文件copy回来即可。

```
sudo cp /etc/skel/.bashrc ./

```

是用这个文件的原因是：

> Basically, the /etc/bash.bashrc file is used for system-wide (applies to all users) interactive bash shells. The /etc/skel/.bashrc is a 'skeleton' file that gets copied to the home directory of a user upon creation.

来源在[这里](http://www.linuxquestions.org/questions/linux-newbie-8/deleted-my-bashrc-file-accidently-i-am-a-debian-user-what-should-i-do-801315/?ref=yinguobing.com)。