Created
November 28, 2025 15:21
-
-
Save jpralves/4d3f56655aabb82c25fb677d1faf0e2c to your computer and use it in GitHub Desktop.
get Session type in linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loginctl show-session $(loginctl list-sessions -j | jq -r '.[] | select(.class=="user") | .session') -p Type | sed 's/.*=\(.*\)/\1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment