Windows summary ~ commands; related operations; windows detailed explanations, etc.; continuous update


Windows summary



Insert picture description here





1. Basic Windows commands and usage

Click the title below, it will automatically jump to the detailed explanation of the command ~

1. Command syntax
2. Command tips
3. cd command
4, md command
5, rd command
6, del command
7, cls command
8, dir command
9, ren command
10, services.msc command
11, regedit command
12, taskmgr Command
13, control command
14, tasklist
15, mount an existing disk to the directory operation
16, about user command summary



Two, Windows environment variables

Click the title below, it will automatically jump to the detailed explanation of the command ~

1. The role of Windows environment variables.
2. View system variables.
3. Add system variables.
4. Modify environment variables.
5. Delete system variables.
6. The role of PATH environment variables.
7. Notes on PATH environment variables.
8. Examples of PATH environment variables.











1. Basic Windows commands and usage

1. Command syntax

Main usage:

        Command [parameter] [option]



2. Command tips

Main usage:

(1) Automatic completion;

        Command: tab

(2) View the history of commands;

        命令:doskey /history



3. The cd command

Main usage:

(1) Current directory;

        Command: cd.

(2) Return to the superior directory;

        Command: cd…

(3) Switch to the desktop;

        Command: cd Desktop

(4) Go back to the directory of the current "disk";

        Command: cd \

Insert picture description here

(5) To switch the disk, directly enter the drive letter followed by a colon;

        Command: c:

Insert picture description here

(6) Switch to subdirectories;

        Command: cd dirname

Insert picture description here

4. md command

Main usage:

(1) Create a directory at the current location;

        Command: md dirname



5. rd command

Main usage:

(1) Delete the directory at the current location;

        Command: rd dirname


6, del command

Main usage:

(1) Delete the file at the current location;

        Command: rd filename


7, cls command

Main usage:

(1) Clear the screen;

        Command: cls


8, dir command

Main usage:

(1) Display all directories and files at the current location;

        Command: dir

        #Note: <DIR> means directory

Insert picture description here

9, ren command

Main usage:

(1) Rename the file name;

        命令:ren filename newfilename


10. Services.msc command

Main usage:

(1) Open the service list of Windows;

        Command: services.msc


11. Regedit command

Main usage:

(1) Open the service registry;

        Command: regedit


12. taskmgr command

Main usage:

(1) Open the task manager;

        Command: taskmgr


13, control command

Main usage:

(1) Open the control panel;

        Command: control


14, tasklist command

Main usage:

(1) Display all service processes of the computer;

        Command: tasklist


15. Mount an existing disk to the directory operation

Main usage:

(1) Each partition in the windows directory has a root, and all partitions can also be mounted to a disk;

(2) Right-click My Computer on the desktop and select Manage;

Insert picture description here

(3) Create a mount directory. I created a D_copy directory on the C drive as the mount directory;

        The command to switch to the C drive is: c:

        Create the D_copy directory on the C drive: md D_copyInsert picture description here

(4) Let's go back to the computer management and disk management opened in the first step, select the disk you want to mount, right-click and choose to change the drive letter and path;

Insert picture description here

(5) Select Add, select the mount directory created in the second step (of course you can create a new one), and click OK;

Insert picture description here

(6) At this time, we open the mount directory we created and find that the folders and files in the directory are all files in the mounted disk, Success;

Insert picture description here

16. About user command summary

Main usage:

(1) View user name;

        Command: net user

(2) View user groups;

        Command: net localgroup

(3) Create users;

        Command: net user username/add

(4) Create a group;

        Command: net localgroup user group name/add

(5) Delete users;

        Command: net user username/del

(6) Delete the group;

        Command: net localgroup user group name/del

(7) Add groups to users;

        Command: net localgroup group name user name/add

(8) Modify the password;

        Command: net user username and password










Two, Windows environment variables

1. The role of Windows environment variables

        Refers to some variables in the operating system, mainly the configuration path;
        you can modify the environment variables to configure the computer (mainly to configure some paths);


2. View system variables

(1) View system variables;

        Right click on the computer-Properties-Advanced System Settings-Environment Variables

(2) The environment variable interface is divided into two parts;

        The upper part is the user environment variable (only valid for the current user) and the
        lower part is the system environment variable (valid for all users, global valid)

(3) Suggestions;

        It is recommended to modify only the user's environment variables, not the system environment variables


3. Add system variables

        Right-click on the computer-Properties-Advanced System Settings-Environment Variables
        in User System Variables-New User Variables-Variable Name USERNAME-Variable Value admin-Make sure that
        an environment variable can have multiple values, use between value and value; separate (semicolon) (Must be English input method)


4. Modify environment variables

        Right-click the computer-Properties-Advanced System Settings-Environment Variables,
        select the one you want to modify, and click Modify


5. Delete system variables

        Right-click the computer-Properties-Advanced System Settings-Environment Variables,
        select the one you want to delete, and click Delete


6, the role of the PATH environment variable

        The path environment variable saves one path, which can be multiple paths. When we enter a command or access a file on the command line, the system will first look for it in the current directory, and if it finds it, execute it or open it directly. , If not, then go to the path of the path environment variable to find the location until the location is found. If the path is not found, the error is not an internal or external command, nor an executable program or batch file,
        so we can add some frequently needed The path of the accessed file or program is added to the path environment variable so that we can access it anywhere,


7. Precautions for PATH environment variable

(1) If there is no path in the environment variable, you can add it manually;

(2) The path environment variable is not case sensitive;

(3) After modifying the environment variables, the command window must be restarted;

(4) Use semicolons to separate multiple paths;


8. Examples of PATH environment variables

(1) We create a directory home on the desktop, and create an adb file in the directory;

(2)-Right-click on the computer-Properties-Advanced system settings-Environment variables, add the path environment variable, click Add, our desktop opens the copy path, you can add the path of the user and system variables, depending on the situation;

Insert picture description here

(3) After adding, reopen the command line window and access abc.txt in any office. If you can access it, it means success!


Guess you like

Origin blog.csdn.net/weixin_44793172/article/details/107309004