Ubuntu 18.04 – shell commands Processes

Process is a program that is being executed. It is a running instance for a program

You can see the top processes running on your system by using top. Write top at your terminal and press enter.

List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

You can also use ps ax. You will see all the processes

List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ
List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

What are those colums:

  • PID – is the Process ID
  • TTY – is the terminal that the process was started. ? means that process wasn’t started from a terminal
  • TIME – is the total time that the CPU is used by this process
  • COMMAND – is the command that started this process.
  • STAT – is the process state

If you want to check for a process running you can combine it with grep. Firefox is open and I will try to find it in the process list

ps ax | grep firefox
List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

you can also use the following:

ps -fC firefox
List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

Kill a process

kill a process with PID. You need to find the PID of the process and then use kill

kill 3695
List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

You can kill a process by using killall and specifying the name of the process

killall -9 firefox
List find a kill a process, <span>Ubuntu 18.04 – shell commands Processes</span>, KandZ

THE END!!!

66370cookie-checkUbuntu 18.04 – shell commands ProcessesUbuntu 18.04 – shell commands Processes

Related posts

One Thought to “Ubuntu 18.04 – shell commands Processes

Comments are closed.