Alias creation


Recommended Posts

I edited my .bashrc file in my home dir and added

list='ls -la'

line to the file. This alias works fine after I logout and log back on.

Is there any way to activate the alias created in .bashrc without logging out?

Thanks

Link to comment
Share on other sites

the command you're looking for is "source <whateverfile>" - in simple terms it tells the system to reload <whateverfile>. So once you've edited and saved your .bashrc file just enter the command "source ~/.bashrc" and be amazed that all your new changes work.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.