Windows command prompt program (CMD) is a program that allows you operate your computer using DOS commands. In command prompt , the keyboard is the only hardware device used. The mouse and joystick are not used here but you get a higher control of your computer using command prompt.
Command prompt is highly user unfriendly as you need to know specific commands for a specific activity not like in the windows where you just have to move the mouse and tap the keyboard.

Opening a command prompt
To open a command prompt on a windows computer system is quite easy. You will be done in just three (3) steps
Step 1: Click on the start button
Step 2: Type “cmd”
Step 3: Click enter on the cmd of double click your mouse to open.

12 useful commands

1.     Dir: this is the command used to view the contents within the current directory.
Volume in drive C has no label.
Volume Serial Number is 6CAD-BA66
Directory of C:
09/09/2014  03:40 PM    <DIR>          Intel
07/14/2009  04:20 AM    <DIR>          PerfLogs
09/12/2014  08:25 AM    <DIR>          Program Files
09/26/2014  11:46 AM    <DIR>          Program Files
09/09/2014  03:08 PM    <DIR>          Users
09/11/2014  01:21 PM    <DIR>          Windows
0 File(s)              0 bytes
6 Dir(s)  50,287,083,520 bytes free

2.     Cd: this displays the name of all changes in a directory.

3.     Del: this command is use to delete one or more files from a directory. The name and the file format are added after the command.
C:UsersHPDesktop>del text.docx

4.     Help: are you lost in some command? Or have you forgotten the syntax of some command? This command shows you all the syntax for a command.
C:UsersHP>net /help
The syntax of this command is:

5. Color: this command aids in changing the color of the foreground and background. To use this command you add alphabets after it. Like ‘a, b, c, d, etc’ to get the color you like.
C:UsersHP>color a (green)
C:UsersHP>color b (blue)
C:UsersHP>color c (red)

6. Cls: the command line might sometimes look so clumsy and u might want to clear the screen, this command will do just that for you.

7. Date: going around the control panel to set a date might be a little tedious but with the use of this command it will be just cool.
The current date is: Thu 10/02/2014
Enter the new date: (mm-dd-yy)

8. Move: this is the command used to move files from one directory to another. The name and file format is placed after the command.

9. Copy: To make a copy of a file, use the copycommand. The following command creates a backup copy of our program. This is especially useful when you modify a working program, but might want to revert back to the original version if your modifications don’t succeed.
C:HPhello> copy HelloWorld.bak
C:HPhello> dir
Volume in drive C has no label.
Volume Serial Number is C8C7-BDCD
Directory of C:HPhello
02/10/2014  08:59 PM    DIR            .
02/10/2014  08:59 PM    DIR            ..
02/03/2014  11:53 PM               126
01/17/2014  01:16 AM               256 readme.txt
2 File(s)            382 bytes
3 Dir(s)

10. del: Subsequently, you might want to clean up useless files. The del command deletes a file.
C:introcshello> del HelloWorld.bak
C:introcshello> dir
Volume in drive C has no label.
Volume Serial Number is C8C7-BDCD
Directory of C:introcs
02/10/2005  08:59 PM    DIR            .
02/10/2005  08:59 PM    DIR            ..
02/03/2005  11:53 PM               126
01/17/2005  01:16 AM               256 readme.txt
2 File(s)            382 bytes
3 Dir(s)

11. Shutdown: sometimes you might want to shutdown, restart or hibernate the computer with the command prompt.
Shutdown/s (shutdown the computer).
Shutdown/r (restart the computer).
Shutdown/h (hibernate the computer).

12. Net user:  are you logged on someone else computer and you need help in knowing the number of users logged on to the computer then this command will help a lot.
C:UsersHP>net user
User accounts for \RICHARD-PC
Administrator            Gerald                   Guest
The command completed successfully.

13. exit: this command is used to exit the Command Prompt program and close the terminal window.


You can now play around with the cmd and feel free to ask me for more cmd prompts

Be the first to comment

Leave a Reply