LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-05-2012, 05:35 PM   #1
dina
LQ Newbie
 
Registered: Oct 2012
Posts: 23

Rep: Reputation: Disabled
when i open terminal


hi knudfl....
when i open the terminal this line appear

bash: /usr/local/lib: is a directory
dina@dina-Satellite-L635:~$

without wirtting and command????
 
Old 11-05-2012, 06:32 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Try
Code:
cat .bashrc

cat .bash_profile
It looks like one of these has an error in it
 
Old 11-06-2012, 05:28 AM   #3
darkkatana
LQ Newbie
 
Registered: Oct 2012
Location: Leeds UK
Distribution: Mint/Arch
Posts: 3

Rep: Reputation: Disabled
yea, it sounds like there's an eror in .bashrc
you can use cat to find the error then edit the file in vim/emacs/
 
Old 11-06-2012, 05:39 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
It's somewhere "cat /usr/local/lib" line is mentioned in your shell initialization file, which actually gets sourced when you login. Since /usr/local/lib is not a file, but a directory, thus system shows you this message. So do try this:
more .bashrc | grep "/usr/local/lib"
Or,
more .bash_profile | grep "/usr/local/lib"
If it gives some output, then edit the corresponding file using vi or vim & either comment the line that contain this line, or replace "cat /usr/local/lib" with "cd /usr/local/lib". Hope it will help you!
 
Old 11-06-2012, 09:28 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by shivaa View Post
more .bashrc | grep "/usr/local/lib"
Is that functionally different from cat .bashrc | grep "/usr/local/lib" or grep "/usr/local/lib" .bashrc ?

BTW .bashrc could, more robustly, be ~/.bashrc
 
Old 11-06-2012, 09:37 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Is that functionally different from cat .bashrc | grep "/usr/local/lib" or grep "/usr/local/lib"
No! But I find "more" more flexible than cat.

@dina: You can simply try with:
grep "/usr/local/lib" ~/.bashrc
Or
grep "/usr/local/lib" ~/.bash_profile
 
  


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] Change terminal for Thunar: 'Open Terminal Here' custom action.... andrew.46 Slackware 2 01-17-2012 06:46 AM
Cant open terminal!!! Bags003 Linux - Newbie 6 12-31-2010 09:32 AM
open terminal LakshumaiahGoud Programming 2 09-16-2010 01:30 PM
how to open a new terminal kushkothari Programming 4 10-21-2008 03:33 AM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 01:52 PM


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