'電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統'

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

數字法:"rwx" 這些權限也可以用數字來代替

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

數字法:"rwx" 這些權限也可以用數字來代替

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如執行:chmod u=rwx,g=rx,o=r filename 就等同於:chmod u=7,g=5,o=4 filename

chmod 751 file:

文件所有者:讀、寫、執行權限

同組用戶:讀、執行的權限

其它用戶:執行的權限

注意:如果想遞歸所有目錄加上相同權限,需要加上參數" -R "。 如:chmod 777 test/ -R 遞歸 test 目錄下所有文件加 777 權限

23. 切換到管理員賬號

Ubuntu下切換到root的簡單命令:

24. 設置用戶密碼:passwd

在Unix/Linux中,超級用戶可以使用passwd命令為普通用戶設置或修改用戶密碼。用戶也可以直接使用該命令來修改自己的密碼,而無需在命令後面使用用戶名。

25. 退出登錄賬戶: exit

如果是圖形界面,退出當前終端;

如果是使用ssh遠程登錄,退出登陸賬戶;

如果是切換後的登陸用戶,退出則返回上一個登陸賬號。

26. 查看登錄用戶:who

who命令用於查看當前所有登錄系統的用戶信息。

常用選項:

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

數字法:"rwx" 這些權限也可以用數字來代替

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如執行:chmod u=rwx,g=rx,o=r filename 就等同於:chmod u=7,g=5,o=4 filename

chmod 751 file:

文件所有者:讀、寫、執行權限

同組用戶:讀、執行的權限

其它用戶:執行的權限

注意:如果想遞歸所有目錄加上相同權限,需要加上參數" -R "。 如:chmod 777 test/ -R 遞歸 test 目錄下所有文件加 777 權限

23. 切換到管理員賬號

Ubuntu下切換到root的簡單命令:

24. 設置用戶密碼:passwd

在Unix/Linux中,超級用戶可以使用passwd命令為普通用戶設置或修改用戶密碼。用戶也可以直接使用該命令來修改自己的密碼,而無需在命令後面使用用戶名。

25. 退出登錄賬戶: exit

如果是圖形界面,退出當前終端;

如果是使用ssh遠程登錄,退出登陸賬戶;

如果是切換後的登陸用戶,退出則返回上一個登陸賬號。

26. 查看登錄用戶:who

who命令用於查看當前所有登錄系統的用戶信息。

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

27. 關機重啟:reboot、shutdown、init

"

一、Windows命令

開始→運行(cmd)命令大全(絕對經典)

CMD運行指令

開始→運行→CMD→鍵入以下命令即可:

gpedit.msc-----組策略

sndrec32-------錄音機

Nslookup-------IP地址偵測器

explorer-------打開資源管理器

logoff---------註銷命令

tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組

services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活

notepad--------打開記事本

cleanmgr-------垃圾整理

net start messenger----開始信使服務

compmgmt.msc---計算機管理

net stop messenger-----停止信使服務

conf-----------啟動netmeeting

dvdplay--------DVD播放器

charmap--------啟動字符映射表

diskmgmt.msc---磁盤管理實用程序

calc-----------啟動計算器

dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查

devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行

drwtsn32------ 系統醫生

rononce -p ----15秒關機

dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器

Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集

mem.exe--------顯示內存使用情況

regedit.exe----註冊表

winchat--------XP自帶局域網聊天

progman--------程序管理器

winmsd---------系統信息

perfmon.msc----計算機性能監測程序

winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

winipcfg-------IP配置

taskmgr-----任務管理器(2000/xp/2003)

command--------cmd

fsmgmt.msc 共享文件夾

netstat -an----查看端口

osk 屏幕鍵盤

install.asp----修改註冊網頁

eventvwr.msc 時間查看器

secpol.msc 本地安全設置

services.msc 服務

2K

accwiz.exe > 輔助工具嚮導

acsetups.exe > acs setup dcom server executable

actmovie.exe > 直接顯示安裝工具

append.exe > 允許程序打開制定目錄中的數據

arp.exe > 顯示和更改計算機的ip與硬件物理地址的對應列表

at.exe > 計劃運行任務

atmadm.exe > 調用管理器統計

attrib.exe > 顯示和更改文件和文件夾屬性

autochk.exe > 檢測修復文件系統

autoconv.exe > 在啟動過程中自動轉化系統

