LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 05:32 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

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

cat .bash_profile
It looks like one of these has an error in it
 
Old 11-06-2012, 04: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, 04: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, 08:28 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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, 08: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



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 05:46 AM
Cant open terminal!!! Bags003 Linux - Newbie 6 12-31-2010 08:32 AM
open terminal LakshumaiahGoud Programming 2 09-16-2010 12:30 PM
how to open a new terminal kushkothari Programming 4 10-21-2008 02:33 AM
How to open programs in terminal without being stuck to the terminal?? brynjarh Linux - Newbie 6 07-07-2004 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 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
Open Source Consulting | Domain Registration