Chinaunix首页 | 论坛 | 博客
  • 博客访问: 822583
  • 博文数量: 222
  • 博客积分: 4341
  • 博客等级: 上校
  • 技术积分: 2155
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-16 13:50
个人简介

...

文章分类

全部博文(222)

文章存档

2019年(1)

2016年(9)

2015年(7)

2014年(14)

2013年(11)

2012年(10)

2011年(6)

2010年(25)

2009年(37)

2008年(21)

2007年(81)

我的朋友

分类: LINUX

2008-11-21 16:05:53

 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
 
阅读(988) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~