autofmt.exe > 在啟動過程中格式化進程

autolfn.exe > 使用長文件名格式

bootok.exe > boot acceptance application for registry

bootvrfy.exe > 通報啟動成功

cacls.exe > 顯示和編輯acl

calc.exe > 計算器

cdplayer.exe > cd播放器

change.exe > 與終端服務器相關的查詢

charmap.exe > 字符映射表

chglogon.exe > 啟動或停用會話記錄

chgport.exe > 改變端口(終端服務)

chgusr.exe > 改變用戶(終端服務)

chkdsk.exe > 磁盤檢測程序

chkntfs.exe > 磁盤檢測程序

cidaemon.exe > 組成ci文檔服務

cipher.exe > 在ntfs上顯示或改變加密的文件或目錄

cisvc.exe > 索引內容

ckcnv.exe > 變換cookie

cleanmgr.exe > 磁盤清理

cliconfg.exe > sql客戶網絡工具

clipbrd.exe > 剪貼簿查看器

clipsrv.exe > 運行clipboard服務

clspack.exe > 建立系統文件列表清單

cluster.exe > 顯示域的集群

_cmd_.exe > 沒什麼好說的!

cmdl32.exe > 自動下載連接管理

cmmgr32.exe > 連接管理器

cmmon32.exe > 連接管理器監視

cmstp.exe > 連接管理器配置文件安裝程序

comclust.exe > 集群

comp.exe > 比較兩個文件和文件集的內容*

compact.exe > 顯示或改變ntfs分區上文件的壓縮狀態

conime.exe > ime控制檯

control.exe > 控制面板

convert.exe > 轉換文件系統到ntfs

convlog.exe > 轉換iis曰志文件格式到ncsa格式

cprofile.exe > 轉換顯示模式

cscript.exe > 較本宿主版本

csrss.exe > 客戶服務器runtime進程

csvde.exe > 曰至格式轉換程序

dbgtrace.exe > 和terminal server相關

dcomcnfg.exe > dcom配置屬性

dcphelp.exe >

dcpromo.exe > ad安裝嚮導

ddeshare.exe > dde共享

ddmprxy.exe >

debug.exe > 就是debug啦!

dfrgfat.exe > fat分區磁盤碎片整理程序

dfrgntfs.exe > ntfs分區磁盤碎片整理程序

dfs_cmd_.exe > 配置一個dfs樹

dfsinit.exe > 分佈式文件系統初始化

dfssvc.exe > 分佈式文件系統服務器

diantz.exe > 製作cab文件

diskperf.exe > 磁盤性能計數器

dllhost.exe > 所有com+應用軟件的主進程

dllhst3g.exe >

dmadmin.exe > 磁盤管理服務

dmremote.exe > 磁盤管理服務的一部分

dns.exe > dns applications dns

doskey.exe > 命令行創建宏

dosx.exe > dos擴展

dplaysvr.exe > 直接運行幫助

drwatson.exe > 華生醫生錯誤檢測

drwtsn32.exe > 華生醫生顯示和配置管理

dtcsetup.exe > installs mdtc

dvdplay.exe > dvd播放

dxdiag.exe > direct-x診斷工具

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

edlin.exe > 命令行的文本編輯器(歷史悠久啊!)

esentutl.exe > ms數據庫工具

eudcedit.exe > type造字程序

eventvwr.exe > 事件查看器

evnt_cmd_.exe > event to trap translator; configuration tool

evntwin.exe > event to trap translator setup

exe2bin.exe > 轉換exe文件到二進制

expand.exe > 解壓縮

extrac32.exe > 解cab工具

fastopen.exe > 快速訪問在內存中的硬盤文件

faxcover.exe > 傳真封面編輯

faxqueue.exe > 顯示傳真隊列

faxsend.exe > 發送傳真嚮導

faxsvc.exe > 啟動傳真服務

fc.exe > 比較兩個文件的不同

find.exe > 查找文件中的文本行

findstr.exe > 查找文件中的行

finger.exe > 一個用戶並顯示出統計結果

fixmapi.exe > 修復mapi文件

flattemp.exe > 允許或者禁用臨時文件目錄

fontview.exe > 顯示字體文件中的字體

forcedos.exe > forces a file to start in dos mode. 強制文件在dos模式下運行

freecell.exe > popular windows game 空當接龍

ftp.exe > file transfer protocol used to transfer files over a network conne

