Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-29-2015, 09:07 PM   #1
Registered: Jan 2015
Location: Thailand
Distribution: Apricity OS
Posts: 35

Rep: Reputation: Disabled
No such file or directory error on opening bash

Hi folks,

I have a very basic question for you if you don't mind. Whenever I open a terminal, I get this

 bash: /etc/profile.d/ No such file or directory
followed by the usual prompt.

A few weeks ago I made a script called, which would run whenever I opened a terminal. In the end, I deleted it because it wasn't doing what I wanted it to do. But some file is clearly still pointing to it. I've searched high and low for the source of this error, i.e. some reference to, but I cannot find it. I've looked in ~/.bashrc ~/.profile and a few other places I can't remember offhand that I found on the Internet. Can anyone tell me where this reference is most likely to be? While it doesn't cause any problems and I can still use the terminal without a problem, it's a bit annoying and considering the amount of time I've spent trying to solve this problem, I'd be most grateful if someone point me in the right direction.

I'm running Sparky Linux (Debian Jessie) 64-bit (XFCE install) with Enlightenment Desktop on Lenovo T420.

Thank you in advance.
Old 01-29-2015, 11:06 PM   #2
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 448

Rep: Reputation: 37
Did you check /etc/profile and /etc/bash.bashrc ?
Old 01-30-2015, 12:01 AM   #3
Registered: Jan 2015
Location: Thailand
Distribution: Apricity OS
Posts: 35

Original Poster
Rep: Reputation: Disabled
Thanks for your reply, Daws.

It is indeed in /etc/bash.bashrc! Thanks a million!


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
Error Message /bin/bash: : No such file or directory tejakalva Linux - Newbie 11 01-21-2015 03:51 AM
Error installing S-PLus 7.0 -- bash: ./[ANYFILENAME]: No such file or directory purple_monkey Linux - Software 1 04-25-2007 07:03 PM
Error opening /dev/wacom no such file or directory Xirtrips Linux - Software 1 10-02-2006 03:20 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration