what is the difference between relative path and absolute
path?

Answer Posted / sudipta

absolute means the path is absolutely present that means the required file's original path, from whenever u r present on ur system.
e.g.
i am finding for a file 'mypic.jpeg' which is present at d:/>my drive/picture & i'm present in the c:/>my document folder,then from that position the absoluute path is
'd:/>my drive/picture/mypic.jpeg'.

But in case of relative path,it indicate the path which is relative to that file(which one u want i.e 'mypic.jpeg') where it is present from that current location ,that may be the same folder,& it casually use when we hosted the file from server,locate the file with in the current folder & that is starting with '\' in windows os..

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general format of unix command syntax?

698


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


What is ‘ps’ command for?

620


How to find $ai_serual resolved path by using unix

1030


Why is it called grep?

565






What does the metacharacter mean?

613


What is updatedb?

590


What is s and g in sed command?

563


What is the use of the tee command?

602


What does the command '$ls | wc –l > file1' do?

684


Are you in or at the office?

612


Is ‘du’ a command? If so, what is its use?

639


Explain the steps that a shell follows while processing a command.

683


What is the comma to show the space allocation of files?

562


Which command will print your home directory on screen?

548