ction 就是ftp了

gdi.exe > graphic device interface 圖形界面驅動

grovel.exe >

grpconv.exe > program manager group convertor 轉換程序管理員組

help.exe > displays help for windows 2000 commands 顯示幫助

hostname.exe > display hostname for machine. 顯示機器的hostname

ie4uinit.exe > ie5 user install tool ie5用戶安裝工具

ieshwiz.exe > customize folder wizard 自定義文件夾嚮導

iexpress.exe > create and setup packages for install 穿件安裝包

iisreset.exe > restart iis admin service 重啟iis服務

internat.exe > keyboard language indicator applet 鍵盤語言指示器

ipconfig.exe > windows 2000 ip configuration. 察看ip配置

ipsecmon.exe > ip security monitor ip安全監視器

ipxroute.exe > ipx routing and source routing control program ipx路由和源路由

控制程序

irftp.exe > setup ftp for wireless communication 無線連接

ismserv.exe > intersite messaging service 安裝或者刪除service control manage

r中的服務

jdbgmgr.exe > microsoft debugger for java 4 java4的調試器

jetconv.exe > convert a jet engine database 轉換jet engine數據庫

jetpack.exe > compact jet database. 壓縮jet數據庫

jview.exe > command-line loader for java java的命令行裝載者

krnl386.exe > core component for windows 2000 2000的核心組件

label.exe > change label for drives 改變驅動器的卷標

lcwiz.exe > license compliance wizard for local or remote systems. 許可證符合

嚮導

ldifde.exe > ldif cmd line manager ldif目錄交換命令行管理

licmgr.exe > terminal server license manager 終端服務許可協議管理

lights.exe > display connection status lights 顯示連接狀況

llsmgr.exe > windows 2000 license manager 2000許可協議管理

llssrv.exe > start the license server 啟動許可協議服務器

lnkstub.exe >

locator.exe > rpc locator 遠程定位

lodctr.exe > load perfmon counters 調用性能計數

logoff.exe > log current user off. 註銷用戶

lpq.exe > displays status of a remote lpd queue 顯示遠端的lpd打印隊列的狀態,

顯示被送到基於unix的服務器的打印任務

lpr.exe > send a print job to a network printer. 重定向打印任務到網絡中的打印 機。通常用於unix客戶打印機將打印任務發送給連接了打印設備的nt的打印機服務器。

lsass.exe > lsa executable and server dll 運行lsa和server的dll

lserver.exe > specifies the new dns domain for the default server 指定默認se

rver新的dns域

os2.exe > an os/2 warp server (os2 /o) os/2

os2srv.exe > an os/2 warp server os/2

os2ss.exe > an os/2 warp server os/2

osk.exe > on screen keyboard 屏幕鍵盤

packager.exe > windows 2000 packager manager 對象包裝程序

pathping.exe > combination of ping and tracert 包含ping和tracert的程序

pax.exe > is a posix program and path names used as arguments must be specif

ied in posix format. use "//c/users/default" instead of "c:usersdefault."

啟動便攜式存檔互換 (pax) 實用程序

Pent nt.exe > used to check the pentium for the floating point division error

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

. 檢查pentium的浮點錯誤

perfmon.exe > starts windows performance monitor 性能監視器

ping.exe > packet internet groper 驗證與遠程計算機的連接

posix.exe > used for backward compatibility with unix 用於兼容unix

print.exe > cmd line used to print files 打印文本文件或顯示打印隊列的內容。

progman.exe > program manager 程序管理器

proquota.exe > profile quota program

psxss.exe > posix subsystem application posix子系統應用程序

qappsrv.exe > displays the available application terminal servers on the net

work

在網絡上顯示終端服務器可用的程序

qprocess.exe > display information about processes local or remote 在本地或遠

程顯示進程的信息(需終端服務)

query.exe > query termserver user process and sessions 查詢進程和對話

quser.exe > display information about a user logged on 顯示用戶登陸的信息(需

終端服務)

qwinsta.exe > display information about terminal sessions. 顯示終端服務的信息

rasadmin.exe > start the remote access admin service 啟動遠程訪問服務

rasautou.exe > creates a ras connection 建立一個ras連接

rasdial.exe > dial a connection 撥號連接

ras.exe > starts a ras connection 運行ras連接

rcp.exe > copies a file from and to a rcp service. 在 windows 2000 計算機和運

