Monday, July 17, 2017

My favourite alias in .bashrc on Ubuntu

Colorizing and handling system/kernel logs
  • alias logread='cat /var/log/syslog | ccze -A'
  • alias logclear='sudo truncate -s 0 /var/log/syslog'
  • alias logsave='cat /var/log/syslog | ccze -h > ~/log.html'
  • alias dmesgread='dmesg | ccze -A'
  • alias dmesgclear='sudo dmesg -c'
  • alias dmesgsave='dmesg | ccze -h > ~/log.html'
You will have to install ccze (sudo apt-get install ccze)


2009 DREAM said...

thanks for this usefull article, waiting for this article like this again. alpha one coupler

Post a Comment