Ubuntu Linux TOOLBOX
1000+ Commands for Ubuntu and Debian Power Users
ISBN: 978-0-470-08293-5
![]()
Chapter 1: Starting with Ubuntu Linux
获取帮助
$ zless /usr/share/doc/mount/changelog.Debian.gz
$ less /usr/share/doc/mount/changelog.Debian.gz
$ ls --help
$ ls --help | more
$ apropos crontab
搜索manpage服务器, 查找与crontab相关的帮助文件
$ man 5 crontab 指定查看第五部分帮助文件, 默认查看第一部分
$ whatis ls
查看该命令在每个部分帮助文件的简短说明
$ info ls
另一种格式的帮助文件
Chapter 2: Installing Ubuntu and Adding Software
APT —
dpkg —
aptitude —
/etc/apt/sources.list apt的软件包资源列表
apt常用命令
apt-get update
apt-cache search keyword
apt-get install package
apt-get -d install package
apt-cache show package
apt-get upgrade
apt-get dist-upgrade
apt-get autoclean
apt-get clean
apt-get --purge remove package
apt-get -f install 修复依赖关系
apt-config -V
apt-key list
apt-cache depends 查看包的依赖关系
apt-cache pkgnames 查看所有包在系统中安装的文件
$ sudo apt-key add /tmp/key.pub
$ sudo apt-key list
$ apt-cache search picasa
$ apt-cache show picasa
$ apt-cache depends picasa
$ sudo apt-get install picasa
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get update; sudo apt-get upgrade
Upgrading a Single Package with APT
dpkg -c <.deb file>
pkg -I <.deb file>
pkg -p
dpkg - S filename
dpkg -l
dpkg -L package
dpkg -s pachage
阅读(1018) | 评论(0) | 转发(0) |