Danh sách lệnh Command Prompt thường xuyên được sử dụng

ex hate me


Danh sách lệnh Command Prompt thường xuyên được sử dụng



Xem bài viết gốc Tiếng Anh tại đây 

Danh sách lệnh Command Prompt thường xuyên được sử dụng, đây được xem là một bài viết tổng hợp toàn bộ các lệnh thường được chạy trên Command Prompt, bao gồm các lệnh từ cơ bản đến nâng cao giúp các cậu nắm vững hơn về cách sử dụng cmd trên Windows, giúp thuận lợi hơn so với khi các cậu thao tác với giao diện đồ họa đẹp nhưng ít tùy chọn. Bài viết được tớ dịch từ trang nước ngoài, không phải tớ tự viết, và có lẽ trong nhiều bài viết tới, mặc dù các bài viết cũ cũng có nhưng tớ sẽ chủ yếu đi dịch từ trang nước ngoài để tiết kiệm được thời gian vì hiện tại việc học đang là ưu tiên hàng đầu. Còn dưới đây chức năng tớ để tiếng Anh luôn, khi nào rảnh tớ dịch từ từ, mà tốt nhất là các cậu tậo làm quen với tiếng Anh đi. Tớ không giởi tiếng Anh nên tớ cũng đang tập, vì xác định muốn giỏi công nghệ thì các đích là cần biết tiếng Anh. Còn không thì các cậu có thể sử dụng thao tác giao diện thay vì sử dụng command line nhé. Mà tớ chỉ dịch những từ trong tầm hiểu biết hoặc khó hiểu thôi, còn cại một là dễ nên tớ không dịch hai là không thể dịch ra nghĩa tiếng Việt nên tớ để vậy luôn.

Danh sách lệnh Command Prompt thường xuyên được sử dụng

[ Chú ý : Không phân biệt hoa và thường, lệnh dir và lệnh DIR đều giống như nhau ]

Để xem hỗ trợ chi tiết về cách sử dụng lênh các cậu có thể sử dụng theo cấu trúc sau : <command> /? ví dụ ping /? và tùy vào phiên bản windows mà lệnh có hoạt động hay là không !

A - Các lệnh Windows CMD

 ADescription
addusersĐược sử dụng để thêm và liệt kê users trong tệp CSV
admodcmdĐược sử dụng để sửa đổi hàng loạt các Active Directory 
arpGiao thức phân giải địa chỉ được sử dụng để ánh xạ địa chỉ IP đến địa chỉ phần cứng
assocĐược sử dụng để thay phần mở rộng tập tin
associatOne step file association
atChạy lệnh tại một thời điểm nào đó cụ thể 
atmadmHiển thị thông tin kết nối của bộ chuyển đổi ATM ( ATM Adapter )
attribChỉnh sửa các file thuộc tính (file attributes) 

B - Các lệnh Windows CMD

 BDescription
bcdbootĐược sử dụng để tạo và sửa chữa phân vùng hệ thống
bcdeditĐược sử dụng để quản lý dữ liệu cấu hình khởi động
bitsadminSử dụng để thay đổi Background Intelligent Transfer Service
bootcfgĐược sử dụng để chỉnh sửa cấu hình khởi động trong Windows
breakBật tắt khả năng ngắt ( Ctrl + C ) trong CMD 


C - Các lệnh Windows CMD

CDescription
caclsDùng để thay đổi quyền của tệp giống chmod trên linux 
callSử dụng một chương trình batch để gọi cái gì đó 
certreqĐược sử dụng để yêu cầu chứng chỉ từ cơ quan chứng nhận
certutilManage Certification Authority files and services
cdĐược sử dụng để thay đổi thư mục (thư mục) hoặc đi đến một thư mục cụ thể
changeĐược sử dụng để thay đổi dịch vụ đầu cuối (terminal service)
chcpHiển thị số của trang active console code 
chdirGiống lênh cd 
chkdskĐược sử dụng để kiểm tra và sửa chữa các vấn đề trong đĩa
chkntfsĐược sử dụng để kiểm tra hệ thống tệp NTFS
choiceNhận đầu vào từ người dùng (thông qua bàn phím) vào tệp batch 
cipherĐược sử dụng để mã hóa / giải mã tập tin và thư mục
cleanmgrUsed clean temp files and recycle bin automatically
clipSao chép kết quả của bất kỳ lệnh nào (stdin) vào khay nhớ tạm của Windows
clsDọn màn hình 
cmdSử dụng để bắt đầu một Command Shell mới 
cmdkeyĐược sử dụng để quản lý tên người dùng và mật khẩu được lưu trữ
cmstpĐược sử dụng để cài đặt hoặc xóa hồ sơ dịch vụ quản lý kết nối
colorChange the color of the CMD shell using options
compSo sánh nội dung của hai tệp hoặc hai bộ tệp
compactNén tệp và thư mục trên phân vùng NTFS
compressNén một hoặc nhiều tệp
convertChuyển đổi phân vùng FAT sang NTFS
copySao chép một hoặc nhiều tệp vào vị trí khác
coreinfoHiển thị ánh xạ giữa bộ xử lý logic và vật lý
cprofileCleans specified profiles of wasted space and disabled user-specific file associations
cscmdCấu hình tệp ngoại tuyến trên máy khách 
csvdeNhập hoặc xuất dữ liệu của Active Directory

D - Các lệnh Windows CMD

 DDescription
dateHiển thị hoặc dùng để chỉnh sửa ngày 
defragUsed to defragment system hard drive.
delDùng để xóa một file 
delprofDùng để xóa hồ sơ người dùng 
deltreeĐược sử dụng để xóa một thư mục và các thư mục con của nó.
devconTruy cập tiện ích quản lý thiết bị dòng lệnh.
dirĐược sử dụng để hiển thị danh sách tập tin và thư mục.
dirquotaManage File Server Resource Manager quotas.
diruseĐược sử dụng để hiển thị đĩa được dùng 
diskcompSo sánh nội dung của hai đĩa mềm.
diskcopySao chép dữ liệu của một đĩa mềm sang đĩa khác.
diskpartThay đổi phân vùng lưu trữ, cả nội bộ và đã kết nối.
diskshadowTruy cập Disk Shadow Copy Service
diskuseXem không gian sử dụng trong thư mục.
doskeyĐược sử dụng để chỉnh sửa dòng lệnh, gọi lại lệnh và tạo macro.
driverqueryHiển thị danh sách các trình điều khiển thiết bị được cài đặt.
dsaclsXem và chỉnh sửa các mục kiểm soát truy cập cho các đối tượng trong 
dsaddĐược sử dụng để thêm các đối tượng vào active directory
dsgetXem đỗi tượng trong active directory.
dsqueryTìm kiếm đối tượng active directory.
dsmodUsed to modify objects in an active directory.
dsmoveRename or move an active directory object.
dsrmRemove objects from an active directory.
dsmgmtManage Active Directory Lightweight Directory Services

E - Các lệnh Windows CMD

echoTurn command-echoing feature on/off, display a message on the screen.
endlocalEnd localization environment changes in a batch file.
eraseUsed to delete on or more file(s).
eventcreateAdd custom event to Windows event log (Admin rights required).
eventqueryDisplay list of events and their properties from event logs.
eventtriggersDisplay and configure event triggers on local and remote machines.
exitExit the command line (Quit current batch script).
expandUncompress one or more .CAB file(s)
explorerOpen Windows Explorer.
extractUncompress one or more Windows cabinet file(s)

F - Các lệnh Windows CMD

FDescription
fcUsed to compare two files.
findUsed to search a specified text string in a file.
findstrUsed to find string patterns in files.
fingerDisplay information about user(s) on a specified remote computer.
flattempUsed to enable/disable flat temporary folders.
ForRun a command in a loop for a file(s) for defined parameter.
forfilesUsed for batch processing of selected file(s)
formatUsed to format a disk.
freediskUsed to check free space on a disk.
fsutilFile system utility to manage file and drive properties.
ftpUse FTP service to transfer files from one PC to another.
ftypeDisplay/ Modify file extension type associations.

G - Các lệnh Windows CMD

 GDescription
getmacUsed to display the MAC address of your network adapter.
gotoUsed to direct a batch program to a line identified by a label.
gpresultDisplay Group Policy Settings and Resultant Set of Policy for a user.
gpupdateUpdate local and active directory based on group policy settings.
graftablTurn on the ability to display an extended character in graphics mode.

H - Các lệnh Windows CMD

 HDescription
helpDisplay a list of commands and see online information for them.
hostnameUsed to display hostname of the computer.

I - Các lệnh Windows CMD

IDescription
icaclsUsed to change permissions of files and folders.
iexpressUsed to create a self-extracting zip archive.
ifUsed for conditional processing in batch programs.
ifmemberDisplay the group(s) an active user belongs to.
inuseReplace the files which the OS is currently using (restart required).
ipconfigDisplay and change Windows IP configuration.
ipseccmdUsed to configure IP Security policies.
ipxrouteDisplay and modify routing table information used by IPX protocol.
irftpUsed to send files over an infrared link (infrared functionality required).

L - Các lệnh Windows CMD

LDescription
labelUsed to change the name of a disk.
lodctrUpdate registry values with latest performance counters.
logmanUsed to manage performance monitor logs.
logoffLog a user off.
logtimeAdd the date, time, and a message to a text file.
lpqDisplays print queue status.
lprUsed to send a file to a computer running the Line Printer Daemon service.

M - Các lệnh Windows CMD

 MDescription
macfileManage files server for Mackintosh.
makecabUsed to create .cab files.
mapisendUsed to send email from command line.
mbsacliMicrosoft Baseline Security Analyser.
memUsed to show memory usage.
mdUsed to create directories and sub-directories.
mkdirUsed to create directories and sub-directories.
mklinkUsed to create symbolic link to a directory.
mmcAccess Microsoft Management Console.
modeConfigure COM, LPT, CON system devies.
moreDisplay one screen of output at time.
mountvolCreate, list, or delete a volume mount point.
moveUsed to move files from one folder to another.
moveuserMove user account to a domain or between machines.
msgUsed to send a pop-up message to a user.
msiexecInstall, modify, consfigure using Windows Installer.
msinfo32Display system information.
mstscCreate a remote desktop connection

N - Các lệnh Windows CMD

NDescription
nbstatDisplay NetBIOS over TCP/IP information.
netUsed to manage network resources and services.
netdomNetwork Domain Manager utility
netshDisplay or modify network configuration
netstatDisplay active TCP/IP connections.
nlsinfoUsed to display locale information
nltestList domain controllers, force remote shutdown, etc.
nowDisplay date and time.
nslookupCheck IP address on a Name Server.
ntbackupBackup data to tape using CMD or batch file.
ntcmdpromptRuns cmd.exe instead of command.exe in an MS-DOS application.
ntdsutilManage Active Directory Domain Services
ntrightsUsed to edit user account privileges.
ntsdOnly for system developers.
nvspbindUsed to modify network bindings.

O - Các lệnh Windows CMD

 ODescription
openfilesQueries or displays open files.

P - Các lệnh Windows CMD

PDescription
pagefileconfigDisplay and configure Virtual memory settings.
pathSet PATH environment variable for executable files.
pathpingLatency and Packet loss info for each node in the network path.
pauseUsed to stop processing of a batch file.
pbadminStarts Phone Book Administrator
pentntDetect Floating Point Division error in the Pentium chip.
perfmonAccess performance monitor in CMD
permsDisplay a user\’s ACL permissions for a file.
pingTest network connection to a computer.
popdGo to the latest path/folder stored by PUSHD command
portqryDisplay TCP and UDP port status.
powercfgUsed to configure power settings and know battery health.
printUsed to print a text file(s) from CMD.
printbrmFor backup/recovery/migration of the print queue.
prncnfgUsed to configure/rename a printing device.
prndrvrList/add/delete printer drivers.
prnjobsList/pause/resume/cancel print jobs.
prnmngrList/add/delete printers, display/set default printer.
prnportList/create/delete TCP printer ports, display/change port configuration.
prnqctlClear printer queue, print a test page.
procdumpMonitor system for CPU spikes, generate a crash report during a spike.
promptUsed to change the Prompt in CMD.
psexecRun a CMD process on a remote computer.
psfileDisplay remotely opened files, close an open file.
psinfoList system information about a local/remote machine.
pskillKill a process(es) using its name or process ID.
pslistDisplay process status and info about active processes.
psloggedonSee active users on machine.
psloglistDisplay event log records.
pspasswdUsed to change account password.
pspingUsed to measure network performance.
psserviceDisplay and control services on a machine.
psshutdownShutdown/restart/logoff/lock a local or remote machine.
pssuspendUsed to suspend a process on a local or remote computer.
pushdChange current folder and store previous folder for use by POPD.

Q - Các lệnh Windows CMD

 QDescription
qgrepSearch file(s) for a given string pattern.
query process or qprocessDisplay information about processes.

R - Các lệnh Windows CMD

RDescription
rasdialDisplay Remote Access Service Status.
rasphoneManage RAS connections.
rcpCopy files to a computer running remote shell service.
recoverRecover readable data from a defective disk.
regDisplay/add/change registry keys and values in Windows registry.
regeditImport/export/delete settings from a .reg text file.
regsvr32Used to register/unregister a DLL file.
reginiUsed to change registry permissions.
relogExport performance counters to other formats like TSV, CSV, SQL.
remAdd comments in batch file.
renUsed to rename a file(s).
replaceUsed to replace a file with another file of same name.
reset sessionUsed to reset a remote desktop session.
rexecRun commands on remote machines running Rexec service.
rdUsed to delete a folder(s).
rmdirUsed to delete a folder(s).
rmtshareManage file and printer shares local or remote servers.
robocopyUsed to copy files and folders that have changed.
routeDisplay/change the local IP routing table.
rshRun commands on remote servers running RSH service.
rsmManage media resources using Removable storage.
runasRun a program as a different user.
rundll32Used to run a DLL program.

S - Các lệnh Windows CMD

SDescription
scSử dụng Service Controller để quản lí Windows services.
schtasksLên lịch trình lệnh để chạy tại một thời điểm cụ thể.
seceditCấu hình bảo mật hệ thống.
setHiển thị / thiết lập / loại bỏ các biến môi trường trong CMD.
setlocalControl visibility of environment variables in a batch file.
setspnManage Service Principal Names for an Active Directory service account.
setxĐặt biến môi trường vĩnh viễn.
sfcTrình kiểm tra tệp hệ thống
shareLiệt kê / chỉnh sửa file share hoặc in trên bất kỳ máy tính nào.
shellrunasĐược sử dụng để chạy một lệnh như một người dùng khác.
shiftThay đổi chổ của các thông số trong tệp batch
shortcutTạo shortcut
shutdownTắt máy tính.
sleepĐặt máy tính vào chế độ ngủ với số giây được chỉ định.
slmgrCông cụ quản lý cấp phép phần mềm để kích hoạt và KMS.
sortUsed to sort and display a redirected or piped input.
startStart a program, command, or batch file.
stringsFind ANSI and UNICODE strings in binary files.
subinaclDisplay/modify ACEs for file and folder permissions.
substAssociate a path with a drive letter.
sysmonMonitor and log system activity to Windows event log.
systeminfoDisplay detailed configuration information about the computer.

T - Các lệnh Windows CMD

 TDescription
takeownUsed to take the ownership of a file.
taskkillUsed to terminate on or more running processes.
tasklistDisplay a list of running apps and services.
tcmsetupEnable/disable TAPI client.
telnetCommunicate with a remote machine using TELNET protocol.
tftpTransfer files to and from a remote machine running TFTP protocol.
timeDisplay/change system time.
timeoutDelay a batch file execution for specified seconds.
titleChange the text on top of CMD window.
touchChange file timestamps.
tracerptProcess event trace logs and generate trace analysis report.
tracertTrace route to a remote host by sending ICMP request messages.
treeDisplay a folder structure in the form of a graphical tree.
tsdisconTerminate a remote desktop connection.
tskillTerminate a running process on a RD Session Host server.
tssutdnShutdown/reboot a terminal server remotely.
typeShow contents of a text file.
typeperfWrite performance data to a CMD window or a log file.
tzutilTime Zone Utility.

U - Các lệnh Windows CMD

 UDescription
unlodctrRemove performance counter names and explain text for a service from the registry.

V - Các lệnh Windows CMD

 VDescrption
verHiển thị số phiên bản của hệ điều hành được cài đặt.
verifyXác nhận xem các tập tin được lưu chính xác trên đĩa hay chưa 
volShow disk volume label and serial number.
vssadminShow shadow copy backups, installed shadow copy writers and providers.

W - Các lệnh Windows CMD

 WDescription
w32tmTruy cập tiện ích dịch vụ quản lí thời gian của Windows
waitforĐược sử dụng để đồng bộ hóa giữa (các) máy tính nối mạng.
wevtutilLấy thông tin về event logs và publishers.
whereTìm và hiển thị (các) tệp trong thư mục hiện tại.
whoamiHiển thị thông tin về người dùng hoạt động.
windiffSo sánh nội dung của hai tập tin hoặc bộ tập tin.
winrmWindows Remote Management.
winrsWindows Remote Shell.
wmicLệnh quản lý thiết bị Windows.
wuaucltTải xuống các tệp cập nhật mới nhất

X - Các lệnh Windows CMD

 XDescription
xcalcsThay đổi ACLs cho các tập tin và thư mục.
xcopySao chép tập tin hoặc cây thư mục vào thư mục khác.

Và đến đây là hết. Cảm ơn các cậu đã đọc đến tận đây.

Nguồn : Internet
OK ! DONE 

[ " Cuộc sống là một đường chạy vượt rào, nếu ta không cố gắng ta sẽ không thể vượt qua bất kỳ rào cản nào. " ] 
Một số mẹo nhỏ
Trương Hướng @truonghuong

Xin chào mọi người! Là mình đây, người viết những hồi kí về những chuyến đi của chính mình và hy vọng sẽ gặp được những người cùng chung sở thích với mình trên blog này!