Home > System Tutorial > LINUX > body text

How to terminate useless processes in Linux system?

王林
Release: 2024-01-16 18:18:05
forward
593 people have browsed it

We can close processes that are not used in the Linux system. Let’s take a look at the detailed tutorial below.

This article describes how to shut down a process in the Linux operating system.

How to terminate useless processes in Linux system?

1. Open the ubuntu operating system, ctrl alt t -> Enter the terminal.

How to terminate useless processes in Linux system?

2. Enter ps, the command is used to view the currently running processes.

How to terminate useless processes in Linux system?

3. Currently, there are three processes under this terminal: bash, a.out, ps

PID TTY TIME CMD

2745 pts/1 00:00:00 bash

3960 pts/1 00:00:00 a.out

3961 pts/1 00:00:00

ps We will close the a.out process.

4. Find the process number of the a.out process through ps PID is 3960

kill -s 9 3960

You can close a.out. If you want to close other processes, just replace 3960 with the process number of other processes.

How to terminate useless processes in Linux system?

5. ps, you can see that the a.out process has been killed.

How to terminate useless processes in Linux system?

The above is the detailed content of How to terminate useless processes in Linux system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template