LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2005, 09:06 AM   #1
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
env variable


I want to check the value of an environment variable in a bash shell.

if i do an 'env' command, that gives me all of them.
I would like to be able to check just one, something like:

#env LD_LIBRARY_PATH
LD_LIBRARY_PATH=/one/two/three

How can I do this?
 
Old 04-14-2005, 09:13 AM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Maybe:

# env | grep LD_LIBRARY_PATH

I think there is a better way to do this but I can't think of it off the top of my head.
 
Old 04-14-2005, 09:55 AM   #3
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
works for me
 
Old 04-14-2005, 12:07 PM   #4
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Original Poster
Rep: Reputation: 30
printenv LD_LIBRARY_PATH
 
  


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
socks proxy - env variable andrewlkho Linux - Networking 1 06-23-2013 09:58 PM
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 04:39 AM
unsetting a part of ENV variable praveenv Linux - Newbie 3 08-28-2004 09:36 AM
Changing $PATH env variable alzogbi Linux - Newbie 2 03-26-2004 02:06 AM
How to pass env variable to KDE? koyi Linux - General 0 09-03-2003 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:21 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