行遠程外殼端口監控程序 rshd 的系統之間複製文件

rdpclip.exe > rdpclip allows you to copy and paste files between a terminal

session and client console session. 再終端和本地複製和粘貼文件

recover.exe > recovers readable information from a bad or defective disk 從壞

的或有缺陷的磁盤中恢復可讀取的信息。

redir.exe > starts the redirector service 運行重定向服務

regedt32.exe > 32-bit register service 32位註冊服務

regini.exe > modify registry permissions from within a script 用腳本修改註冊

許可

register.exe > register a program so it can have special execution character

istics. 註冊包含特殊運行字符的程序

regsvc.exe >

regsvr32.exe > registers and unregister's dll's. as to how and where it regi

ster's them i dont know. 註冊和反註冊dll

regtrace.exe > options to tune debug options for applications failing to dum

p trace statements

trace 設置

regwiz.exe > registration wizard 註冊嚮導

remrras.exe >

replace.exe > replace files 用源目錄中的同名文件替換目標目錄中的文件。

reset.exe > reset an active section 重置活動部分

rexec.exe > runs commands on remote hosts running the rexec service. 在運行

rexec 服務的遠程計算機上運行命令。rexec 命令在執行指定命令前,驗證遠程計算機

上的用戶名,只有安裝了 tcp/ip 協議後才可以使用該命令。

risetup.exe > starts the remote installation service wizard. 運行遠程安裝嚮導

服務

route.exe > display or edit the current routing tables. 控制網絡路由表

routemon.exe > no longer supported 不再支持了!

router.exe > router software that runs either on a dedicated dos or on an os

5 開始→運行(cmd)命令大全(絕對經典)

/2 system. route軟件在 dos或者是os/2系統

rsh.exe > runs commands on remote hosts running the rsh service 在運行 rsh 服

務的遠程計算機上運行命令

rsm.exe > mounts and configures remote system media 配置遠程系統媒體

rsnotify.exe > remote storage notification recall 遠程存儲通知回顯

rsvp.exe > resource reservation protocol 源預約協議

runas.exe > run a program as another user 允許用戶用其他權限運行指定的工具和

程序

rundll32.exe > launches a 32-bit dll program 啟動32位dll程序

runonce.exe > causes a program to run during startup 運行程序再開始菜單中

rwinsta.exe > reset the session subsystem hardware and software to known ini

tial values 重置會話子系統硬件和軟件到最初的值

savedump.exe > does not write to e:winntuser.dmp 不寫入user.dmp中

scardsvr.exe > smart card resource management server 子能卡資源管理服務器

schupgr.exe > it will read the schema update files (.ldf files) and upgrade

the schema. (part of adsi) 讀取計劃更新文件和更新計劃

secedit.exe > starts security editor help 自動安全性配置管理

services.exe > controls all the services 控制所有服務

sethc.exe > set high contrast - changes colours and display mode logoff to s

et it back to normal 設置高對比

setreg.exe > shows the software publishing state key values 顯示軟件發佈的國

家語言

setup.exe > gui box prompts you to goto control panel to configure system co

mponents 安裝程序(轉到控制面板)

setver.exe > set version for files 設置 ms-dos 子系統向程序報告的 ms-dos 版本

sfc.exe > system file checker test and check system files for integrity 系統

文件檢查

sfmprint.exe > print services for macintosh 打印macintosh服務

sfmpsexe.exe >

sfmsvc.exe >

shadow.exe > monitor another terminal services session. 監控另外一臺中端服務

器會話

share.exe > windows 2000 和 ms-dos 子系統不使用該命令。接受該命令只是為了與

ms-dos 文件兼容

shmgrate.exe >

shrpubw.exe > create and share folders 建立和共享文件夾

sigverif.exe > file signature verification 文件簽名驗證

skeys.exe > serial keys utility 序列號製作工具

smlogsvc.exe > performance logs and alerts 性能曰志和警報

smss.exe >

sndrec32.exe > starts the windows sound recorder 錄音機

sndvol32.exe > display the current volume information 顯示聲音控制信息

snmp.exe > simple network management protocol used for network mangement 簡單

網絡管理協議

snmptrap.exe > utility used with snmp snmp工具

sol.exe > windows solitaire game 紙牌

二、Linux命令

1> 查看文件信息:ls

ls是英文單詞list的簡寫,其功能為列出目錄的內容,是用戶最常用的命令之一,它類似於DOS下的dir命令。

Linux文件或者目錄名稱最長可以有265個字符,"."代表當前目錄,"…"代表上一級目錄,以"."開頭的文件為隱藏文件,需要用 -a 參數才能顯示。

ls常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

圖中列出的信息含義如下圖所示:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

與DOS下的文件操作類似,在Unix/Linux系統中,也同樣允許使用特殊字符來同時引用多個文件名,這些特殊字符被稱為通配符。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

2> 清屏:clear

clear作用為清除終端上的顯示(類似於DOS的cls清屏功能),也可使用快捷鍵:Ctrl + l ( "l" 為字母 )。

3> 切換工作目錄: cd

在使用Unix/Linux的時候,經常需要更換工作目錄。cd命令可以幫助用戶切換工作目錄。Linux所有的目錄和文件名大小寫敏感

cd後面可跟絕對路徑,也可以跟相對路徑。如果省略目錄,則默認切換到當前用戶的主目錄。

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:

如果路徑是從根路徑開始的,則路徑的前面需要加上 " / ",如 " /mnt ",通常進入某個目錄裡的文件夾,前面不用加 " / "。

4> 顯示當前路徑:pwd

使用pwd命令可以顯示當前的工作目錄,該命令很簡單,直接輸入pwd即可,後面不帶參數。

5> 創建目錄:mkdir

通過mkdir命令可以創建一個新的目錄。參數-p可遞歸創建目錄。

需要注意的是新建目錄的名稱不能與當前目錄中已有的目錄或文件同名,並且目錄創建者必須對當前目錄具有寫權限。

6> 刪除文件:rm

可通過rm刪除文件或目錄。使用rm命令要小心,因為文件刪除後不能恢復。為了防止文件誤刪,可以在rm後使用-i參數以逐個確認要刪除的文件。

常用參數及含義如下表所示:

7> 拷貝:cp

cp命令的功能是將給出的文件或目錄複製到另一個文件或目錄中,相當於DOS下的copy命令。

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

8> mv:移動、重命名

用戶可以使用mv命令來移動文件或目錄,也可以給文件或目錄重命名。

常用選項說明:

9> 創建文件: touch

用戶可以通過touch來創建一個空的文件,demo如下:

touch hello.txt

說明:

則會在當前路徑下創建名字為hello.txt的空文件

Linux系統中沒有嚴格的後綴(格式),所以創建文件時可以命名為任意的文件名

10. 輸出重定向命令:>

Linux允許將命令執行結果重定向到一個文件,本應顯示在終端上的內容保存到指定文件中。

如:ls > test.txt ( test.txt 如果不存在,則創建,存在則覆蓋其內容 )

注意: >輸出重定向會覆蓋原來的內容,>>輸出重定向則會追加到文件的尾部。

11. 分屏顯示:more

查看內容時,在信息過長無法在一屏上顯示時,會出現快速滾屏,使得用戶無法看清文件的內容,此時可以使用more命令,每次只顯示一頁,按下空格鍵可以顯示下一頁,按下q鍵退出顯示,按下h鍵可以獲取幫助。

12. 管道:|

管道:一個命令的輸出可以通過管道做為另一個命令的輸入。

管道我們可以理解現實生活中的管子,管子的一頭塞東西進去,另一頭取出來,這裡" | "的左右分為兩端,左端塞東西(寫),右端取東西(讀)。

13. 建立鏈接文件:ln

Linux鏈接文件類似於Windows下的快捷方式。

鏈接文件分為軟鏈接和硬鏈接。

軟鏈接:軟鏈接不佔用磁盤空間,源文件刪除則軟鏈接失效。

硬鏈接:硬鏈接只能鏈接普通文件,不能鏈接目錄。

使用格式:

ln 源文件 鏈接文件ln -s 源文件 鏈接文件

如果沒有-s選項代表建立一個硬鏈接文件,兩個文件佔用相同大小的硬盤空間,即使刪除了源文件,鏈接文件還是存在,所以-s選項是更常見的形式。

注意:如果軟鏈接文件和源文件不在同一個目錄,源文件要使用絕對路徑,不能使用相對路徑。

14. 查看或者合併文件內容:cat

15. 文本搜索:grep

Linux系統中grep命令是一種強大的文本搜索工具,grep允許對文本文件進行模式查找。如果找到匹配模式, grep打印包含模式的所有行。

grep一般格式為:

grep [-選項] '搜索內容串'文件名

在grep命令中輸入字符串參數時,最好引號或雙引號括起來。

例如:

grep 'a' 1.txt

常用選項說明:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

grep搜索內容串可以是正則表達式。

正則表達式是對字符串操作的一種邏輯公式,就是用事先定義好的一些特定字符、及這些特定字符的組合,組成一個"規則字符串",這個"規則字符串"用來表達對字符串的一種過濾邏輯。

grep常用正則表達式:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

16. 查找文件:find

find命令功能非常強大,通常用來在特定的目錄下搜索符合條件的文件,也可以用來搜索特定用戶屬主的文件。

常用用法:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

17. 歸檔管理:tar

計算機中的數據經常需要備份,tar是Unix/Linux中最常用的備份工具,此命令可以把一系列文件歸檔到一個大文件中,也可以把檔案文件解開以恢復數據。

tar使用格式 tar [參數] 打包文件名 文件

tar命令很特殊,其參數前面可以使用"-",也可以不使用。

常用參數:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

注意:除了f需要放在參數的最後,其它參數的順序任意。

18. 文件壓縮解壓:gzip

tar與gzip命令結合使用實現文件打包、壓縮。 tar只負責打包文件,但不壓縮,用gzip壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz。

gzip使用格式如下:

gzip [選項] 被壓縮文件

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

tar這個命令並沒有壓縮的功能,它只是一個打包的命令,但是在tar命令中增加一個選項(-z)可以調用gzip實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar cvzf 壓縮包包名 文件1 文件2 …

-z :指定壓縮包的格式為:file.tar.gz

解壓用法: tar zxvf 壓縮包包名

-z:指定壓縮包的格式為:file.tar.gz

解壓到指定目錄:-C (大寫字母"C")

19. 文件壓縮解壓:bzip2

tar與bzip2命令結合使用實現文件打包、壓縮(用法和gzip一樣)。

tar只負責打包文件,但不壓縮,用bzip2壓縮tar打包後的文件,其擴展名一般用xxxx.tar.gz2。

在tar命令中增加一個選項(-j)可以調用bzip2實現了一個壓縮的功能,實行一個先打包後壓縮的過程。

壓縮用法:tar -jcvf 壓縮包包名 文件…(tar jcvf bk.tar.bz2 *.c)

解壓用法:tar -jxvf 壓縮包包名 (tar jxvf bk.tar.bz2)

20. 文件壓縮解壓:zip、unzip

通過zip壓縮文件的目標文件不需要指定擴展名,默認擴展名為zip。

壓縮文件:zip [-r] 目標文件(沒有擴展名) 源文件

解壓文件:unzip -d 解壓後目錄文件 壓縮文件

21. 查看命令位置:which

22. 修改文件權限:chmod

chmod 修改文件權限有兩種使用格式:字母法與數字法。

字母法:chmod u/g/o/a +/-/= rwx 文件

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如果需要同時進行設定擁有者、同組者以及其他人的權限,參考如下:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

數字法:"rwx" 這些權限也可以用數字來代替

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

如執行:chmod u=rwx,g=rx,o=r filename 就等同於:chmod u=7,g=5,o=4 filename

chmod 751 file:

文件所有者:讀、寫、執行權限

同組用戶:讀、執行的權限

其它用戶:執行的權限

注意:如果想遞歸所有目錄加上相同權限,需要加上參數" -R "。 如:chmod 777 test/ -R 遞歸 test 目錄下所有文件加 777 權限

23. 切換到管理員賬號

Ubuntu下切換到root的簡單命令:

24. 設置用戶密碼:passwd

在Unix/Linux中,超級用戶可以使用passwd命令為普通用戶設置或修改用戶密碼。用戶也可以直接使用該命令來修改自己的密碼,而無需在命令後面使用用戶名。

25. 退出登錄賬戶: exit

如果是圖形界面,退出當前終端;

如果是使用ssh遠程登錄,退出登陸賬戶;

如果是切換後的登陸用戶,退出則返回上一個登陸賬號。

26. 查看登錄用戶:who

who命令用於查看當前所有登錄系統的用戶信息。

常用選項:

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

27. 關機重啟:reboot、shutdown、init

電腦網絡:網絡工程師史上最全cmd命令,含Windows和Linux系統

"

相關推薦

推薦中...