Windows Command Prompt - Help


1. Opening Command Prompt

  1. Press Windows Key + R, type cmd, press Enter.
  2. Or search “Command Prompt” in Start menu.

2. Paths and Current Directory


3. Navigation Commands

  1. See current path

    cd
  2. Go to a specific folder using full path

    cd C:\Users\John\Documents
  3. Move inside a subfolder

    cd Projects
  4. Go up one folder

    cd ..
  5. Switch drives

    D:

4. Listing Files


5. File and Folder Management

  1. Make a new folder

    mkdir myfolder
  2. Delete an empty folder

    rmdir myfolder
  3. Create an empty file

    type nul > file.txt
  4. Delete a file

    del file.txt

    6. Common Practical Commands

  5. Check system information

    systeminfo
  6. Check your IP address

    ipconfig
  7. Test internet connection

    ping google.com
  8. See current user

    whoami
  9. Clear screen

    cls
  10. Check where you are

    cd

7. Tips


8. Tips for Working with Python

  1. Check Python installation

    python --version
  2. Run a Python script

    python myscript.py

    (You must be inside the folder where myscript.py is located, or give the full path like C:\Users\John\Documents\myscript.py.)


Example Practice

cd C:\Users\<YourName>\Documents
mkdir PythonPractice
cd PythonPractice
type nul > hello.py
dir
python hello.py