更新软件源sql
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup vim /etc/apt/sources.list sudo apt-get update 阿里源: deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe deb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universe deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universe deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universe deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universe deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe
创建软链接shell
ln [参数][源文件或目录][目标文件或目录]数据库
批量删除进程ubuntu
ps -ef | grep xxx | grep -v root | awk '{print $2}' | xargs kill -9 vim
或 kill -9 ` ps -ef | grep xxx | grep -v root | awk '{print $2}' `spa
sqlite 命令rest
sqlite3 /tmp/remote/xxx.db 选择数据库code
.tables 列出全部数据表
sqlite
select * from xxx 查找xxx表中的全部内容
进程
.help 查看帮助
source 命令:相似点命令,能够马上更新修改过的配置文件,而不用重启系统,也能够用于执行一个shell命令集文件