cmd, press Enter.Path = the exact location of a file or folder on your computer. Example:
C:\Users\John\Documents\PythonThe prompt usually shows where you are. Example:
C:\Users\John>means you are inside the John folder.
See current path
cdGo to a specific folder using full path
cd C:\Users\John\DocumentsMove inside a subfolder
cd ProjectsGo up one folder
cd ..Switch drives
D:List all files and folders
dirList with details (date, size, etc.)
dir /wList including hidden files
dir /aMake a new folder
mkdir myfolderDelete an empty folder
rmdir myfolderCreate an empty file
type nul > file.txtDelete a file
del file.txtCheck system information
systeminfoCheck your IP address
ipconfigTest internet connection
ping google.comSee current user
whoamiClear screen
clsCheck where you are
cdCD, cd, and Cd are same).cls) → clear the screen.help to see a list of available commands.Type help <command> for more info. Example:
help dirCheck Python installation
python --versionRun 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.)
cd C:\Users\<YourName>\Documents
mkdir PythonPractice
cd PythonPractice
type nul > hello.py
dir
python hello.py