Complete Command Prompt /CMD /Windows Terminal Tutorial – Compile C in CMD
| cmd codes | explanation | example |
|---|---|---|
| dir | To see the list of the directory in the same directory | |
| cd | change directory | |
| dir/a | ||
| mkdir nameOfFolder | to make a folder | |
| cd .. | to go back to previous folder/directory | |
| cd ../.. | to go to the root directory | |
| rmdir | to remove a directory/folder without file to text included | |
| cd (Press Tab Here) | change directory easily by pressing Tab and watching folder name | |
| cd b(press Tab Here) | change directory easily by pressing Tab and watching folder name searching with the beginning letter | |
| rmdir /s folderName | remove the folder with files included | |
| echo >a.txt | crate a txt file named a | |
| echo writeSomeText > b.txt | create a text file named b including some text | |
| b.txt | open b.txt file with cmd | |
| writeNewText > b.txt | write new text replacing the existing text/content | |
| echo newTextToAdd >> b.txt | write new texts without replacing existing text/ content | |
| copy a.txt b.txt | to copy text from a.txt to b.txt file | |
| move b.txt new.txt | to move b.txt file to new.txt and delete b.txt ifle | |
| nameSoft –version | To know the version of a installed software |
If you want to more abut the code of cmd , you can go to the following link and download the pdf book.
Thanks you.
