344 words
2 minutes
Windows Command Prompt (CMD) Commands

ASSOC#

Purpose

The assoc command is used to display or modify file extensions associations.

assoc

This command will display the current file associations.

CHKDSK (Check Disk)#

Purpose

Checks a disk for errors and, if requested, corrects any errors.

chkdsk C:

This command will check the disk C: for errors.

CIPHER#

Purpose

Encrypt or decrypt files/directories on NTFS partitions.

cipher /E

This command will encrypt the specified directory.

CLS#

Purpose

Clears the screen of all previously entered commands and other text.

cls

This command will clear the command prompt screen.

DISKPART#

Purpose

Manage hard drive partitions.

diskpart

This command will start the DiskPart command interpreter.

DRIVERQUERY#

Purpose

Display a list of installed device drivers and their properties.

driverquery

This command will display a list of all installed device drivers.

GPUPDATE#

Purpose

Updates Group Policy settings.

gpupdate /force

This command will force an immediate update of Group Policy settings.

IPCONFIG#

Purpose

Displays the IP configuration for all network interfaces.

ipconfig /all

This command will display detailed IP configuration data for all network interfaces.

NETSTAT#

Purpose

Displays active TCP connections and various networking statistics.

netstat -a

This command will display all active TCP connections and the TCP and UDP ports on which the computer is listening.

NSLOOKUP#

Purpose

Queries the DNS to obtain domain name or IP address mapping.

nslookup <www.example.com>

This command will return the IP address of <www.example.com>.

PATHPING#

Purpose

Provides network latency and loss information at intermediate hops.

pathping <www.example.com>

This command will provide latency and loss information for each network hop to reach <www.example.com>.

PING#

Purpose

Tests the ability of the source computer to reach a specified destination computer.

ping <www.example.com>

This command will send a network request to <www.example.com> and wait for a response.

POWERCFG#

Purpose

Controls power settings and configurations.

powercfg /hibernate on

This command will enable hibernation.

SFC (System File Checker)#

Purpose

Scans and repairs important system files.

sfc /scannow

This command will immediately scan all protected system files.

SHUTDOWN#

Purpose

Shuts down, restarts, or logs off a computer or remote computer.

shutdown /s /t 0

This command will shut down your computer immediately.

SYSTEMINFO#

Purpose

Displays detailed configuration information about a computer and its operating system.

systeminfo

This command will display detailed system information.

TASKLIST#

Purpose

Displays a list of running tasks, services, and processes.

tasklist

This command will display a list of currently running tasks.

TRACERT#

Purpose

Shows the route and hops a packet takes to reach its destination.

tracert <www.example.com>

This command will show the route that a packet takes to reach <www.example.com>.

More commands will be added#

Coming Soon

Stay tuned for more updates and additional CMD commands!

Windows Command Prompt (CMD) Commands
https://banije.vercel.app/posts/cmd_commands/
Author
ibra-kdbra
Published at
2023-11-02