![]() |
Most of you should be aware of the Terminal in Linux which is a Command-line Interface. However, there are very few individuals who know about the existence of Linux Controlling Terminal. If you are a System Administrator, or a user who interacts with Linux Systems, then knowing about Controlling the Terminal on Linux is very important. This article will discuss the Linux Controlling Terminal along with the way to execute it. What is the Controlling Terminal in Linux?A Simple Linux Terminal is the Command-Line Interface where users can put any command & get the required output from there. However, when you put Linux Commands there & a process is going on, the Normal Terminal will be called the Controlling Terminal. For each of the sessions with a single command, such transformation can be seen. Suppose, you have given the ‘ls’ Linux Command in the terminal to check the list of files, then the Normal Linux Terminal will become the Controlling Terminal on Ubuntu for the ‘ls’ Command. The Controlling Terminal permits you to give inputs through the keyboard & check the output change on the screen. The Controlling Terminal works like the Tree Structure. When you initiate any operation on Linux Terminal Controlling, it becomes the Parent Controlling Terminal. And each & every later operation on it will be considered as the Child Controlling Terminal. In this way, you can move deeper into the Process Controlling in Linux. How to List Processes that Use Controlling Terminal in Linux?Step 1: If you want to List Controlling Terminal Processes, then the following Linux Command should be used. All kinds of sessions initiated by different users will be listed using this command. Command: ps aux
![]() Step 2: If you want to reduce the List Appearance of Controlling Terminal Processes, then the following command is used. Command: ps aux | less
![]() Step 3: If you want to check the first Three Controlling Terminal Processes, then the below-mentioned command will be used. Command: ps aux | head
![]() Why Many Processes can’t utilize Controlling Terminal on Linux?Now, when you list down the processes that are accessing the Control Terminal on Linux, you can see that many processes have the Question Mark Symbol (?) in their Terminal Interface or TTY. This shows that the Operation on Linux is not associated with any kind of Terminal Interface or Controlling Terminal. ![]() When you execute the above commands, there are multiple times when in the TTY Column there are Question Marks (?) are available. Then, you have to understand that it is not an operation that is launched by any user. There are multiple reasons for which you can see such a Question Mark (?) there.
ConclusionIn the end, we can say that the Controlling Terminal on Linux Distributions is nothing but a deeper aspect of the Simple Linux Terminal. There are very simple Linux Commands are present to check all the Sessions associated with Linux Controlling Terminal. The Controlling Terminal in Linux will be best needed in Linux Process Management. What is a Controlling Terminal in Linux – FAQ’sWhat is a Controlling Terminal in Linux?
How to check processes using Controlling Terminal in Linux?
Why do some processes have Question Mark (?) in the TTY Column of the Linux Controlling Terminal?
|
Reffered: https://www.geeksforgeeks.org
TechTips |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 27 |