You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page contains all the most useful commands and shortcut-keys for windows.
NOTE: Incase you want to use the touch command avaible in linux, over windows. You can download the `touch.cmd` file from the files folder and make it available at all directories
This displays a list of the files and folders contained in it
DRIVE_CHARACTER:
If you wanted to change the drive from C: to D:
mkdir "NAME"
Create a folder with specified name
md "NAME"
Create a folder with specified name
cls"
Clear Screen
ren "OldName" "NewName"
Renaming files
copy "FileAddress" "Folder/FileAddress"
Copy files to the new folder, or even rename the file name to something new. eg: address/newname.jpg
xcopy /s /i OldFolderAddress NewFolderAddress
Copy folder to new directory.The /s parameter ensures that all the directories and subdirectories are going to be copied, except the ones that are empty. The /i parameter creates a new directory if the destination folder does not exist and copies all the files in it.
del FileAddress
Deletes a file
rd FolderAddress
Deletes a Folder
tree
Displays the tree directory of the particular folder
title
Change the Title of the Command Prompt window
prompt
Change the prompt text of the Command Prompt window
color
Change the colour of the Command Prompt text
time
Displays Current System time
ver
Displays the Windows version
cd . > [filename]
An alternative to touch command in unix, creates a null full with specified name
Displays the list of running processes in Windows.
taskkill /f /im [process name]
This command lets you kill (or stop, or terminate, if you prefer) processes
taskkill /f /pid [process ID]
This command lets you kill (or stop, or terminate, if you prefer) processes
chkdsk /f
Check your drive for errors and attempt repairing them
sfc /scannow
While the previous command helps check errors on drives, when it comes to scanning the integrity of system files and repairing them, there’s another command you should use: sfc. Not only that it checks all essential files in the operating system, but it also replaces incorrect versions of them with the right ones.
format [drive letter]: /fs:[file system] /q
Format Drive, The /q argument allows you to do a quick format, but you can leave it out if you want to run a regular format. eg: format h: /fs:ntfs /q
diskpart
It allows you to see, manage, create, and delete partitions from your drives.
systeminfo
It collects and displays information about your computer hardware (like the processor, RAM, and network cards installed) and Windows installation (version, install date, hotfixes applied, etc.).
Ping is the basic network-related CMD command you should use to test whether your PC can reach a destination device through the network and/or the internet
tracet [IP Address/URL]
Sometimes, using ping is not enough to gather the information, the more advanced command tracert (trace route) allows you to trace the path Internet Protocol packets take to their destination
netsh wlan show profiles
Shows the WiFi_SSID names
netsh wlan show profile name=WiFi_SSID key=clear
The purpose is to help you find the password of a wireless network to which you’ve previously connected.