LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-02-2012, 03:58 PM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 338

Rep: Reputation: 31
Which file export command edits


Hello..

I have run this command in ubuntu linux


Quote:
export PATH=$PATH:/home/n3t/dev/Android/android-sdk-linux/tools
and i wanna know which file this command edits.

In which file can i found the path ?

/home/n3t/dev/Android/android-sdk-linux/tools

Thanks
 
Old 07-02-2012, 04:44 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
This goes over environment variables and variables in general:

http://tldp.org/LDP/Bash-Beginners-G...ect_03_02.html


If you're looking to have a env variable set for you when you login to a shell this is done in either the .bashrc or .bash_profile file located in your home directory.


The kernel stores the list of environment variables and their values for each process, and inherit them to child processes. They exist at runtime, and are not stored in some file or so. But there is a virtual file in

/proc/<pid>/environ

Which contains all the environment variables. The kernel makes them visible by that virtual file. One can list them. For example to view the variables of process 3940, one can do

cat /proc/3940/environ | tr '\0' '\n'

Each variable is delimited by a binary zero from the next one. tr replaces the zero into a newline.
 
1 members found this post helpful.
Old 07-02-2012, 04:52 PM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 338

Original Poster
Rep: Reputation: 31
Thanks a lot my friend.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file systems: external edits to an open file hydraMax Programming 5 05-25-2012 12:00 AM
iperf won't export all command output to text file buee Linux - Newbie 1 10-19-2010 11:34 AM
export command brgsousa Linux - Software 1 03-20-2010 08:10 PM
SED edits configuration file lusiads Programming 7 09-12-2008 04:25 AM
file edits not "taking" in website phlewis Linux - General 1 02-07-2004 12:31 PM


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