ubuntu常用命令和问题解决方案
查看当前系统版本
cat /etc/issue
host文件存放目录
cat /etc/hosts
# QA|下载进程被锁类似问题
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock
# 通过wubi安装ubuntu时遇到需要下载wubi-amd64.tar.xz
单独把wubi解压出来和系统镜像文件放在同一个目录安装即可。
安装一些特效管理器(compizconfig)
# compiz特效包
sudo apt-get install compiz-plugins-extra
安装gnome
sudo apt-get install gnome-tweak-tool
察看当前网络工具
# 安装bwm-ng
sudo apt-get install bwm-ng
# 查看当前网络流量
bwm-ng
下载文件加速
# 下载命令wget
# usage: wget -i http://*
# 说明: http://*为下载文件网址及文件名
example: wget -i http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
# 用axel加快下载速度
apt-get install axel
usage: axel -n 10 -o /tmp/ http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
# 用aria2断点下载文件
apt-get install aria2
# 常规下载
example: aria2c http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
# 分段下载
example: aria2c -s 2 http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
# 断点下载
example: aria2c -c http://xp6.yyxt.com/201201/GZOS_XP_1.1.iso
# 下载torrent文件
ubuntu 系统优化
http://javapub.iteye.com/blog/824706
ubuntu 目录结构
http://www.iteye.com/topic/986260
SSH 命令
ssh支持shell执行,使用起来比较方便,最少比GUI的要方便一些。
# 连接到服务器
ssh username@hostname
# 例如:ssh root@abc.com
# 把服务器上的/home/index.html拷贝到本地的/root下
scp root@192.168.1.1:/home/index.html /root
# 上传文件到服务器上
scp -r localfile.txt root@192.168.0.1:/home/username/
可能有用的几个参数:
-v 和大多数linux命令中的-v意思一样,用来显示进度.可以用来查看连接,认证,或是配置错误.
-C 使能压缩选项.
-P 选择端口.注意-p已经被rcp使用.
-4 强行使用IPV4地址.
-6 强行使用IPV6地址.
添加pidgin-lwqq
sudo add-apt-repository ppa:lainme/pidgin-lwqq
sudo apt-get update
sudo apt-get install pidgin-lwqq

浙公网安备 33010602011771号