LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 03-01-2007, 02:18 AM   #1
aabhardadhich
LQ Newbie
 
Registered: Mar 2007
Posts: 1

Rep: Reputation: 0
$ gedit.bashrc &-"COMMAND NOT FOUND"


When i follow this step to install ns2.29.2 on my SSH client "Configure your .bashrc file in the home directory to use NS-2.
.bashrc is a configuration file for bash where rc stands for “run commands”
$ cd ~ or cd /home/ns2userName
$ gedit .bashrc &"
The response i get is" -bash: gedit.bashrc: command not found"
Please help!
 
Old 03-01-2007, 02:59 AM   #2
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Why don't you try gedit /home/username/.bashrc? That should work.

Btw, what does the ampersand after bashrc stand for? Try leaving that out and gedit .bashrc should work. Also, you need to be root to manipulate bashrc.

Last edited by jay73; 03-01-2007 at 03:04 AM.
 
Old 03-01-2007, 04:14 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by aabhardadhich
The response i get is " -bash: gedit.bashrc: command not found"
It looks like you typed the command without a space between gedit and .bashrc: try
Code:
gedit .bashrc
with a space.
 
Old 03-01-2007, 05:12 AM   #4
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Come to think of it, are you sure gedit is installed at all? It is by default on some distributions, on other ones you need to do it yourself.
 
Old 03-01-2007, 05:31 AM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by jay73
Btw, what does the ampersand after bashrc stand for?
The ampersand would open the gedit window in the background, allowing you to continue using the shell without having to quit gedit.
Quote:
Originally Posted by jay73
Also, you need to be root to manipulate bashrc.
If the file is in you home directory, then you, the user, can edit it; no need to be root. Root would edit the global bashrc found in /etc.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell: command not found / Runs fine with "Run command" badbunny Linux - Newbie 1 01-22-2007 01:21 AM
command gedit "/etc/apt/sources.list" not working secret_force Linux - Newbie 4 08-02-2006 04:28 PM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
learned "aliases", what are "functions" in .bashrc? learnfast Linux - Newbie 3 03-15-2005 04:24 AM
"No Java virtual machine could be found from your PATH" - ignores bashrc shaider Linux - Software 7 10-09-2004 12:38 AM


All times are GMT -5. The time now is 11:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration