Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix '-no-headers' typo in the ps flags #31

Merged
merged 1 commit into from
Jan 25, 2017
Merged

fix '-no-headers' typo in the ps flags #31

merged 1 commit into from
Jan 25, 2017

Conversation

stgarf
Copy link
Contributor

@stgarf stgarf commented Jan 19, 2017

... and simplify options (-Afl) passed to ps (down to just -A) since we're just passing the output straight off to wc -l anyways for a count.

-f causes the command arguments to be printed.

user@host:~$ ps -f
UID        PID  PPID  C STIME TTY          TIME CMD
user    12572  1754  0 02:51 pts/5    00:00:00 -bash
user    13344 12572  0 02:58 pts/5    00:00:00 ps -f

-l Long Format.

user@host:~$ ps
  PID TTY          TIME CMD
12572 pts/5    00:00:00 bash
13170 pts/5    00:00:00 ps

user@host:~$ ps -l
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
0 S  1000 12572  1754  0  80   0 -  5329 wait   pts/5    00:00:00 bash
0 R  1000 13173 12572  0  80   0 -  7290 -      pts/5    00:00:00 ps

...neither are needed and possibly may result in unnecessary load on smaller devices ☹️ .

@willemdh willemdh merged commit 3b2b311 into OutsideIT:master Jan 25, 2017
@stgarf stgarf deleted the patch-1 branch March 1, 2017 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants