6 Basic Windows Command Lines Everyone Should Know

6 Basic Windows Command Lines Everyone Should Know

Very simple Windows command lines that everyone should know: - Do you think you are a true lover of windows? I would ask you to think twice if you are completely oblivious to the world of commands. To call yourself a true Windows lover, you should have minimal knowledge of widely used basic commands. Read on, to learn all about basic Windows command lines without which you will always be incomplete.



Displays the contents of a unit

1 STEP


  • First of all, open the drive or folder whose contents you want to view, using File Explorer. This is just to get a clear picture. I have chosen to view subfolders in drive D.

6 Basic Windows Command Lines Everyone Should Know

2 STEP

  • Now open Command Prompt. You can open it by searching cmd in the Windows search box. Or you can press Win + R keys together to open the file Run dialog box and type cmd to open it. Once open, navigate to the drive you selected by typing the drive letter followed by a colon. In the example below, I have navigated to drive D:. Press the Enter key once you're done. Now to view the files and folders in this drive, type the command DIR and press the Enter key. Refer to the screenshot below if in doubt.

6 Basic Windows Command Lines Everyone Should Know

change directory

1 STEP

  • To change the current directory, you can use the command CD name_directory. Replace directory_name with the name of the directory you want to change to. You can use the file again DIR command to view subfolders and files.

6 Basic Windows Command Lines Everyone Should Know




2 STEP

  • To go back one level in the current directory or to move to the previous directory, type CD.. and press the Enter key.

6 Basic Windows Command Lines Everyone Should Know


PHASE 3

  • You can also navigate to the subfolder of a folder in one step. For this, type CD folder name subFolderName.

6 Basic Windows Command Lines Everyone Should Know


Create a new folder

1 STEP

  • You can create new folders within a folder using the command mkdir. You can create multiple folders using a single file mkdir. In the screenshot provided I created two new folders using the file mkdir command.

6 Basic Windows Command Lines Everyone Should Know

2 STEP

  • To check if new folders were created in the previous step, you can use DIR or you can use File Explorer to view the drive.

6 Basic Windows Command Lines Everyone Should Know


Create an empty file

1 STEP

  • To create an empty file, you can use the command touch. The touch command is followed by the file name. you can use touch command to create even multiple files in one step.

6 Basic Windows Command Lines Everyone Should Know

2 STEP

  • To see if touch successfully created new files, you can use DIR command or file explorer itself.

6 Basic Windows Command Lines Everyone Should Know

View IP configuration

  • To view the system's IP configuration, open Command Prompt in administrator mode. You can do this by searching Command Prompt in Windows search. when Command Prompt appears in the search results, right-click on the result and choose Run as administrator option.

6 Basic Windows Command Lines Everyone Should Know

Exit command

  • If you want to exit the Command Prompt, just type Exit al Command Prompt and hit enter.

6 Basic Windows Command Lines Everyone Should Know

So these are some of the basic command lines every Windows user should be familiar with. Hope you found the article useful. Stay tuned for more tips, tricks and hacks.

add a comment of 6 Basic Windows Command Lines Everyone Should Know
Comment sent successfully! We will review it in the next few hours.