Learn useful command prompt commands for Beginners

command prompt Beginner Tricks 
 Every beginner programmer need to learn  command prompt tricks . it will helps you to upgrade and install new packages and access files easily.

Open command prompt in your system.

as soon as open your prompt  looks like this.


once open  your in default directory 
C:\Users\CSC> 

first learn how to access drive Or Jump to drives for example i am in "C Drive" i want to jump "E Drive" how to do that

How to Access Drive?
 Jump "C Drive" to  "E Drive" how to do that

 Type E: and hit Enter button 
then the prompt looks like this 


Now i want to see what are the Folders and files in "E: Drive". how to do that
type Dir  and hit Enter it will list all the Folders and files in E Drive.

 in the above list how to find which is folder and which is file 
  Which one have <DIR> it is Folder.
  Which one have Number it is file.


How to Access Folders?

Now i want to open a folder in E drive  
     first type cd then type folder name i want to open SQL Folder  i will type like this.
 Cd SQL  then hit Enter


how to come back existing directory to previous directory?
Type Cd .. then hit Enter 
again back to E drive

How to open folder having special cymbals or space between name?

in the list i want to open css& html folder . how to do that 
if u type cd  css& html   its wrong it will through Error.
correct command  is Cd "css& html"

08/20/2018  06:44 AM    <DIR>          Blender
08/05/2018  10:46 PM         1,001,558 break- Template.zip
03/14/2019  10:22 PM    <DIR>          css& html
01/20/2019  08:04 PM    <DIR>          Desktop files
03/07/2019  06:13 PM    <DIR>          Editing collections

How to open a file in current directory? 
 first check what are the files are there in the folder. using the Dir command
 in bellow list i want to open highlighted file    html mouse pointer.docx how to do that.
Simple copy past file name between Quotation marks( " " ) and hit Enter.

E:\css& html>"html mouse pointer.docx"



How to change console window name ? 
    I wan to change this name to Hello world. type bellow command in your window and hit Enter, check the window title.
 Title Hellow World

How to change console window Text color? 
Type color help
  it will list all the colors 
    0 = Black       8 = Gray
    1 = Blue        9 = Light Blue
    2 = Green       A = Light Green
    3 = Aqua        B = Light Aqua
    4 = Red         C = Light Red
    5 = Purple      D = Light Purple
    6 = Yellow      E = Light Yellow
    7 = White       F = Bright White

then type which color code you want 
i want red color . simply type Color 4 and hit enter

How to exit Command prompt?

Type Exit and hit Enter

Comments