![]() More specifically, you can use it to determine the resources used by an application. The ps command comes in handy when debugging an application. Gdm 1194 - /usr/libexec/gnome-session-binary -autostart /usr/share/gdm/greeter/autostart Gdm 1180 - /usr/bin/dbus-daemon -session -address=systemd: -nofork -nopidfile -systemd-activation -syslog-only Gdm 1157 - /usr/libexec/gdm-wayland-session gnome-session -autostart /usr/share/gdm/greeter/autostart Gdm 1126 - /usr/lib/systemd/systemd -user Root 1 - /usr/lib/systemd/systemd -switched-root -system -deserialize 24Īnother example to print the processes owned by the gdm user. ![]() For example, to display all the processes owned by the user root, run a command like this: $ ps -u root -o user,pid,cpu,cmd $ ps -ef -o pid,cmdġ /usr/lib/systemd/systemd -switched-root -system -deserialize 24Īnother useful option is -u, which allows you to filter the processes displayed by user ID. This can be useful when using ps in a shell script. Use the -o option to specify which columns you would like to be displayed. You can also customize the output of the ps command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |