1. Enter the C drive:
C:
2. Enter the folder text:
CD text
3. Return to the previous folder:
Cd..
4. Create folder text: (mkdir can be executed on WINDOW,LINUX,MAC)
mkdir text
MD text
5. Create an empty file App.js in the current directory:
- (where "." Represents a newline, ">" represents output)
Echo. > App.js
- Write content to app.js file: var a = 1;
var 1; > App.js
- Append content to app.js file: var b = 2;
var 2; >> App.js
6. Another way to create a app.js file: (recommended)
Copy Con app.js
- Write content to app.js file: var a = 1;
var 1;
- Append content to app.js file: var b = 2;
var 2;
- When the input is complete, execute the following command:
Ctrl + Z
- Press ENTER, the file is created, if the file is established, press CTRL + C, exit the copy thread, the file will not be built
7. Clear the Running commands:
Cls
Window cmd command line for personal use--succinct