End a process from the command line and use the CMD command to close the process

Updated on technology 2024-03-22
4 answers
  1. Anonymous users2024-02-07

    Commonly used ones, run first, and then enter the following command.

    Go to the command line: cmd

    Registry: regedit

    Group Policy: Check the local IP address: ipconfig

    System configuration utility (this is used to close and open boot projects): That's all for msconfig that is commonly used.

  2. Anonymous users2024-02-06

    1. Press the "win+r" key on our computer, open the run, enter cmd, and click OK.

    2. After entering the command line, we can type "tasklist ?".Press Enter to see how to use each parameter of the tasklist command.

    3. Enter the command "tasklist" to view all the process information that is running now, including process name, pid, memory usage, etc.

    4. We find the PID number that needs to end the process, enter "TaskKill PID Number F", and press Enter.

    5. We can see that the process with a PID of 2856 has ended.

    6. We can also end the process by the name of the process, enter "taskkill in process name f", and the process can be closed.

  3. Anonymous users2024-02-05

    1. First of all, open the start --- run--- enter cmd, and open the dos command line as shown in Figure 1

    2. Enter tasklist svc in the cmd command line, and you can see that the computer is currently running the Round Travel Liquid Program, as shown in Figure 2:

    3. In the above figure, you can see that the programs that are currently running on the orange computer are listed. For example, programs such as others can be seen in the list of programs in the figure above. The PID on the right is the ID number of the running program, and the program name and ID number can be used to open the program.

    4. Enter the car, and the program will be closed (f is the meaning of forced closure, and im refers to the name of the program. )

    5. As can be seen from Figure 3 above, the process with PID number 692 has been terminated. This is consistent with the procedural pid in Figure 2.

  4. Anonymous users2024-02-04

    Example: If you run four vim processes in the background on the Linux platform, run the following command to terminate all four vim processes at the same time:

    ps -efww|grep vim |grep -v grep|cut -c 9-15|xargs kill -9

    Description: Pipe character "|" is used to separate two commands, and the output of the command on the left side of the pipe character is used as the input to the command on the right side of the pipe character.

    ps -efww" is the command to view all processes. In this case, the retrieved process will be used as input to the next command "grep", note that when you want to end another program, please replace the vim in the above command with the name of another program.

    grep -v grep" is to remove the process that contains the keyword "grep" from the listed processes.

    cut -c 9-15" is the 9th to 15th character of the input line, which is exactly the process number pid.

    The xargs command in "xargs kill -9" is used to take the output result (pid) of the previous command as an argument to the "kill -9" command and execute the command.

    kill -9" will forcibly kill the specified process, thus successfully clearing the process with the same name.

Related questions
6 answers2024-03-22

In the Windows operating system, you can use the ping command to check the connectivity of the line. The following table describes how to use the ping command and its parameters: >>>More

13 answers2024-03-22

Running, microsoft-edge:

Note the colon that follows. >>>More

4 answers2024-03-22

MySQL exports the specified data table and data [command].

18 answers2024-03-22

Add the path to the file you installed under the system path, and you're done.

3 answers2024-03-22

statement in the defined variables!