红联Linux门户
Linux帮助

linux误删~/.bashrc解决办法

发布时间:2015-08-25 09:42:42来源:linux网站作者:read4freedom

将/etc/.bashrc 复制到 ~/ 下即可。有可能发现命令补全功能无法使用,修改 ~/.bashrc  。将最末三行的注释#删掉即可。如下:


# enable programmable completion features (you don't need to enable

# this, if it's already enabled in /etc/bash.bashrc and /etc/profile

# sources /etc/bash.bashrc).

if [ -f /etc/bash_completion ] && ! shopt -oq posix; then

. /etc/bash_completion

fi


​.bashrc下还有好多关于bash shell 的设置。


Ubuntu不同目录下profile与bashrc的区别:http://www.linuxdiyf.com/linux/10977.html

Ubuntu主目录下.bashrc文件备份:http://www.linuxdiyf.com/linux/5532.html

备份:GAMIT安装后的.bashrc文件及Ubuntu分区:http://www.linuxdiyf.com/linux/2935.html