2018-11-08 10:05:48 +00:00
|
|
|
---
|
|
|
|
layout: page
|
|
|
|
category: Filesystem
|
|
|
|
tags: absolute and relative paths
|
|
|
|
author: Marwan Announ
|
|
|
|
title: fs
|
|
|
|
previous-page: pages/fs/rela_abso
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-11-08 09:55:57 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<header>
|
|
|
|
|
|
|
|
|
|
|
|
<div class = "title1">
|
|
|
|
<h1>Relative Path!</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class= "text1">
|
|
|
|
Relative path is defined as path related to the present working directory(pwd).
|
|
|
|
<br>Suppose I am located in /home/user1 and I want to change directory to /home/user1/Documents.
|
|
|
|
<br>I can use relative path concept to change directory to Documents.
|
|
|
|
<br> <br> <br> <p> pwd/home/user1cd Documents </p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br> <br> <br> Then you could tell me what is the difference between Absolute and Relative.
|
|
|
|
|
|
|
|
<br> If you observe, there is a little bit difference, where in relative there is no "/".
|
|
|
|
<br> Meanwhyle using absolute path you have to write "/", in this case cd /home/user1/Documents.
|
|
|
|
|
|
|
|
/* esempi foto + comandi usati dietro */
|
|
|
|
|
|
|
|
|
|
|
|
</header>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|