LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-08-2014, 01:02 AM   #1
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
-bash: :wq!: command not found


Hi All;

I installed oel 5.5 in my system.
when i logged as 'oracle' user i am getting some error message following below. why i am getting error ?


PHP Code:

login 
as: oracle
oracle
@192.168.133.129's password:
Last login: Mon Sep  8 10:21:23 2014 from 192.168.133.1
-bash: :wq!: command not found 
PHP Code:
[oracle@oel5 ~]$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -~/.bashrc ]; then
        
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME 

Last edited by thiyagusham; 09-08-2014 at 01:04 AM.
 
Old 09-08-2014, 01:05 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you should check your .bashrc, and the system bashrc and profile. (sorry not sure of the exact defaults on oel).

Evo2.
 
1 members found this post helpful.
Old 09-08-2014, 01:53 AM   #3
thiyagusham
Member
 
Registered: Apr 2012
Posts: 213

Original Poster
Rep: Reputation: Disabled
Hi evo2;

My problem is resolved. Thanks a lot.

PHP Code:
cat .bashrc
# .bashrc

# Source global definitions
if [ -/etc/bashrc ]; then
        
. /etc/bashrc
fi

# User specific aliases and functions
alias rlsqlplus='rlwrap sqlplus':wq
 
  


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
[SOLVED] bash: GET: command not found ? michalng Debian 2 03-29-2011 07:20 PM
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 02:45 PM
bash command not found manolakis Linux - Newbie 13 01-21-2007 03:07 PM
bash: g++ command not found briemac Programming 14 12-31-2006 02:31 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM


All times are GMT -5. The time now is 02:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration