Serge
Serge

Reputation: 2139

How to get session ID for process using terminal in OS X?

I see that activity Monitor doesn't have "session ID" column as we can see in task Manager on Windows. How to get session ID for particular process using terminal in OS X?

Upvotes: 2

Views: 3576

Answers (1)

Paul Keen
Paul Keen

Reputation: 1420

You can run in terminal:

ps -p [process pid] -o sess=

Please replace [process pid] by your process id

Upvotes: 2

Related Questions