systemctl-whoami
Show units that processes belong to. tldr-pages
On Linux
Linux
Show units that processes belong to. If no PID is specified, shows the unit the systemctl command itself is invoked in.
Show the unit of the current shell (where systemctl is running)
systemctl whoamiIdentifyShow the unit of the current shell in user service manager (services managed for your login session)
systemctl whoami --userIdentifyShow the unit a specific process belongs to
systemctl whoami process_idIdentifyShow the units for multiple processes
systemctl whoami process_id1 process_id2 ...Identify