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.
i added one line in my personnel .profile, how it should be stored permanently?
$ vi .profile
#!/bin/ksh
EDITOR=nedit
ls=/usr/bin/ls
. /ap/dsl/env/profiles/.profile.common export LD_LIBRARY_PATH =$LD_LIBRARY_PATH:/home/users/apujahar/STC/Spirent_TestCenter_3.30/Spirent_TestCenter_Application:wq!
$ echo $LD_LIBRARY_PATH
/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/lib:/usr/5lib:/usr/lang/SC1.0:/ap/local/5:/ap/local/lib :/home/users/apujahar/STC/Spirent_TestCenter_3.30/Spirent_TestCenter_Application
but when i closed this session and opened new session added line in profile doesn't appeared. how to store it and display it in all other sessions and servers?
I recommend you to add this path in ~/.bashrc file, as this file will be reloaded whenever you open a new terminal.
Then execute
Code:
source ~/.bashrc
Quote:
but when i closed this session and opened new session added line in profile doesn't appeared. how to store it and display it in all other sessions and servers?
This is really strange...After saving the file, and if you have write access to the file, how can the contents get disappear ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.