Ask Your Question
0

Bash:#: command not found

asked 2013-05-31 00:36:28 -0500

haris gravatar image

When terminal starts up the first line which comes up is this error bash: # : command not found. I got ns2 running before restarting the system. but when I came back neither ns2 is running, also this error is coming

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-05-31 09:00:30 -0500

ThomasMcA gravatar image

Perhaps there is a syntax error in /etc/bashrc or ~/.bahsrc

edit flag offensive delete link more

Comments

1

~/.bashrc, typo.

wquine gravatar imagewquine ( 2013-05-31 19:28:38 -0500 )edit

I removed the changes I made in .bashrc file but still the same

haris gravatar imageharis ( 2013-06-01 04:45:21 -0500 )edit
1

You've still got an error somewhere. Try moving the .bashrc to old.bashrc (do the same with any other files you've changed recently).

wquine gravatar imagewquine ( 2013-06-02 14:21:26 -0500 )edit

Make sure you source your .bashrc after making changes. (or log out and back in).

FranciscoD_ gravatar imageFranciscoD_ ( 2013-06-02 22:35:38 -0500 )edit

or just bash.

abadrinath gravatar imageabadrinath ( 2014-07-30 03:52:49 -0500 )edit
-1

answered 2013-05-31 03:10:47 -0500

paulcarroty gravatar image

Enter command without #.

"#" - just mark of the root privileges.

edit flag offensive delete link more

Comments

It comes when the terminal is opened without entering any thing

haris gravatar imageharis ( 2013-06-01 04:44:50 -0500 )edit

Question Tools

Stats

Asked: 2013-05-31 00:36:28 -0500

Seen: 858 times

Last updated: May 31 '13