Linux Commands Examples

A great documentation place for Linux commands

chvt

change foreground virtual terminal

Synopsis

chvt N


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
sudo chvt 1; sudo chvt 7
0
source
            
suspend|hibernate)
chvt 1
;;
resume|thaw)
chvt 7
;;
esac
exit 0
0
source
            
if [ "8" = `vtcurrent` ]; then
chvt 7
else
chvt 8
fi

description

The command chvt N makes /dev/ttyN the foreground terminal. (The corresponding screen is created if it did not exist yet. To get rid of unused VTs, use deallocvt(1).) The key combination (Ctrl-)LeftAlt-FN (with N in the range 1-12) usually has a similar effect.

How can this site be more helpful to YOU ?


give  feedback