LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-23-2010, 03:13 AM   #1
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
command not found error during login


Hi all,

when i login to one of our development server i get the following.

Last login: Tue Nov 23 14:08:32 2010 from 192.168.2.5
-bash: r: command not found
-bash: $: command not found
-bash: $: command not found
[root@server1 ~]#


But the server seems to work with no issues. But each time when i login i am getting this error.

Which are the files i need to check. your suggestions please.

Thanks in advance,
Dinesh.

Last edited by dinakumar12; 11-23-2010 at 03:18 AM.
 
Old 11-23-2010, 04:10 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
/etc/profile
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc

And check your default shell.

Last edited by eSelix; 11-23-2010 at 04:12 AM.
 
1 members found this post helpful.
Old 11-23-2010, 06:49 AM   #3
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271

Original Poster
Blog Entries: 7

Rep: Reputation: 18
Hi,

Thank you for your reply.

As you said there was some entry in /etc/profile

when i remove that,i can able to login with no issues.

Once again thank you very much.

Last edited by dinakumar12; 11-23-2010 at 07:08 AM.
 
  


Reply



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
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 12:44 PM
error: Command Not Found dayalan_cse Programming 12 11-15-2006 11:59 PM
command not found error Deelk Slackware 12 04-23-2006 02:12 PM
command not found error cdsnithi Linux - Software 2 07-06-2005 12:26 PM
c++ command not found error... ? Cheka Linux - Newbie 2 01-29-2005 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration