【Ubuntu】ubuntu基本操作命令
本文主要是用于记录ubuntu中会使用到的命令,但是有不是特别常用的,用于自己后续查阅使用。
1.查询ubuntu版本信息
方法一: cat /etc/issue
方法二: sudo lsb_release -a
2.查询ubuntu内核版本
cat /proc/version
附录:
apt-get的源,本人主要使用163的,故附上163源,需要注意版本信息:Ubuntu14.04 LTS。
1.备份原有的yuan
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2.修改为163的yuan
sudo vim /etc/apt/sources.list
3.更改为如下的源
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse