ex hate me
Danh sách lệnh Command Prompt thường xuyên được sử dụng
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
| A | Description |
|---|---|
| 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 |
| arp | Giao 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 |
| associat | One step file association |
| at | Chạy lệnh tại một thời điểm nào đó cụ thể |
| atmadm | Hiển thị thông tin kết nối của bộ chuyển đổi ATM ( ATM Adapter ) |
| attrib | Chỉnh sửa các file thuộc tính (file attributes) |
B - Các lệnh Windows CMD
| B | Description |
|---|---|
| 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 |
| bitsadmin | Sử 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 |
| break | Bật tắt khả năng ngắt ( Ctrl + C ) trong CMD |
C - Các lệnh Windows CMD
| C | Description |
|---|---|
| cacls | Dùng để thay đổi quyền của tệp giống chmod trên linux |
| call | Sử 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 |
| certutil | Manage 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) |
| chcp | Hiển thị số của trang active console code |
| chdir | Giố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 |
| choice | Nhậ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 |
| cleanmgr | Used clean temp files and recycle bin automatically |
| clip | Sao chép kết quả của bất kỳ lệnh nào (stdin) vào khay nhớ tạm của Windows |
| cls | Dọn màn hình |
| cmd | Sử 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 |
| color | Change the color of the CMD shell using options |
| comp | So sánh nội dung của hai tệp hoặc hai bộ tệp |
| compact | Nén tệp và thư mục trên phân vùng NTFS |
| compress | Nén một hoặc nhiều tệp |
| convert | Chuyển đổi phân vùng FAT sang NTFS |
| copy | Sao chép một hoặc nhiều tệp vào vị trí khác |
| coreinfo | Hiển thị ánh xạ giữa bộ xử lý logic và vật lý |
| cprofile | Cleans specified profiles of wasted space and disabled user-specific file associations |
| cscmd | Cấu hình tệp ngoại tuyến trên máy khách |
| csvde | Nhập hoặc xuất dữ liệu của Active Directory |
D - Các lệnh Windows CMD
| D | Description |
|---|---|
| date | Hiển thị hoặc dùng để chỉnh sửa ngày |
| defrag | Used to defragment system hard drive. |
| del | Dùng để xóa một file |
| delprof | Dù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ó. |
| devcon | Truy 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. |
| dirquota | Manage File Server Resource Manager quotas. |
| diruse | Được sử dụng để hiển thị đĩa được dùng |
| diskcomp | So sánh nội dung của hai đĩa mềm. |
| diskcopy | Sao chép dữ liệu của một đĩa mềm sang đĩa khác. |
| diskpart | Thay đổi phân vùng lưu trữ, cả nội bộ và đã kết nối. |
| diskshadow | Truy cập Disk Shadow Copy Service |
| diskuse | Xem 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. |
| driverquery | Hiển thị danh sách các trình điều khiển thiết bị được cài đặt. |
| dsacls | Xem 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 |
| dsget | Xem đỗi tượng trong active directory. |
| dsquery | Tìm kiếm đối tượng active directory. |
| dsmod | Used to modify objects in an active directory. |
| dsmove | Rename or move an active directory object. |
| dsrm | Remove objects from an active directory. |
| dsmgmt | Manage Active Directory Lightweight Directory Services |
E - Các lệnh Windows CMD
| echo | Turn command-echoing feature on/off, display a message on the screen. |
| endlocal | End localization environment changes in a batch file. |
| erase | Used to delete on or more file(s). |
| eventcreate | Add custom event to Windows event log (Admin rights required). |
| eventquery | Display list of events and their properties from event logs. |
| eventtriggers | Display and configure event triggers on local and remote machines. |
| exit | Exit the command line (Quit current batch script). |
| expand | Uncompress one or more .CAB file(s) |
| explorer | Open Windows Explorer. |
| extract | Uncompress one or more Windows cabinet file(s) |
F - Các lệnh Windows CMD
| F | Description |
|---|---|
| fc | Used to compare two files. |
| find | Used to search a specified text string in a file. |
| findstr | Used to find string patterns in files. |
| finger | Display information about user(s) on a specified remote computer. |
| flattemp | Used to enable/disable flat temporary folders. |
| For | Run a command in a loop for a file(s) for defined parameter. |
| forfiles | Used for batch processing of selected file(s) |
| format | Used to format a disk. |
| freedisk | Used to check free space on a disk. |
| fsutil | File system utility to manage file and drive properties. |
| ftp | Use FTP service to transfer files from one PC to another. |
| ftype | Display/ Modify file extension type associations. |
G - Các lệnh Windows CMD
| G | Description |
|---|---|
| getmac | Used to display the MAC address of your network adapter. |
| goto | Used to direct a batch program to a line identified by a label. |
| gpresult | Display Group Policy Settings and Resultant Set of Policy for a user. |
| gpupdate | Update local and active directory based on group policy settings. |
| graftabl | Turn on the ability to display an extended character in graphics mode. |
H - Các lệnh Windows CMD
| H | Description |
|---|---|
| help | Display a list of commands and see online information for them. |
| hostname | Used to display hostname of the computer. |
I - Các lệnh Windows CMD
| I | Description |
|---|---|
| icacls | Used to change permissions of files and folders. |
| iexpress | Used to create a self-extracting zip archive. |
| if | Used for conditional processing in batch programs. |
| ifmember | Display the group(s) an active user belongs to. |
| inuse | Replace the files which the OS is currently using (restart required). |
| ipconfig | Display and change Windows IP configuration. |
| ipseccmd | Used to configure IP Security policies. |
| ipxroute | Display and modify routing table information used by IPX protocol. |
| irftp | Used to send files over an infrared link (infrared functionality required). |
| L | Description |
|---|---|
| label | Used to change the name of a disk. |
| lodctr | Update registry values with latest performance counters. |
| logman | Used to manage performance monitor logs. |
| logoff | Log a user off. |
| logtime | Add the date, time, and a message to a text file. |
| lpq | Displays print queue status. |
| lpr | Used to send a file to a computer running the Line Printer Daemon service. |
M - Các lệnh Windows CMD
| M | Description |
|---|---|
| macfile | Manage files server for Mackintosh. |
| makecab | Used to create .cab files. |
| mapisend | Used to send email from command line. |
| mbsacli | Microsoft Baseline Security Analyser. |
| mem | Used to show memory usage. |
| md | Used to create directories and sub-directories. |
| mkdir | Used to create directories and sub-directories. |
| mklink | Used to create symbolic link to a directory. |
| mmc | Access Microsoft Management Console. |
| mode | Configure COM, LPT, CON system devies. |
| more | Display one screen of output at time. |
| mountvol | Create, list, or delete a volume mount point. |
| move | Used to move files from one folder to another. |
| moveuser | Move user account to a domain or between machines. |
| msg | Used to send a pop-up message to a user. |
| msiexec | Install, modify, consfigure using Windows Installer. |
| msinfo32 | Display system information. |
| mstsc | Create a remote desktop connection |
N - Các lệnh Windows CMD
| N | Description |
|---|---|
| nbstat | Display NetBIOS over TCP/IP information. |
| net | Used to manage network resources and services. |
| netdom | Network Domain Manager utility |
| netsh | Display or modify network configuration |
| netstat | Display active TCP/IP connections. |
| nlsinfo | Used to display locale information |
| nltest | List domain controllers, force remote shutdown, etc. |
| now | Display date and time. |
| nslookup | Check IP address on a Name Server. |
| ntbackup | Backup data to tape using CMD or batch file. |
| ntcmdprompt | Runs cmd.exe instead of command.exe in an MS-DOS application. |
| ntdsutil | Manage Active Directory Domain Services |
| ntrights | Used to edit user account privileges. |
| ntsd | Only for system developers. |
| nvspbind | Used to modify network bindings. |
O - Các lệnh Windows CMD
| O | Description |
|---|---|
| openfiles | Queries or displays open files. |
P - Các lệnh Windows CMD
| P | Description |
|---|---|
| pagefileconfig | Display and configure Virtual memory settings. |
| path | Set PATH environment variable for executable files. |
| pathping | Latency and Packet loss info for each node in the network path. |
| pause | Used to stop processing of a batch file. |
| pbadmin | Starts Phone Book Administrator |
| pentnt | Detect Floating Point Division error in the Pentium chip. |
| perfmon | Access performance monitor in CMD |
| perms | Display a user\’s ACL permissions for a file. |
| ping | Test network connection to a computer. |
| popd | Go to the latest path/folder stored by PUSHD command |
| portqry | Display TCP and UDP port status. |
| powercfg | Used to configure power settings and know battery health. |
| Used to print a text file(s) from CMD. | |
| printbrm | For backup/recovery/migration of the print queue. |
| prncnfg | Used to configure/rename a printing device. |
| prndrvr | List/add/delete printer drivers. |
| prnjobs | List/pause/resume/cancel print jobs. |
| prnmngr | List/add/delete printers, display/set default printer. |
| prnport | List/create/delete TCP printer ports, display/change port configuration. |
| prnqctl | Clear printer queue, print a test page. |
| procdump | Monitor system for CPU spikes, generate a crash report during a spike. |
| prompt | Used to change the Prompt in CMD. |
| psexec | Run a CMD process on a remote computer. |
| psfile | Display remotely opened files, close an open file. |
| psinfo | List system information about a local/remote machine. |
| pskill | Kill a process(es) using its name or process ID. |
| pslist | Display process status and info about active processes. |
| psloggedon | See active users on machine. |
| psloglist | Display event log records. |
| pspasswd | Used to change account password. |
| psping | Used to measure network performance. |
| psservice | Display and control services on a machine. |
| psshutdown | Shutdown/restart/logoff/lock a local or remote machine. |
| pssuspend | Used to suspend a process on a local or remote computer. |
| pushd | Change current folder and store previous folder for use by POPD. |
Q - Các lệnh Windows CMD
| Q | Description |
|---|---|
| qgrep | Search file(s) for a given string pattern. |
| query process or qprocess | Display information about processes. |
R - Các lệnh Windows CMD
| R | Description |
|---|---|
| rasdial | Display Remote Access Service Status. |
| rasphone | Manage RAS connections. |
| rcp | Copy files to a computer running remote shell service. |
| recover | Recover readable data from a defective disk. |
| reg | Display/add/change registry keys and values in Windows registry. |
| regedit | Import/export/delete settings from a .reg text file. |
| regsvr32 | Used to register/unregister a DLL file. |
| regini | Used to change registry permissions. |
| relog | Export performance counters to other formats like TSV, CSV, SQL. |
| rem | Add comments in batch file. |
| ren | Used to rename a file(s). |
| replace | Used to replace a file with another file of same name. |
| reset session | Used to reset a remote desktop session. |
| rexec | Run commands on remote machines running Rexec service. |
| rd | Used to delete a folder(s). |
| rmdir | Used to delete a folder(s). |
| rmtshare | Manage file and printer shares local or remote servers. |
| robocopy | Used to copy files and folders that have changed. |
| route | Display/change the local IP routing table. |
| rsh | Run commands on remote servers running RSH service. |
| rsm | Manage media resources using Removable storage. |
| runas | Run a program as a different user. |
| rundll32 | Used to run a DLL program. |
S - Các lệnh Windows CMD
| S | Description |
|---|---|
| sc | Sử dụng Service Controller để quản lí Windows services. |
| schtasks | Lên lịch trình lệnh để chạy tại một thời điểm cụ thể. |
| secedit | Cấu hình bảo mật hệ thống. |
| set | Hiển thị / thiết lập / loại bỏ các biến môi trường trong CMD. |
| setlocal | Control visibility of environment variables in a batch file. |
| setspn | Manage Service Principal Names for an Active Directory service account. |
| setx | Đặt biến môi trường vĩnh viễn. |
| sfc | Trình kiểm tra tệp hệ thống |
| share | Liệ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. |
| shift | Thay đổi chổ của các thông số trong tệp batch |
| shortcut | Tạo shortcut |
| shutdown | Tắt máy tính. |
| sleep | Đặt máy tính vào chế độ ngủ với số giây được chỉ định. |
| slmgr | Công cụ quản lý cấp phép phần mềm để kích hoạt và KMS. |
| sort | Used to sort and display a redirected or piped input. |
| start | Start a program, command, or batch file. |
| strings | Find ANSI and UNICODE strings in binary files. |
| subinacl | Display/modify ACEs for file and folder permissions. |
| subst | Associate a path with a drive letter. |
| sysmon | Monitor and log system activity to Windows event log. |
| systeminfo | Display detailed configuration information about the computer. |
T - Các lệnh Windows CMD
| T | Description |
|---|---|
| takeown | Used to take the ownership of a file. |
| taskkill | Used to terminate on or more running processes. |
| tasklist | Display a list of running apps and services. |
| tcmsetup | Enable/disable TAPI client. |
| telnet | Communicate with a remote machine using TELNET protocol. |
| tftp | Transfer files to and from a remote machine running TFTP protocol. |
| time | Display/change system time. |
| timeout | Delay a batch file execution for specified seconds. |
| title | Change the text on top of CMD window. |
| touch | Change file timestamps. |
| tracerpt | Process event trace logs and generate trace analysis report. |
| tracert | Trace route to a remote host by sending ICMP request messages. |
| tree | Display a folder structure in the form of a graphical tree. |
| tsdiscon | Terminate a remote desktop connection. |
| tskill | Terminate a running process on a RD Session Host server. |
| tssutdn | Shutdown/reboot a terminal server remotely. |
| type | Show contents of a text file. |
| typeperf | Write performance data to a CMD window or a log file. |
| tzutil | Time Zone Utility. |
U - Các lệnh Windows CMD
| U | Description |
|---|---|
| unlodctr | Remove performance counter names and explain text for a service from the registry. |
V - Các lệnh Windows CMD
| V | Descrption |
|---|---|
| ver | Hiển thị số phiên bản của hệ điều hành được cài đặt. |
| verify | Xác nhận xem các tập tin được lưu chính xác trên đĩa hay chưa |
| vol | Show disk volume label and serial number. |
| vssadmin | Show shadow copy backups, installed shadow copy writers and providers. |
W - Các lệnh Windows CMD
| W | Description |
|---|---|
| w32tm | Truy 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. |
| wevtutil | Lấy thông tin về event logs và publishers. |
| where | Tìm và hiển thị (các) tệp trong thư mục hiện tại. |
| whoami | Hiển thị thông tin về người dùng hoạt động. |
| windiff | So sánh nội dung của hai tập tin hoặc bộ tập tin. |
| winrm | Windows Remote Management. |
| winrs | Windows Remote Shell. |
| wmic | Lệnh quản lý thiết bị Windows. |
| wuauclt | Tải xuống các tệp cập nhật mới nhất |
X - Các lệnh Windows CMD
| X | Description |
|---|---|
| xcalcs | Thay đổi ACLs cho các tập tin và thư mục. |
| xcopy | Sao 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. " ]
