My Cumulus shortcut commands.

  • 5
  • Article
  • Updated 8 months ago
  • (Edited)
Bash allows you to easily create command aliases so I can customize my workflow around key activities. Makes it easier to remember where commands live.

This is my .bashrc alias that I use when navigating around Cumulus Linux

# $HOME/.bashrc
showl2config='less /etc/network/interfaces'
showl3config='less /etc/quagga/Quagga.conf'
showlog='less -N /var/log/syslog'

Bash has auto-completion which helps me a lot because I forget commands. To get to my list of shortcut commands I type "show", followed by tab, and I can see the options.

# show[tab]
showcpu showtemp showl2config showl3config showlog

I update my $HOME/.bashrc file with new shortcut commands as my experience grows

I normally push my bash alias files to the switch using "scp"

"my-laptop-pc# scp cumulusw/bashrc stanley@switch10:.bashrc"

I will update this in the future as I learn more shortcuts.

Photo of skamithi123


  • 100 Points 100 badge 2x thumb

Posted 3 years ago

  • 5
Photo of Pete B

Pete B, Official Rep

  • 2,774 Points 2k badge 2x thumb
Did you ever come up with any more shortcuts, skamithi? :)