LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 02:58 PM   #1
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

Rep: Reputation: 33
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, 03:44 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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, 03:52 PM   #3
netpumber
Member
 
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 423

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


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 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-24-2012 11:00 PM
iperf won't export all command output to text file buee Linux - Newbie 1 10-19-2010 10:34 AM
export command brgsousa Linux - Software 1 03-20-2010 07:10 PM
SED edits configuration file lusiads Programming 7 09-12-2008 03:25 AM
file edits not "taking" in website phlewis Linux - General 1 02-07-2004 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:49 AM.

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