Skip to content

This Repository Contains mostly used CMD Commands.

License

Notifications You must be signed in to change notification settings

cambridgeitcollege/CMD-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Windows Command Prompt (CMD) Commands Guide

Introduction

Welcome to the Windows Command Prompt (CMD) Commands Guide! In this comprehensive guide, you'll find a vast collection of Windows CMD commands ranging from beginner to advanced levels. CMD is a powerful tool for interacting with your Windows operating system through a command-line interface.

This guide is designed to help you learn and master the essential commands, making you more efficient in managing your Windows system. Whether you're a novice or an experienced user, you'll find valuable information here.

Commands

File and Directory Commands:

  1. dir - List files and directories in the current directory.
  2. cd - Change the current directory.
  3. mkdir - Create a new directory.
  4. rmdir - Remove a directory.
  5. copy - Copy files or directories.
  6. move - Move files or directories.
  7. del - Delete files.
  8. ren - Rename files or directories.
  9. type - Display the contents of a text file.
  10. find - Search for a specific string in a file.
  11. attrib - Change file attributes.
  12. tree - Display directory structure as a tree.
  13. xcopy - Extended copy command with more options.
  14. chkdsk - Check and repair disk errors.
  15. fc - Compare two files or sets of files.
  16. comp - Compare the contents of two files.
  17. robocopy - Robust file and directory copying tool.
  18. sfc - System File Checker to repair corrupted system files.
  19. findstr - Search for specific strings in files.
  20. more - Display the contents of a text file one page at a time.
  21. sort - Sort the contents of a text file.
  22. xcopy /e - Copy directories and subdirectories, including empty ones.
  23. compact - Compress or decompress files on an NTFS partition.
  24. xcaccls - Backup and restore NTFS permissions.
  25. subst - Associate a drive letter with a directory.
  26. deltree - Delete a directory and its subdirectories.
  27. cipher - Display or alter file encryption on NTFS volumes.
  28. fsutil - File system utility for managing various file system settings.
  29. openfiles - Display or disconnect open shared files and folders.

Network Commands:

  1. ipconfig - Display network configuration information.
  2. ping - Test network connectivity.
  3. tracert - Trace the route to a remote host.
  4. netstat - Display network statistics.
  5. nslookup - Look up IP addresses and domain names.
  6. hostname - Display or set the computer's hostname.
  7. arp - Display and modify the ARP cache.
  8. route - Display or modify the routing table.
  9. telnet - Connect to remote hosts using Telnet.
  10. ftp - Transfer files to/from remote FTP servers.
  11. net - Manage network resources.
  12. netsh - Network Shell for configuring network-related settings.
  13. net use - Connect or disconnect a computer from shared resources.
  14. net view - Display a list of available network resources.
  15. net share - Create, delete, or manage shared folders.
  16. net session - View and manage network sessions.
  17. net time - Synchronize the computer's time with a network server.
  18. netdom - Domain-related management tool.
  19. route print - Display the routing table with more details.
  20. nbtstat - Display statistics and current connections using NetBIOS over TCP/IP.
  21. ipconfig /flushdns - Flush and reset the DNS resolver cache.
  22. ipconfig /release - Release the current DHCP configuration.
  23. ipconfig /renew - Renew the DHCP configuration.
  24. netsh firewall - Configure the Windows Firewall.
  25. netstat -a - Display all active network connections and listening ports.

System Information and Management:

  1. systeminfo - Display detailed system information.
  2. tasklist - List running processes.
  3. taskkill - Terminate processes or applications.
  4. msconfig - System Configuration Utility.
  5. regedit - Registry Editor.
  6. eventvwr - Event Viewer.
  7. services.msc - Services management console.
  8. shutdown - Shut down or restart the computer.
  9. gpupdate - Update Group Policy settings.
  10. ver - Display the Windows version.
  11. systeminfo - Display detailed system information.
  12. gpresult - Display Group Policy settings for the current user.
  13. powercfg - Configure power management settings.
  14. bcdedit - Boot Configuration Data Editor for managing boot options.
  15. dxdiag - DirectX Diagnostic Tool for troubleshooting DirectX issues.
  16. driverquery - List installed device drivers.
  17. msinfo32 - System Information utility.
  18. mmc - Microsoft Management Console for creating custom management tools.
  19. taskmgr - Task Manager for managing running processes.
  20. perfmon - Performance Monitor for system monitoring.
  21. wmic - Windows Management Instrumentation Command-line tool.
  22. schtasks - Schedule tasks to run at specific times or events.

User Account Management:

  1. net user - Manage user accounts.
  2. net group - Manage user groups.
  3. net localgroup - Manage local groups.
  4. whoami - Display the current user.
  5. runas - Run a program as another user.
  6. control userpasswords2 - User Accounts control panel.

Disk and Storage Management:

  1. diskpart - Disk Partitioning tool.
  2. format - Format a disk drive.
  3. defrag - Defragment disk drives.
  4. diskmgmt.msc - Disk Management console.
  5. cleanmgr - Disk Cleanup utility.

Miscellaneous Commands:

  1. cls - Clear the screen.
  2. echo - Display text on the screen.
  3. date - Display or set the system date.
  4. time - Display or set the system time.
  5. help - Get help on commands.
  6. color - Change the console text and background color.
  7. assoc - Display or modify file extension associations.
  8. shutdown - Shutdown or restart the computer.
  9. shutdown /s - Shutdown the computer (immediate).
  10. shutdown /r - Restart the computer (immediate).
  11. shutdown /h - Hibernate the computer (if supported).

Contribution

We welcome contributions! If you'd like to contribute to this project, please check out our Contribution Guidelines.

Code of Conduct

Please review our Code of Conduct before participating in this project.

License

This project is licensed under the License.