LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   -bash: :wq!: command not found (https://www.linuxquestions.org/questions/linux-newbie-8/bash-wq-command-not-found-4175517804/)

thiyagusham 09-08-2014 12:02 AM

-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 


evo2 09-08-2014 12:05 AM

Hi,

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

Evo2.

thiyagusham 09-08-2014 12:53 AM

Hi evo2;

My problem is resolved. Thanks a lot. :cool:

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



All times are GMT -5. The time now is 12:20 PM.