0

I use dmesg in Ubuntu heavily. I like the iso time format but I hate typing it out every time, so I use something like this in my .bashrc to set the default time format for dmesg:

# Setup alias for dmesg
alias dmesg="/bin/dmesg --time-format=iso"

Is there a better/proper way of doing this? Per user or globally, I don't care.

dgreene
  • 113
  • 4

1 Answers1

0

dmesg doesn't have a configuration file, so the only way to change its behavior is via command line options. As such, the way you're doing this is just fine.

Matt Zimmerman
  • 371
  • 1
  • 10