LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Commands excuted on bash startup (https://www.linuxquestions.org/questions/linux-newbie-8/commands-excuted-on-bash-startup-462061/)

wangjiaji 07-08-2006 08:24 AM

Commands excuted on bash startup
 
Sorry if this has been asked many times, I do have searched the forum :study:
Every time I login/open a bash shell windows, the shell will prompt
Quote:

cp: stat‘/home/wjj/.xmms/config’ Failed
How can I remove it?
BTW, I have check every *bash* like file, but could find no similar words in them.

khvatov 07-08-2006 08:41 AM

did you look in your home directory at the hidden file .bashrc?
This file contains a list of commands run when you open shell.
Alex

wangjiaji 07-08-2006 08:59 AM

Yes, I have, and root's .bashrc, too, but there is nothing.

ethics 07-08-2006 09:06 AM

its always when you open a shell? not just logging in? post your .bashrc

wangjiaji 07-08-2006 09:16 AM

Yes, it appears both on logging in and opening a shell(always).
Here it is, thanks.
Quote:

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
And root's .bashrc
Quote:

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
End of the file.

btmiller 07-08-2006 02:15 PM

These files both reference /etc/bashrc (as is normal) -- I'd suggest looking in there next. Did you look in .bash_profile too just to be sure (though it should only be parsed when you invoke a login shell, not every time you bring up an xterm unless you have xterm configured to run bash --login).


All times are GMT -5. The time now is 02:27 AM.