//Random Tip
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow

You are viewing a random entry, refresh your browser to change.

Have you ever wanted to check the content of the first virtual console without switching to it with "Ctrl+Alt+F1"? Or the second console of a remote server? Or would you like to send something to the user working at the third virtual console (not via wall command)?

The GNU/Linux kernel provides two character devices for such tasks:

* /dev/ttyX - represents X. virtual console
* /dev/vcsX - represents X. virtual console text contents

So, to answer the questions use these commands:

1. cat /dev/vcs1
2. ssh root@server 'cat /dev/vcs2'
3. echo "something" > /dev/tty3


View Comments »




Comments 

Add your comment

Comments are currently disabled
bubo
That's a nice one, although you got to be root to be able to do it... thanx
Posted 2009-02-01 21:18:44

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit