<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Absolute path &amp;amp; Relative Path in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842248#M97920</link>
    <description>Everything that has been said so far is true; however, there is a wrinkle that should not be overlooked and that is chroot -- which is both a system call and a command. Chroot has the ability to change the root of the file tree so that, for example, eventhough the pathname of a program might be /bin/myprogram, chroot might have set the top of the tree to something like "/mickey/mouse" so that when you execute "/bin/myprogram" which has an absolute path, you are actually executing "/mickey/mouse/bin/myprogram".</description>
    <pubDate>Sun, 13 Aug 2006 20:22:51 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2006-08-13T20:22:51Z</dc:date>
    <item>
      <title>Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842243#M97915</link>
      <description>Dear Sir,&lt;BR /&gt;I want to know what is the difference between Relative Path and Absolute Path.</description>
      <pubDate>Sat, 12 Aug 2006 10:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842243#M97915</guid>
      <dc:creator>Indrajit Bhagat</dc:creator>
      <dc:date>2006-08-12T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842244#M97916</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the absolute path begins always with "/" - the relative path is (like the name suggests) relative - in every respect, depending on your current working directory.</description>
      <pubDate>Sat, 12 Aug 2006 10:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842244#M97916</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2006-08-12T10:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842245#M97917</link>
      <description>Showing an example would probably be easiest.&lt;BR /&gt;&lt;BR /&gt;Let's say that you are in a directory called /abc/def and in that directory are other directories ghi and jkl.&lt;BR /&gt;&lt;BR /&gt;Now if you wanted to back up ghi and jkl with tar using Absolute path you would do:&lt;BR /&gt;&lt;BR /&gt;# cd /abc/def&lt;BR /&gt;# tar -cvf ghi_jkl.tar /abc/def/ghi /abc/def/jkl&lt;BR /&gt;&lt;BR /&gt;Absolute path means specifying the ENTIRE path to the directory you want to back up.  When you restore this it will be restored to the SAME EXACT path (/abc/def/ghi).&lt;BR /&gt;&lt;BR /&gt;Now, if you want to back up ghi and jkl with relative paths, you would do:&lt;BR /&gt;&lt;BR /&gt;# cd /abc/def&lt;BR /&gt;# tar -cvf ghi_jkl2.tar ghi jkl&lt;BR /&gt;or&lt;BR /&gt;# tar -cvf ghi_jkl3.tar ./ghi ./jkl&lt;BR /&gt;&lt;BR /&gt;Both of the above commands accomplish the same thing.  The 2nd command (with ghi_jkl3.tar) will just have a ./ in front of the directory names.  The first will not.&lt;BR /&gt;&lt;BR /&gt;Relative path means the directory names are relative to your current directory.&lt;BR /&gt;&lt;BR /&gt;If you wanted to restore from one of these tar file to a diffferent directory it is easy because you used relative.&lt;BR /&gt;&lt;BR /&gt;If you want to restore ghi and jkl into /abc/mno, then you would do:&lt;BR /&gt;&lt;BR /&gt;# mkdir /abc/mno&lt;BR /&gt;# cd /abc/mno&lt;BR /&gt;# tar -xvf ghi_jkl2.tar&lt;BR /&gt;or&lt;BR /&gt;# tar -xvf ghi_jkl3.tar&lt;BR /&gt;&lt;BR /&gt;Now you will have /abc/mno/ghi and /abc/mno/jkl.&lt;BR /&gt;&lt;BR /&gt;I much prefer dealing with relative pathing with commands like tar.  It makes restores to different directories a whole lot easier.&lt;BR /&gt;&lt;BR /&gt;I hope this explains it well enough for you.</description>
      <pubDate>Sat, 12 Aug 2006 10:47:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842245#M97917</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-08-12T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842246#M97918</link>
      <description>Absolute path: the name itself says that its is "absolute". it starts with "/" (root)&lt;BR /&gt;&lt;BR /&gt;Relative path means relative to the current position or directory. &lt;BR /&gt;&lt;BR /&gt;some commands requires absolute path. best example is "swinstall" &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Aug 2006 11:34:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842246#M97918</guid>
      <dc:creator>inventsekar_1</dc:creator>
      <dc:date>2006-08-12T11:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842247#M97919</link>
      <description>Location w.r.t the root of the directory tree is absolute path. And location w.r.t the current location is relative path.</description>
      <pubDate>Sun, 13 Aug 2006 17:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842247#M97919</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2006-08-13T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Absolute path &amp; Relative Path</title>
      <link>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842248#M97920</link>
      <description>Everything that has been said so far is true; however, there is a wrinkle that should not be overlooked and that is chroot -- which is both a system call and a command. Chroot has the ability to change the root of the file tree so that, for example, eventhough the pathname of a program might be /bin/myprogram, chroot might have set the top of the tree to something like "/mickey/mouse" so that when you execute "/bin/myprogram" which has an absolute path, you are actually executing "/mickey/mouse/bin/myprogram".</description>
      <pubDate>Sun, 13 Aug 2006 20:22:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/absolute-path-amp-relative-path/m-p/3842248#M97920</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-13T20:22:51Z</dc:date>
    </item>
  </channel>
</rss>

