Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
That looks OK. I don't know why you were getting the permission denied message. Maybe I misunderstood your question. Are you trying to add a directory to your PATH by changing your PATH permanently in /.bashrc?
Actually i want to export my path varribale in .bashrc file ..so that i will not set every time i use ns...
so when i open this file permission denied come.
Actually i want to export my path varribale in .bashrc file ..so that i will not set every time i use ns...
so when i open this file permission denied come.
What command are you using to open /home/mclamna/.bashrc?
Use whatever editor you want if you don't use vim and don't paste the output of the editor if it loads, even if it doesn't (clear the|use the alternate) screen, of course. But do post any error messages.
If it's owned by you and you have the 'rw' perms, you should be able to read/write it.
[mclamna@localhost ~]$ ls -l ~/.bashrc
-rwxr----- 1 mclamna mclamna 124 Jul 12 2006 /home/mclamna/.bashrc
[mclamna@localhost ~]$ head - ~/.bashrc
==> standard input <==
now what to write here ...
2ndly when i checked the properties of bashrc file it doesnot giving me any read and write priviliges what to do .... how to add my path varriable in it
That's supposed to be 'head -1'. Then the editor itself, if head shows you a line. In the meantime, you can just 'export PATH=$PATH:/path/you/want' from the command line and, as long as you don't exit that shell, you'll have that path.
Incidentally, few people would know what 'NS2-allain one-2.32' is (including myself) but I noticed elsewhere you were actually running on Cygwin. That kind of information can be important. Since you are, you can always try opening it in edit (in a dos box) or notepad. If you have a decent editor that won't screw up the line endings, you can even edit it in Windows. And make sure the program wants a Cygwin path vs. a Window path.
sorry for typo
now when i type this following message come
Quote:
$head -1 ~/.bashrc
$ .bashrc
i am working on fedora core 6.by specifying the path in command line its working fine.but i want to save it in bashrc file.how can i change it.
i was experimenting it to install NS2 on windows using cygwin.
but the problem i wrote is of linux...
Best thing is to go into your home dir and edit the file using eg vim:
vim .bashrc
or whichever editor you prefer.
My current work system doesn't have it, but iirc, PATH is usually set in the .bash_profile file.
Can't check my home system from here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.