Skip to content

Instantly share code, notes, and snippets.

@DennisLfromGA
Created November 25, 2013 21:14
Show Gist options
  • Save DennisLfromGA/7649026 to your computer and use it in GitHub Desktop.
Save DennisLfromGA/7649026 to your computer and use it in GitHub Desktop.
Lookup current & active vt's (graphical chroots) in a Chromebook / Crouton environment.
curtty="`cat /sys/class/tty/tty0/active`"
echo "tty's on vt's are:"
ps -CX -CXorg -otname= | sort | nl | sed "s/$curtty/$curtty <--/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment