修复Ubuntu Terminal的彩色显示

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

修复Ubuntu Terminal的彩色显示

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.

来源在这里

转发至

微信扫一扫分享

WeChat QR Code

有AI相关的想法,但不知道怎么落地?

我是国冰,独立AI开发者。十多年技术一线——半导体显示、智慧城市到自动驾驶;现在一个人+AI,接AI落地项目,从梳理需求到系统落地,陪你走通。

微信聊聊 微信二维码 看我能做什么