A process is a program that is currently being executed. When a command is issued, it creates a new process to run the command. Each process is assigned a unique 5-digit process ID (PID) to identify and keep track of it. Processes can run in the foreground, where they receive keyboard input and display output, or in the background, where they run without blocking other processes from starting. The ps command can be used to view and list running processes along with their PID and other details. Processes can be terminated using Ctrl-C for foreground processes or the kill command along with the PID for background processes.
Related topics: