theshell.ch/site/pages/fs/relative.html
bevilj a6515acdb9 order pages for navigation
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@254 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-18 20:38:56 +00:00

27 lines
763 B
HTML

---
layout: page
category-page: fs
category-title: FileSystem
tags: absolute relative path
author: Announ Marwan
title: Relative paths
previous-page: pages/fs/pwd.html
next-page: pages/fs/rm.html
---
Relative path is defined as path related to the present working directory(pwd).<br>
Suppose I am located in /home/user and I want to change directory to /home/user/Documents.<br>
I can use relative path concept to change directory to Documents.
<pre>
pwd
/home/user
cd Documents
pwd
/home/user/Documents
</pre>
If you observe, there is a little bit difference between absolute and relative paths:
in relative paths there is no "/" at the very beginning.<br>
Meanwhile in an absolute path you have to write "/", in this case it'd be "/home/user/Documents".