We use ps aux
to display the processes of all users. But, we notice here that we don't use the -
sign with options that we were using till now. So, using options without -
is known as BSD syntax to write commands. The other one (one with -
), which we use regularly, is known as Standard syntax to write commands.
ps
command has been in use since the early versions of Unix. When it was written, BSD syntax was in use to write commands. So, when standard syntax came into the scene, we started to use -
with options. But people who used BSD syntax didn't like that they had to modify their programs and habits due to the new syntax.
So, the commands were re-defined with the standard syntax without removing their compatibility with the BSD syntax. So, the commands which are very old (which were written when BSD syntax was in use) like ps
command supports both BSD syntax and standard syntax.
Note that ps -aux
is distinct from ps aux
. Feel free to use man ps
to know more about it.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
No hints are availble for this assesment
Answer is not availble for this assesment
Please login to comment
3 Comments
What is the significance of ? & TTY?
Upvote ShareWhen you run the
ps -aux
command in Linux, the TTY column shows the controlling terminal associated with each process. The TTY column displays the name of the terminal device or virtual terminal (VT) that a process is running on or associated with.For example, if a process is running in a graphical user interface (GUI) session, the TTY column will typically show "?", which indicates that the process is not associated with any specific terminal. If a process is running in a terminal window, the TTY column will display the name of that terminal device or VT, such as "/pts/0" or "tty1".
The TTY column is useful for identifying which processes are running in which terminal sessions, which can be helpful for troubleshooting or managing system resources. For example, you can use the
4 Upvote Sharekill
command to send a signal to a specific process running in a particular TTY session, or use thefg
command to bring a background process running in a specific TTY session to the foreground.ps -aux
Upvote Share