You can use the logger tool. The simple command to log is
logger My syslog message from console.
You can use the logger tool. The simple command to log is
logger My syslog message from console.
Sometimes you may find lot of characters trncated due to 80×25 tty size by default. Especially when you want to open some log files. Below command will help to set the row and column size.
stty cols 132 rows 34
will set the column width to 132 and rows 34.