Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

Beginners Questions • Re: Tty consoles and their peculiarities...if any

$
0
0
Hello,

If you are in doubt, you can use the following command to check which virtual consoles are in use (and, consequently, which are unused and you could switch to them to open a terminal on them):

Code:

$ ps ax | grep tty
In this example, a tty1 is running a bash sell, tty2 and tty3 are running a login prompt, tty7 is running the X server:

Code:

$ ps ax | grep tty    774 tty1     Ss     0:00 /bin/login -p --    796 tty7     Rsl+   0:44 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch   8274 tty1     S+     0:00 -bash   8455 tty2     Ss+    0:00 /sbin/agetty -o -p -- \u --noclear - linux   9258 tty3     Ss+    0:00 /sbin/agetty -o -p -- \u --noclear - linux   9339 pts/0    S+     0:00 grep tty
Hope this helps.

Statistics: Posted by Aki — 2025-01-10 19:20



Viewing all articles
Browse latest Browse all 2901

Trending Articles