Originally Posted by student23
I would like to list all processes or services that start with the letter s. I have tried running the command service --status-all | grep s* and also the ps command with the same syntax but no success. Thank you in advance for your responses.
Also try 'pgrep <substring>'
You can further limit the output with 'pgrep <substring> -u <user>' also.
This will give you a list of pids which you can use to look up app names (using readlink) in /proc/<pid>/exe links.
These 'exe' links always return the actual running file with the full path.
So there are several options here.
Great question! And great answers!