Tips for life, tips for tech

For a custom built/compiled package, normally Linux won’t recognize it be default (like just typing matlab to open matlab).
There is a simple trick to do that (I play with Linux for almost 2 years but I just discovered this, how lame):
1. Copy the palce of the BIN folder (where the execute file located).
2. In home folder, Ctrl+ H to reveal hidden file, search for .bashrc
3. Edit it by adding this line:
export PATH=’path to dir’:$PATH
4. Then log out and log in again.
5. Enjoy, and feel like a genius.

Reply in English

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: