Top Useful CMD Commands You Should Know.

The Command prompt is familiar to all windows user and it uses for many purpose. Some of us don’t know the uses of Command Prompt. Because when we are using an attractive interface but the truth is command prompt is very useful for all windows user. Many tasks can be done through CMD which we can do with our attractive interface or sometimes many things can be don’t which we can’t do in your attractive interface. Most of the windows users are don’t know about the uses of command prompt and most of regular windows user are don’t know the commands of CMD.

There are many commands which are very helpful for users and they make your task easy. Command prompt might be bit complex but you can make your task easy in one command line. And there is no longer reason to use long way for that very task. Most interesting thing about command prompt is, CMD is case sensitive you can use lower and upper both case in your command.

Top CMD useful commands.

Top useful CMD commands.

Learning some basic command for saving your few seconds is not bad idea. In this article we mention list of commands which are very helpful for all users. Here we mention some important command with syntax, Example and there parameters. We try to give you better ideas about command prompt command with their useful parameters. Some commands carry many parameter but we are only providing useful parameters.

READ ALSO:-How to enable & disable Administrator account? : 3 ways

Top commands for Command Prompt in Windows.

Assoc

If you don’t about your file system or file extension and uses of that very file then you can try this command to see the list of extension and details about file extension. It also use to change the associated file extension of file type with file extension.




Syntax

C:\>assoc

C:\>assoc [.ext] = [file type]

Parameter

.ext      : The file extension

fileType  : The type of file

Example

assoc

Attrib

Attrib is use to display or change the file attribution of any file and folder.

Syntax

attrib <+attribute/-attribute> </s> </r> </h> </a> <path of file/folder>

Parameters

+  : Turn on attribute

-: Turn off attribute

S  : System/secure

H  : Hidden

A  : Archive

R  : Read-Only

Example

C:\>attrib +h +s C:\tele.text

READ ALSO:-Tricks with Command prompted (CMD)

Chkdsk

This command represent as Check Disk and it use to check and repair your disk problem. Normally it will perform in 3 stages but when we use parameters for better performance.




Syntax

chkdsk <drive letter:>

Parameters

/r  : Scan for and attempt recovery of bad sector.

/f  : Automatically fix file system error on the disk.

Example

chkdsk D: /r /f

Cls

It uses to clear the screen of command prompt.

Syntax

cls

Example

cls

READ ALSO:- How to reset your forgotten login password in windows? : 2 ways

Cleanmgr

This command represents to clean up the temporary files, recycle bin and offline data.

Syntax

cleanMgr /d <drive>

Parameter

/d driveletter: Select the drive that you want Disk Cleanup to clean.

Example

cleanMgr C:\

CMD

Use to start new command prompt or shell.

Syntax

cmd

Example

cmd

Copy

Copy command helps you to copy your files and folder with command line.

Syntax

Copy<source path> <destination path>

Parameter

Source path  : It contain the path of file which you want to copy.

Destination path  : it contain the path of file where you want to past the file.

/d  : It allow to encrypted file begin copied to save as decrypted file at the destination.

/a  : Stand for ASCII text file.

/b  : Stand for binary file.

/v  : Verifies the copied file written correctly.

Example

copy “D:\new folder\test.txt” “E:\text.txt”

READ ALSO:-11 ways to make your pc better using Windows Group Policy.

Convert

This command helps you to convert the file system a FAT to NTFS.




Syntax

Convert <drive letter> /fs ntfs

Parameter

/fs ntfs  : It is use to convert the disk or drive in to NTFS file system. It required field in this command.

/v  :it use to diplay the massages during the converting process.

Example

convert  E:\  /fs:ntfs /v

Diskpart

The Diskpart is a text-mode command interpreter which uses to manage objects like disk partition or volume. Diskpart have the own interface on which all diskpart commands will work.

Syntax

It contains many commands which are shown here. You can see the command here…

diskpart

Parameters

Active  : It use to make partition active which is selected. It informs the Basic Input/Output System (BIOS) that the partition or volume is a valid system partition or system volume.

Assign  : It use to assign a drive letter or mount point to the partition or volume.

Clean  : It’s specific that each and earning part of disk is zeroed and it completely delete all data from partition or volume.

Create Primary Partition  : Actualy create partition contain many command but we are going to use primary partition command.

List Disk  : This command use to see the list of all online disk or offline disk which are used in your system, they are your internal disk drive or removal disk.

Select partition [n]  : This command use to select the disk with disk no.

Example

 DISKPART> san policy=OnlineAll 
 DiskPart successfully changed the SAN policy for the current operating system. 
 
 DISKPART> LIST DISK 
 Disk ### Status        Size    Free    Dyn Gpt
 -------- ------------- ------- ------- --- ---
 Disk 0   Online         80 GB     0 B
 Disk 1 Offline        30 GB  1024 KB 
 
 DISKPART> select disk 1 
 Disk 1 is now the selected disk. 
 
 DISKPART> ATTRIBUTES DISK CLEAR READONL
 DISKPART> ONLINE DISK
 DiskPart successfully onlined the selected disk.

