更新軟件源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命令集文件