A process is a series of steps to perform some specific tasks. In terms of computer science, a process is a program undergoing execution. Often Multiple processes run at a time. One process is associated with one program and each process has different components that perform their respective tasks. Different properties are associated with each process. These are:
In this article, we will see how to start and kill any process through the command line input. For this particular guide, I am using the Linux distributed system, Ubuntu 20.04 LTS. Follow the guide completely for a thorough understanding.
To start any process through CLI, you have to follow the below steps:
$ processname
For this particular article, the process name is "firefox' in the above command. When you run this command, it will open the firefox process in the background just as shown in the below-attached image.
$ firefox -v
Running the above will display the version of the firefox process being opened in the background. It will give you the following display:
$ which firefox
It will display the following path concerning my system:
To kill, terminate, or stop a process through the command-line input, run the following command:
$ ps
The command will display the PID of all ongoing processes. In this case, we took “firefox” as an example. So, look for it. Running the above command will you the following details
$ kill PID
As you can see in the above-attached screenshot, the PID of firefox is "5739". So the command will be:
$ kill 5739
Executing the above command will kill, terminate, or stop the process "firefox" running in the background.
The article will help you understand the concept of process, how to start and terminate the process through command line input in a very initial and easy manner. If you are a beginner and learning things on your own, then this article is highly beneficial for you as it explains the guide in simpler words through easy to grab practical demonstration.
Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…
ISPConfig is an open-source control panel that allows users to manage multiple servers from a…
As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…
Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…
Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…
phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…