READ ALSO:-How to create portable Windows To Go USB drive?

Diskcopy

It use to copy whole disk at a time with all containing files.

Syntax

diskcopy <source drive><destination drive> /v

Parameters

Source drive  : It contain the source drive letter which you want to copy.

Destination : It contain the drive where you can paste your copied drive.

/v  : specifies to verify the copied files, that those files are copied correctly or not.

Example

diskcopy C:\tele.txt D:\tele.txt /v

Exit

Exit command use to exit from current script or cmd.exe program and return to started program or program manager.

Syntax

Exit

Parameters

/b  : Use to exit from current batch script.

Example

Exit

Help

Help command provides you information about the commands of command prompt command, which are internal/external commands.

Syntax

Help <command name>

Parameters

command name /?  : It will display about that particular command.

Example

Help /?

Provides help information for Windows commands.

READ ALSO:-How to make bootable USB drive in Windows?

Ipconfig

This command helps you display IP/TCP of all networks and refresh Dynamic Host Configuration Portal (DHCP) and Domain name setting. It shows all things without any parameter. If you want to some extra thing then use parameters.
Syntax

Ipconfig

Parameters

/all  : this command will display full configuration information.

/renew <adapter>  : This command is use to renew the ip adapter for the specific adapter.

Example

ipconfig /all

Label

Label helps you to edit and rename the name of disk or drive.

Syntax

Label <drive:> <name>

Label </MP> <drive:> <name>

Parameters

Drive  : It contain the drive letter of volume or disk.

/MP  : This command use to mount point or volume name. it will show the serial no of your disk. If volume name is specified then /MP is unnecessary.

Example

Label D: tele

Label /mp D: tele

Logoff

Logoff command uses to logoff your system with force.

Syntax

Logoff  </f> </n>

Parameters

/f  : This command helps you to close this program with force but it will ask user to save or un-save data.

/n  : This command helps you to logoff your system also but it will don’t ask to user for save data and I will close without confirmation message.

Example

Logoff  /f

Logoff  /n

Move

Move command helps to move files and folders in signal commands one place to other.




Syntax

Move <optinal> <source> <destination>

Parameters

Source  : Path of files and folder before move.

Destination  : Path of files and folder after move.

/y  : This command help you when files and folder option is getting over write. it will show you the message.

/-y  : This command also helps you when file and folder is getting over write, but it will don’t show you them massage. And it makes that file or folder duplicate.

Example

Logoff  /y

Logoff  /-y

Ping

Ping command will help you to make test your network connection. If ping got successful then it will return to the ip address.

Syntax

Ping <ip address> <option>

Parameter

Options

-t  : this command helps ping to ping with destination ip. You can use –c to stop.

-4  : force to use IPV4

-6  : force to use IPV6

Example

Ping 126.148.111.1

PowerCFG

It is use to control the Power configuration setting Hibernate/ standby mode.

powerCFG <optinal>

Parameters

Optional

-l

-list  : It will show the current login user power configuration with active power menu.

-hibernate [on] [off]  : This command use to enable or disable the hibernate menu.

-aliases  : This command will show their corresponding GUIDs.

Example

Powercfg –aliases

Powercfg –l

Ren

Use to rename the files and folders.

Syntax

Ren <path of file .txt> <new name .txt>

Parameters

Path  : Give the full path of files(files with extension) and folders with name.

New name  : Give the name of file with extension and folder name as you want.

Example

Ren D:\test tests

Ren D:\test.txt tests.txt

Replace

Use to replace the file if there is two file in same directory with same name.

Syntax

Replace <path .exe> <destination> </a> </p> </r> </w>

Replace <path .exe> <destination> </s> </p> </r> </w> <u>

Parameters

/a  : Add any missing file.

/p  : Prompt for confirmation 

/r  : Replace even read-only file

/s  : Include all subfolders of the

/w  : Wait/Pause

/U  : Update file older than the source

Example

Replace D:\ test\text.exe D:\tests /s

Shutdown

Use to shut down your computer. You can stop this time count with /a.
Syntax

Shutdown <logoff_option> </t> <time>

Parameter

Logoff_option

/l  : Logoff

/s   : shutdown

/r  : Restart

Time  : Use time to shut down your computer after.

Example

shutdown /s /t 3600

 

These all useful commands, but the fact is CMD carry thousands of command and all commands are external and internal. External commands may be used under the CMD shell, PowerShell, or directly from Start-Run.

That’s! Not enough. Get more updates of Tele Trick Mania. Like us on Facebook and subscribe us to get updates in your inbox.

About Aashirvad Kumar

Aashirvad Kumar is a full-time blogger and Founder of Tele Trick Mania http://teletrickmania.com. Computing is his passion and enjoys learning new tips and tricks related to technology. He wants to give you better ways of doing special things in our system. You can contact him for review the products and for buying guide before buying.

Leave a Reply

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