Own short commands in linux

Are you like me that you have a habbit to listen to music when programming in linux and you struggle with mplayer to stream a radiostation?

In your home folder your have a file that names .bashrc if your don’t have one just create one. That file in loaded when you log on and here you can create short commands.

Mine look like this.
.bashrc

alias litefm='mplayer -playlist http://www.litefm.se/live.m3u'
alias radioseven='mplayer -playlist http://www.radioseven.se/128.pls'
alias xterm='xterm -bg black -fg white'
alias jonathan='cvlc http://10.0.20.7/mjpg/video.mjpg &'
alias framsidan='cvlc http://10.0.20.8/mjpg/video.mjpg &'

Add these line to your file and logout and now login and try command litefm in your terminal. And now your are streaing a radiostation from Trollhättan – Sweden.

Leave a Reply