Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
read this little article
and when you get to the part about adding another directory after the colon : you will add:
/home/piresl/msn/msn/
if that is in fact the directory structure, although i can't see why you have two msn directorys .... but if that is how you got it, then thats what you will add ...
and if you did want to make a symlink to amsn in your home folder, then while in your home folder (/home/piresl) you can type :
ln -s msn/msn/amsn amsn
You have 3 options:
1) Copy the executable in a directory on your path (usually if it's not a distribution-specific program but should be shared amongst all users on the machine this would be /usr/local/bin) - this has to be done as the 'root' user. (eg: cp <full path of executable> /usr/local/bin)
2) Symlink the executable to a directory in your path (same notes as for (1) but using ln -s <full path of executable> /usr/local/bin)
3) Edit your path to include the directory where the executable is (eg for bash shells: export PATH=$PATH:<directory where your file is> - note that it has to be the fully qualified path, not a relative path) You can automate this step by editing your shell configuration file (for bash, this is ~/.bash_profile) so that your path is set every time you log in.
I guess that you are in your home directory where you enter that command, (pwd will clear that up), so likely, the exact commands below will work.
If you want any user to be able to execute it...
su - root
<enter password>
ln -s /home/piresl/msn/msn/amsn /usr/bin/amsn
otherwise, just for piresl,
open a console
cp .bash_profile .bash_profile_orig
pico .bash_profile (note any text editor to open the file)
navigate to the line like
PATH=$PATH:$HOME/bin
and change it to
PATH=$PATH:$HOME/bin:$HOME/msn/msn
NOTE: other users will not be able to run this unless they have access to your directory. If only you, it is a don't care. Why did you install it there instead of as root in /usr/bin or /usr/local/bin?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.