There are a few commands that can list current process activity, "top" & "ps" are the most common one in use. The command "top" give an interactive view of the list of process running currently. But the command "ps" gives a more friendly output for scripting or text parsing. It also gives a lot of parameters to filter the output. One of the common parameters that I've always use is "ps aux". It list all the current process running with headers and information. By the way, "ps" stands for process status.
Usually, the process status output is pass to "less", a pager for ease of reading. Often, the "COMMAND" column of "ps aux" output, is truncated at the end of the terminal width. This behavior prevents the full process name from displaying. One thing good about this is, the output are not wrap so it won't mess up the output display. But most of the time, we'll want to view the full output.
There are 2 things to try in order to get the full output. First, try telling the pager (in this case, "less") don't chop the long lines after the terminal width, using parameter "-S".
Showing posts with label Job Control. Show all posts
Showing posts with label Job Control. Show all posts
2010-09-29
2009-04-25
How to force quit or stop a program
After running a job, only to find out later that it is stuck at some point and even Control-C cannot stop it.
e.g. a infinite loop script, X program that stuck in the X window & etc.
e.g. a infinite loop script, X program that stuck in the X window & etc.
Subscribe to:
Posts (Atom)

