Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between relative path and absolute
path?

Answer Posted / raghavendra utsai

A relative path describes the location of a file in
relation to another file on the same current Directory .
The starting point is the location of the document with the
path. The path may appear as:

images/image123.gif

Looking at this path you can tell that the document with
this path is inside of a Current folder which also has a
subfolder named images. And, inside of the images
subfolder, there is a file named image123.gif.

We can Say like, "Stay inside the folder you are already
in and find a subfolder named images. Now look inside of
that subfolder and find a file named image1.gif."

Also known as the full path, the absolute path is a path
that contains the root directory and all other sub
directories required to get into the directory you're
currently in or wish to get to. Below is a basic example of
a generic path and an absolute path.

Absolute path:

/home/user/My Picture/images/image123.gif

As can be seen from the above example, the absolute path
contains the full path instead of a few directories
contained within the absolute path. Below are some
additional examples.

Example 2
Absolute path:
C:\My Picture\images\image123.gif

Is This Answer Correct ?    182 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the “echo” command do?

1155


How do I open a port?

1092


What is the unix command to confirm a remote host is alive or not?

1221


What is the use of the command 'ls -x chapter[1-5]' ?

1216


What command will change your prompt to myprompt?

1332


What is the search command in unix?

1094


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

1572


Which command is used to delete all files in the current directory and all its sub-directories?

1267


What is the first character of the output in ls l command?

1216


What do chgrp command do?

1221


How do I use nslookup?

1099


Why is it called a shebang?

1193


What does pipe () return?

1077


Explain command to display different lines that are found when compare two files?

1182


How to display no of records in oracle using unix command?

1174