Back to the main page

Formated file (example /etc/motd)

Sometimes there is the need for special formating in the file, like /etc/motd

It can be done, with escape sequence in front of the code.

When using vi , to insert the escape sequence, use Control-V, ESC key.
It puts ^[ into the file.
Then add another [ and the code. Here is the example from vi session.

Here is how looks like when you cat file, or if this is /etc/motd, the user sees this upon login.

If you use putty, and don't see blinking, then enable it.

Back to the main page