DIrectorty command in command prompt

DIR - command

  • dir  ---> Display a list of file and subcategories in a directory.

    i had explain in below image
    JUST TYPE
     dir
     


    THEN YOU GET LIST OF THE DIRECTORY IN C: DRIVE
     BECAUSE WE ARE IN A C: DRIVE
    so it display directory available in C: DRIVE

    i have explained in below image
     
  • YOU CAN GET LIST OF DIRECTORY

    IF YOU WANT TO SEE ANOTHER DRIVE DIRECTORY
    TYPE  DRIVENAME:
          EX.  f:  or  e:  (give your drive name)
    cd --->change current directory not drive
      
    just type 
     EX.   cd Desktop (whatever give directory name is need to must be exist in your  current drive)

    i have described in image

    then click and your directory change




















    here you can see desktop before the command

    mkdir --->make new directory in your current directory
            mkdir directory_name
                    EX.  makdir jayho


    click Enter 
    then see your DESKTOP
    DIRECTORY IS CREATED



    rmdir --->remove directory
                       
            rmdir directory_name
                    EX.  rmdir jayho
     Then see your desktop your directory is deleted

Comments