DEV Community

Le Vuong
Le Vuong

Posted on

1

Windows CMD Commands Cheat Sheet

Files and Folders Management

COPY - Copies files to another location
DIR – Displays files and folders in current directory
DEL or ERASE - Deletes files
EDIT - Starts file editor
CD - Changes directory
EXPAND - Decompresses compressed files
FC - Compares files and shows the differences between them
FIND - Finds a text string in the file
MD or MAKEDIR - Creates a folder
MOVE - Moves files from one folder to another
PRINT - Prints out the text file contents
RD or RMDIR - Deletes a folder
REN or RENAME - Renames a file or folder
REPLACE - Replaces files in one directory with files of the same name in another directory (overwrite)
ROBOCOPY - Uses an advanced tool to copy files and directories
TREE - Shows directory structure of a disk or folder
TYPE - Displays the contents of text files
OPENFILES – Manages opened local or network files
XCOPY - Copies files and directory trees
Enter fullscreen mode Exit fullscreen mode

Applications and Processes

SCHTASKS - Executes a command or start a scheduled application (Task Scheduler)
SHUTDOWN - Shutdowns or reboots your computer
TASKLIST - Lists the tasks being performed
TASKKILL - Stops or halts a task (to stop a task you use a PID which you can find out from TASKLIST)
REG – Starts registry editor
RUNAS - Launches the task as another user
Enter fullscreen mode Exit fullscreen mode

Disks Management

CHKDISK - Checks disk and shows statistics
DEFRAG – Starts disk defragmentation
CHKNTFS - Displays or changes execution of disk check at boot
COMPACT - Displays and change the compression of files in NTFS partitions
CONVERT - Converts FAT disk volume to NTFS
DISKPART - Displays and adjusts disk partition properties
FORMAT - Formats the disk
FSUTIL - Displays and configures file system properties
LABEL - Creates, changes, or deletes a disk volume label
RECOVER - Recovers data from a bad or damaged disk
VOL - Displays volume label and serial number for the disk
Enter fullscreen mode Exit fullscreen mode

System Information

DATE - Outputs or sets the current date
TIME - Displays or sets the system time
DRIVERQUERY - Displays the current state and properties of the device driver
HOSTNAME - Displays name of the computer
SYSTEMINFO - Shows configuration information about your computer
VER - Allows you to view the Windows version
GPRESULT – Displays current applied group policies (RSoP)
GPUPDATE – Updates group policies
Enter fullscreen mode Exit fullscreen mode

Network

IPCONFIG - Shows information about network interfaces
PING – Sends ICMP requests to the target host, checks host availability
TRACERT - Finds the path for packets traveling over the network
NSLOOKUP - Finds IP address by resource name
ROUTE - Displays network route tables
ARP- Shows a table with IP addresses converted into physical addresses
NETSH – Starts is a network settings control program
GETMAC - Shows the MAC address of the network adapter
TFTP – Starts TFTP client in console
Enter fullscreen mode Exit fullscreen mode

Command Line Setup

CLS - Clears screen
CMD - Displays another command prompt
COLOR - Sets the text and background color
PROMPT - Changes the command line prompt
TITLE - Assigns a title for the current session
HELP – Launches CMD help
EXIT - Exits the command line
Enter fullscreen mode Exit fullscreen mode

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay