Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

Rep: Reputation: 32
Which file export command edits


I have run this command in ubuntu linux

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 ?


Old 07-02-2012, 03:44 PM   #2
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:

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


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
Registered: Sep 2007
Location: In My Box
Distribution: Arch Linux
Posts: 407

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


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-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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration