ubuntu命令手冊
Ubuntu 命令手冊2011/4/15,星期五,目錄????? ????????????? ???? ?????????? ???????#top ,??????????
Ubuntu 命令手冊2011/4/15,星期五,
目錄
????
? ??
??????????? ???? ?????????? ???????#top
,?
??
???
????
??
??????
?????
???????
??????????????
???#top
,??????? ?????????????????????
??????
?????????????#top
,?
?
?
?
? ??????????????????????????????????????????#top
,??????????????????????????????????????????????#top?
,???????????????????????????????????
????????????#top
,??????????????????????????? ????????????????????#top
,???????
????????????????????????????????????????#top
,?
?
?
?
?
?
?
?
?
?
?
?
?
?
?前言
下面的命令大都需要在 控制臺 / 終端 / shell 下輸入。
控制臺, 終端, 和 shell 意味著同樣一件事 - 一個命令行界面, 他可以用來控制系統(tǒng)。
打開一個控制臺:
應(yīng)用程序 --> 附件 --> 終端 #top
任何一個使用 'sudo' 作為前綴的命令都需要擁有管理員 (或 root) 訪問權(quán)限。 所以你會被提示輸入你自己的密碼。
安裝升級
查看軟件xxx 安裝內(nèi)容
dpkg -L xxx #top
查找軟件庫中的軟件
apt-cache search 正則表達式或
aptitude search 軟件包
顯示系統(tǒng)安裝包的統(tǒng)計信息
apt-cache stats
顯示系統(tǒng)全部可用包的名稱
apt-cache pkgnames
#top
,顯示包的信息
apt-cache show k3b
查找文件屬于哪個包
apt-file search filename
查看已經(jīng)安裝了哪些包
dpkg -l
查詢軟件xxx 依賴哪些包
apt-cache depends xxx
查詢軟件xxx 被哪些包依賴
apt-cache rdepends xxx
增加一個光盤源
sudo apt-cdrom add
系統(tǒng)更新
sudo apt-get update (這一步更新包列表)
sudo apt-get dist-upgrade (這一步安裝所有可用更新) 或者sudo apt-get upgrade (這一步安裝應(yīng)用程序更新,不安裝新內(nèi)核等)
清除所有已刪除包的殘馀配置文件
dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P
如果報如下錯誤,證明你的系統(tǒng)中沒有殘留配置文件了,無須擔(dān)心。
dpkg: --purge needs at least one package name argument
Type dpkg --help for help about installing and deinstalling packages [*];Use `dselect' or `aptitude' for user-friendly package management;Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].Options marked [*] produce a lot of output - pipe it through `less' or `more' !
#top