So today I read How To Switch Between TTYs Without Using Function Keys In Linux and learned about the `chvt` command which can change the virtual terminal on the host’s physical console. This is gonna come in handy!
Tag Archives: tty
What to do if you accidentally press Ctrl+S in Vim
If you press Ctrl+S in Vim (i.e. because that’s hard-wired for ‘save’) your terminal may lockup, depending on how it’s configured.
If you want to know why, have a read here. If you just want to get on with life, press Ctrl+Q!
Everything is easy when you know how.
Cleaning log files before printing them to the console
Reply
If you send non-printable characters to your TTY you might corrupt it, and that’s no fun.
So before you print log files which might contain dodgy data to a console clean it by piping it through tr like this:
tr -c '\11\12\15\40-\176' '?'