What's new

Permanent alias

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

slytho

Regular Contributor
Hi!

In which config file can I define permanent aliases? Any alias I set up in a shell is temporary only and not there anymore after I close the current session.

Usually there should be a file .bash_aliases in the home directory, but I don't think it works this way?

Rgds
 
If using my firmware, put them in this file:

Code:
/jffs/configs/profile.add

With the original firmware, if you enable Optware, you can use /opt/etc/profile.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top