LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-08-2006, 09:24 AM   #1
wangjiaji
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Rep: Reputation: 0
Question Commands excuted on bash startup


Sorry if this has been asked many times, I do have searched the forum
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.
 
Old 07-08-2006, 09:41 AM   #2
khvatov
LQ Newbie
 
Registered: Jan 2006
Location: Feasterville Trevose, PA
Distribution: Arch Linux, Slackware
Posts: 10

Rep: Reputation: 0
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
 
Old 07-08-2006, 09:59 AM   #3
wangjiaji
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, I have, and root's .bashrc, too, but there is nothing.
 
Old 07-08-2006, 10:06 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
its always when you open a shell? not just logging in? post your .bashrc
 
Old 07-08-2006, 10:16 AM   #5
wangjiaji
LQ Newbie
 
Registered: Feb 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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.

Last edited by wangjiaji; 07-08-2006 at 10:20 AM.
 
Old 07-08-2006, 03:15 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,159

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
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).
 
  


Reply

Tags
bash, shell, startup


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
Commands at startup Maverick1182 Linux - Newbie 5 08-08-2005 06:55 PM
Commands On Startup SkyeFyre Linux - General 3 04-16-2005 08:31 PM
rpm for some reason is excuted by file roller? furtivefelon Linux - Newbie 11 02-09-2005 10:23 PM
What is the humor program name that is excuted console in slackware? jinwoo Slackware 2 05-22-2003 12:01 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 03:56 PM


All times are GMT -5. The time now is 04:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration