WINDOWS:
#To display windows system version
ver
#Print current working directory pathname.
echo %cd%
#Make a new directory
mkdir mynewfolder
OR
md mynewfolder
#Delete a directory
rmdir nameoffolder
OR
rd nameoffolder
#Change current directory to another directory
cd nameoffolder
#Change directory to parent directory
cd ..
#List the contents of current directory
dir
#Run the Python Interpreter
python
#Run the Python program stored in the 'program.py' file
python program.py
#Compile a Java program
javac program.java
#List all content in current directory
ls
#To exit the terminal
exit
#Displays the system time
time
#Display the host name
hostname
#Displays the current date
date
#Display all current TCP/IP network configuration values and refresh Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings
ipconfig
#Deletes a folder
rmdir folderName
#Run the Java program stored in the 'program.java' file
java program
#Rename a file or folder
rename originalfilename newfilename
OR
rename orginialfoldername newfoldername
#Move a file from one location to another
move ..\folder1\filename.txt ..\folder2\
(..\folder1\filename.txt -> the path of the file)
(..\folder2\ -> the path of the folder to move to)
#Copy a file from one location to another
copy ..\folder1\filename.txt ..\folder2\
(..\folder1\filename.txt -> the path of the file)
(..\folder2\ -> the path of the folder to copy to)
#Delete a file
del filename
OR
erase filename
#Clear command prompt window
cls
#Display the contents of a text file
type filename
#Display the tree structure of a directory
tree
#Set or Display the system date
date
#Set or Display the system time
time
#To start a new instance of the command interpreter
cmd
#To exit the command prompt window
exit
#To get system information
systeminfo
#To get IP configuration
ipconfig
#To Display or configure the active code page number
chcp