Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
But why would you use ax instead of -A if grepping? Since -A doesn't display the arguments, grep won't match itself. I prefer ps -Alw or ps -AH for most ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    But why would you use ax instead of -A if grepping? Since -A doesn't display the arguments, grep won't match itself. I prefer ps -Alw or ps -AH for most of my ps usage. ps -Al | sort +9n is a favorite of mine.

  2. #12
    Linux User
    Join Date
    Jul 2002
    Location
    Daytona Beach, FL
    Posts
    487
    ok, slight ditto on the grep..

    I also pass 99% of my ps calls to grep, but i just do

    ps -A | grep

    because i dont usually care who is running it, but the aux options may be what wassy needed because he may have cared who was running what
    majorwoo

    Quiet brain, or I\'ll stab you with a Q-tip.

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    It still seems wrong to explicitly first select all processes with tty and then all without tty. I'd use "ps -A u" even though it's one character longer. Of course, ps aux is easier to write fast. That does speak in favor of it.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •