Chapter One: The construction of JAVA environment variables: how to use DOS commands

Bold style## day 01 Chapter 1 Construction of JAVA Environment Variables
1. Commonly used DOS command window commands:
1.1 How to open the dos command window?
You can press win + "r" to pop up the run window and enter cmd and
press Enter to open the dos command window.
1.2 What is a DOS command window?
You can enter DOS commands only in the DOS command window. In the original Windows computer, there was no graphical interface, only a DOS command window. In other words, a series of operations such as file creation, editing and saving can be completed by executing the DOS command window.
1.3 mkdir abc (this command is not necessary to master) make directory (create a directory)
1.4 By default, navigate to the DOS command window after opening

 > 这里是引C:\Users\Administrator>

1.5 How to copy content under DOS command?
Win7:
Right-click at any position———>Mark———>Select the content to be copied———> Right click to copy to the clipboard.
Win10:
Select directly from left to right, and then right click to copy It’s on the clipboard
(isn’t it amazing, hee hee)
1.6 How to switch drive letters?
Just enter the drive letter directly:
c: Enter
d: Enter
1.7 How to switch directories? (It is very important for JAVA programmers and must be mastered)
Use the cd command to switch directories: What does cd mean?
How to use the change directory cd command and what is the syntax format?
Important: Path includes relative path and absolute path in Windows system
1> So what is absolute path? Listen to me telling you slowly.
In windows operating system, all paths whose starting point is a drive letter are absolute paths. For example:
C:\Users\Administrator>
D:\VS>
2>What is a relative path?
Relative path: The relative path must be relative to the current "location".
Method: The relative path must not start from the drive letter.
1.8 cls clears the screen
1.9 dir displays the contents of the current directory
1.10 exit Exits the DOS command window.
I will update it later, so look forward to it.
END

Guess you like

Origin blog.csdn.net/weixin_49458828/article/details/108934906