Skip to main content

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)


Comments