All the pretty horses
sounds very much like all the running processes. Well, it does if you slur and clip the last sss.
All the running processes
All the processes run by you
Grepping for particular process.
[user@comp ~]$ ps aux | grep screen
user 1527 0.0 0.1 429476 11664 ? Sl Nov14 0:11 gnome-screensaver
user 19804 0.0 0.1 415516 12696 ? Sl 07:54 0:00 gnome-screenshot --interactive
user 20066 0.0 0.0 109112 840 pts/0 S+ 08:07 0:00 grep --color=auto screen
The bolded text is what I was searching for.
HOWTO:
How to find the internal commands of the processes/programs/applications in linux. Can use these commands to assign keyboard shortcuts. Can use process IDs to kill applications/programs
All the running processes
ps aux | less
- gives you the full command or name of the process, which you can then use to create keyboard shortcuts or just kill processes with their PID numbers
- piping the ps aux to less makes the display not run amok on your screen and you can scroll the output with your keyboard
All the processes run by you
ps -u username
- drawback is it doesn't give you the full command
Grepping for particular process.
ps aux | grep screen
- simple, you pipe the ps aux through grep.
- in the example above I was trying to search for what the screenshot utility was called. The output is below:
[user@comp ~]$ ps aux | grep screen
user 1527 0.0 0.1 429476 11664 ? Sl Nov14 0:11 gnome-screensaver
user 19804 0.0 0.1 415516 12696 ? Sl 07:54 0:00 gnome-screenshot --interactive
user 20066 0.0 0.0 109112 840 pts/0 S+ 08:07 0:00 grep --color=auto screen
The bolded text is what I was searching for.
HOWTO:
How to find the internal commands of the processes/programs/applications in linux. Can use these commands to assign keyboard shortcuts. Can use process IDs to kill applications/programs