netstat 指令
netstat -pltu 或者是 -pltu
-p 通訊協定 : 顯示指連線的通訊協定.預設的狀況這個通訊協定包含 tcp, udp, tcpv6, or udpv6. 如果配合 -s 參數則是可以顯示統計數量
-t TCP
-u UDP
-a 顯示所有的連線
ps 指令
ps -A-a 顯示同一終端下的所有程式
-A 顯示所有進程
a 顯示所有進程
c 顯示進程的真實名稱
GET /dir/index.html HTTP/1.0
Host: localhost
失敗 , HTTP/1.0 401 Unauthorized
Server: HTTPd/0.9
Date: Sun, 10 Apr 2005 20:26:47 GMT
WWW-Authenticate: Digest realm="testrealm@host.com",
qop="auth,auth-int",
nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",
opaque="5ccc069c403ebaf9f0171e9517f40e41"
Content-Type: text/html
Content-Length: 311
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
</HEAD>
<BODY><H1>401 Unauthorized.</H1></BODY>
</HTML>
GET /dir/index.html HTTP/1.0
Host: localhost
Authorization: Digest username="Mufasa",
realm="testrealm@host.com",
nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",
uri="/dir/index.html",
qop=auth,
nc=00000001,
cnonce="0a4f113b",
response="6629fae49393a05397450978507c4ef1",
opaque="5ccc069c403ebaf9f0171e9517f40e41"
| sudo apt-get update | 更新套件清單。 |
| sudo apt-get upgrade | 升級系統已安裝套件的版本,此指令可一次升級所有已安裝套件的版本,也可以單獨升級某指定套件。 |
| sudo apt-get dist-upgrade <name> | 升級系統已安裝套件的版本,一併升級具相依性套件的版本。 |
| sudo apt-get install <name> | 安裝套件。 |
| sudo apt-get remove <name> | 移除套件,但保留該套件設定檔。 |
| sudo apt-get autoremove <name> | 移除套件,並且移除與該套件具有相依性之套件。 |
| sudo apt-get --purge remove <name> | 移除套件,一併移除該套件設定檔。 |
| sudo apt-get clean | 移除套件的安裝原始檔。 |
| sudo apt-get autoclean | 移除已經無法再下載的套件安裝原始檔。 |
| sudo apt-get check | 檢查套件是否有相依性的問題。 |
| apt-cache search <name> | 透過此指令,我們可以使用關鍵字來搜尋套件完整名稱,name 為某套件的查詢關鍵字。 |
| apt-cache showpkg <name> | 查詢某套件的所有資訊。 |
| apt-cache pkgnames <name> | 查詢系統中所有可用的套件名稱。 |
| apt-cache depends <name> | 查詢與某套件有依存關係的所有套件,並顯示是否有衝突套件及建議取代套件 |
upgrade in verbose mode and (to be safe) with simulation, press n to cancel:policy can show the installed and the remote version (install candidate) of a packageaptitude install <package>
Passing -V will show detailed information about versions, again to be safe with the simulation switchaptitude -V -s install <package>
Displays the versions of specified packages.aptitude versions <package>
# rpm -ivh MySQL-client-3.23.57-1.i386.rpm