Ubuntu/Debain 常用命令

2017年1月6日

更改系统语言设置

dpkg-reconfigure locales

更改软件开机自启动设置

sysv-rc-conf
apt-get install sysv-rc-conf

设置开机自动启动

systemctl enable nginx.service

停止开机自动启动

systemctl disable nginx.service

解决debian 终端命令行无法自动补全

1).安装命令补全:

apt-get install bash-completion

2). 在 /etc/profile 里加

if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

3).刷新/etc/profile配置文件,使其生效

source /etc/profile

Debian 使用鼠标右键复制方法
1. 编辑 vim 的默认配置文件

vim /usr/share/vim/vim80/defaults.vim

2. 转至第 70 行,找到:

if has('mouse')
set mouse=a
endif

3.将 set mouse=a 改为:set mouse-=a

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注