DEV Community

Cover image for CMD commands every programmer should know
Jon Snow
Jon Snow

Posted on

CMD commands every programmer should know

The command prompt is a powerful command line interface that is available in the Windows operating system and enables users to execute commands by typing text.

If you want to open the command prompt, you can easily access it by opening the start menu and searching for “cmd”, or by simply pressing the Windows key + R, typing “cmd” and pressing enter. Additionally, you can also access it through PowerShell or through the run dialog box that is available in all versions of Windows.

Commands

1 Create a new folder

mkdir - Make a Directory & create a new folder on the working directory

mkdir [folderName]
Enter fullscreen mode Exit fullscreen mode

2 Change directory

cd - Change directory lets you change and access the directory

cd [folderName]
Enter fullscreen mode Exit fullscreen mode

3 List Files

dir - lists the files & folders contained in the current working directory

dir
Enter fullscreen mode Exit fullscreen mode

4 Rename

ren - To rename files and folders

ren [folder] [newFolderName]
Enter fullscreen mode Exit fullscreen mode

5 Copy Files

copy - copies the file (file.txt) to the destination (copyfile.txt)

copy [file] [destination]
Enter fullscreen mode Exit fullscreen mode

6 Delete Files

del - Deletes files and files in a folder

del [file]
Enter fullscreen mode Exit fullscreen mode

to learn more about these visit
https://www.w3schools.com/whatis/whatis_cli.asp


For more information

  1. Check my GitHub profile
    https://github.com/amitSharma7741

  2. Check out my youtube channel
    https://www.youtube.com/channel/UCTBG1pUL9HtP4ntbj63Fngw

  3. Check out my Fiver profile if you need any freelancing work
    https://www.fiverr.com/amit_sharma77

  4. Check out my Instagram
    https://www.instagram.com/fromgoodthings/

  5. Linktree
    https://linktr.ee/jonSnow77

  6. Check my project




Support us

Don't miss the amazing video we've embedded in this post! Click the play button to be inspired


Top comments (0)