348 words
2 minutes
Windows Command Prompt (CMD) Commands

ASSOC#

Purpose

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

Terminal window
assoc

This command will display the current file associations.

CHKDSK (Check Disk)#

Purpose

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

Terminal window
chkdsk C:

This command will check the disk C: for errors.

CIPHER#

Purpose

Encrypt or decrypt files/directories on NTFS partitions.

Terminal window
cipher /E

This command will encrypt the specified directory.

CLS#

Purpose

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

Terminal window
cls

This command will clear the command prompt screen.

DISKPART#

Purpose

Manage hard drive partitions.

Terminal window
diskpart

This command will start the DiskPart command interpreter.

DRIVERQUERY#

Purpose

Display a list of installed device drivers and their properties.

Terminal window
driverquery

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

GPUPDATE#

Purpose

Updates Group Policy settings.

Terminal window
gpupdate /force

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

IPCONFIG#

Purpose

Displays the IP configuration for all network interfaces.

Terminal window
ipconfig /all

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

NETSTAT#

Purpose

Displays active TCP connections and various networking statistics.

Terminal window
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.

Terminal window
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.

Terminal window
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.

Terminal window
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.

Terminal window
powercfg /hibernate on

This command will enable hibernation.

SFC (System File Checker)#

Purpose

Scans and repairs important system files.

Terminal window
sfc /scannow

This command will immediately scan all protected system files.

SHUTDOWN#

Purpose

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

Terminal window
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.

Terminal window
systeminfo

This command will display detailed system information.

TASKLIST#

Purpose

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

Terminal window
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.

Terminal window
tracert <www.example.com>

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

Provided Guide for all the commands#

I did add all the CMD commands that is known in this TerCli

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