ShortcutNinja

command prompt Shortcuts

Command Description
cd {directory_path} Change directory
dir List contents of the current directory
cd .. Move up one directory level
cd / Move to the root directory
mkdir {directory_name} Create a new directory
del {file_name} Delete a file
rd {directory_name} /s /q Delete a directory (including all subdirectories)
copy {source} {destination} Copy a file or files
xcopy {source} {destination} /e /h Extended copy with subdirectories and hidden files
move {source} {destination} Move a file or files
ren {old_name} {new_name} Rename a file or directory
type {file_name} Display the contents of a text file
echo {text} Display text or enable/disable echoing of commands
ipconfig Display network configuration information
ping {host} Ping a host to check network connectivity
tracert {host} Trace the route to a host
systeminfo Display detailed system information
tasklist List all running processes
taskkill /F /IM {process_name} Terminate a running process
sfc /scannow Scan and repair system files
chkdsk /f Check and repair disk errors
netstat Display network statistics
whoami Display the current user
assoc Display or modify file extension associations
ftype Display or modify file type associations
shutdown /s /f /t {timer} Shutdown with force (set timer in seconds; if none, type 00)
shutdown /r /f /t {timer} Restart with force (set timer in seconds; if none, type 00)