Collection of CMD Commands and Their Functions that You Must Know!

Are you a website owner ? DomaiNesia cheap VPS users? Or do you work in front of a laptop or computer every day ? Of course youarefamiliar with CMD commands. Of course, there are several shortcuts that you can use using the CMD command that will make it easier for you to complete the work or problems you are experiencing with your laptop.

Collection of CMD Commands and Their Functions that You Must Know!

Collection of CMD Commands and Their Functions that You Must Know!

Today you will add a lot of “vocabulary” to the CMD commands that you can apply. The following is a collection of CMD commands and their functions that you must know!

Understanding CMD

What is CMD

The CMD (Command Prompt) command is a feature available in the Windows operating system that allows users to interact with the system via the command line. CMD is based on text commands where users can enter commands in the form of text that will be executed by the operating system.

With CMD, users can perform various tasks, such as running programs, managing files and folders, configuring system settings, and more. CMD commands allow users to control and interact with the Windows operating system directly through a simple but reliable and efficient text interface.

CMD function

Command Execution

CMD allows users to run various commands and scripts via the command line. Users can use CMD commands to run programs, manage files and folders, manipulate system settings, configure networks, and more. A simple example is to open a coding application such as Visual Code Studio. You can open it by typing thecode command.(with a dot) then [enter].

System Check and Diagnostics

CMD provides access to a variety of system diagnostic tools that allow users to check and monitor system health. Users can check system information, view a list of running processes, check network connections, and track possible problems or errors.

Task Automation

CMD allows users to create and run command scripts to automate specific tasks. By using command scripts, users can automate complex and repetitive command sequences, saving time and effort.

Network settings

CMD provides commands that allow users to manage network settings. Users can configure IP addresses, set up network connections, ping other IP addresses to check connectivity and perform various other network tasks.

System Restore

CMD can be used to perform system recovery in emergency situations or if a problem occurs. Users can run recovery commands to fix boot problems, recover lost or damaged files, repair damaged disk sectors, and perform other system restores.

How to Use CMD

How to use CMD or Command Prompt is very easy, to be able to use it you only need to open the interface or visual of Command Prompt then type the command line you want to run. The following is how to use CMD:

  1. Search for Command Prompt (CMD), you can search on your Windows desktop, laptop or computer as in the image below. You can type “Command Prompt” or “CMD”
  2. The Command Prompt interface will open.
  3. Enter the command you want to run.

CMD Command Set

This is the part you have definitely been waiting for. The following is a collection of CMD or Command Prompt commands that you can use:

Dir

The “dir” command prompt is used to display a list of files and folders in the current directory. When executed, this command will display information such as the file name, size, and modification date of each item in the directory.

CD

The “cd” (change directory) command is used to change the active directory. By using this command followed by the name of the directory you want to go to, you can move to that directory.

Mkdir

The “mkdir” (make directory) command is used to create a new directory within the current directory. You only need to specify the name of the directory you want to create after this command.

Rmdir

The CMD command “rmdir” (remove directory) is used to delete empty directories. If the directory you want to delete contains other files or directories, you must use the “del” command to delete them first.

Copy

The “copy” command prompt command is used to copy one or more files to a specified location. You need to specify the name of the file you want to copy, followed by the location to which the file will be copied.

Del

The “del” (delete) command is used to delete one or more files. You can specify the name of the file you want to delete after this command.

Move

The command prompt command “move” is used to move files or directories to another location. By using this command followed by the name of the file or directory you want to move, as well as the location to which you want to move it.

Ren

The “ren” (rename) command is used to rename a file or directory. You need to specify the name of the file or directory you want to change, followed by the desired new name.

Type

The “type” command prompt command is used to display the text contents of one or more files. When executed, this command will display the text contents of the specified file.

More

The CMD “more” command is used to display text from one or more files sequentially with the paging feature. When a file is displayed, you can use the space bar to view a full page of text at once.

Find

The “find” command is used to search for specific text in one or more files. You need to specify the keywords you want to search for after this command, followed by the name of the file you want to search for.

Ipconfig

The “ipconfig” command is used to display computer network configuration information. When executed, this command will display the IP address, subnet mask, default gateway, and other network information associated with the active network adapter.

Ping

The “ping” command is used to send a packet to a specific IP address to check the network connection.

Tracert

The “tracert” command is used to trace a packet’s path through the network until it reaches its destination. By using this command followed by the IP address or domain name you want to track, you will see a list of hops or jumping points that the packet went through to reach its destination.

Netstat

The command prompt command “netstat” is used to display network connection information and statistics. When executed, this command will display a list of ports currently in use, IP addresses currently connected, and the status of other network connections.

Nslookup

The CMD command “nslookup” is used to retrieve DNS information about a domain name or IP address. By using this command followed by the domain name or IP address, you can obtain information such as the associated IP address, DNS server name , and so on.

Tasklist

The “tasklist” command is used to display a list of processes currently running on the system. When executed, this command will display the process name, process ID, user running the process, and associated memory usage.

Taskkill

The “taskkill” command is used to end or stop a running process. You need to specify the ID of the process you want to stop after this command.

Systeminfo

The “systeminfo” command is used to display detailed information about the system configuration. When executed, this command will display information such as operating system version, hardware specifications , network configuration, and more.

Sfc /scannow

The “sfc /scannow” command is used to check the integrity of the file system and repair damaged files. Using this command, the system will scan system files and repair or replace corrupted files with healthy versions.

Chkdsk

The command prompt command “chkdsk” is used to check and repair errors on the disk. By using this command followed by the name of the drive you want to check, the system will check the integrity of the disk and repair it to the extent possible.

Format

The CMD “format” command is used to format a drive or partition. You need to specify the name of the drive or partition you want to format after this command. Please be careful, because formatting a drive or partition will erase all the data on it.

Diskpart

The “diskpart” command is used to manage disks, partitions, and volumes. When executed, this command will open the diskpart utility which allows you to create, delete, format, and organize partitions and volumes on the disk.

Defrag

The CMD command “defrag” is used to defragment the drive. By defragmenting, fragmented files will be rearranged so they can be accessed more efficiently.

Ciphers

The command prompt command “cipher” is used to encrypt or decrypt files and folders. When executed with appropriate options, this command can provide data protection by using strong encryption.

Compact

The “compact” command is used to compress files or folders into NTFS compression format. By using this command, the size of a file or folder can be reduced to save storage space.

Attrib

The “attrib” command is used to set file or folder attributes. When executed with the appropriate options, this command can change attributes such as read-only access, archives, and system attributes.

Assoc

The “assoc” command is used to associate a file extension with the appropriate program. By using this command followed by the file extension and program you want to associate with, you can determine the default program that will open files with that extension.

Taskmgr

The “taskmgr” command is used to open the Task Manager. Task Manager is a system utility that displays a list of running processes, CPU and memory usage, and allows users to manage processes and system performance.

Msconfig

The CMD command “msconfig” is used to open System Configuration. Using this command, you can configure startup settings, services, and boot settings on the system.

Shutdown

The CMD command “shutdown” is used to shut down or restart the system. By using appropriate options, such as /s to shutdown or /r to restart, you can control the system shutdown or restart operation.

Apply CMD Commands and Streamline Your Activities

Using this CMD command can help make activities on the computer more efficient. By learning and understanding the available commands, users can manage the Windows operating system more quickly and effectively.

These commands allow users to perform various tasks, such as managing system settings, managing user accounts, setting task schedules, performing system repairs, and more.

Leave a Reply

Your email address will not be published. Required fields are marked *