added some code lines of fs

git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@171 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
annoum 2018-11-14 10:50:16 +00:00
parent a89419190d
commit 8f8e268088
2 changed files with 6 additions and 6 deletions

View File

@ -26,14 +26,14 @@ title: paths
<h4>To write an absolute path-name:</h4>
<p>
<pre> <p>
Start at the root directory ( / ) and work down.
<br>Write a slash ( / ) after every directory name (last one is optional)
</p>
</p> </pre>
<h5>Example:</h5>
<p> cat group1.txt </p>
<pre> <p> cat group1.txt </p> </pre>
if for example, we use the above line, this commands work only and only if the "group1.txt" exist in the current
directory.
<br> If not works, it's not a problem, the file is present somewhere, before restart the new command, you have to
@ -49,10 +49,10 @@ As you can see from the last commands, all the paths started from /directory whi
machines.
<p> Other examples, where all are absolute path</p>
<pre>
/home/user/Document/group1.txt
/root/data/dev.jpg
/var/log/messages
/var/log/messages</pre>
<h6>Example of Absolute path's uses:</h6>
Now, as we learned from the previous pages we can use other commands in addition to "cat", such as:

View File

@ -13,7 +13,7 @@ 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>
<pre><p> pwd/home/user1cd Documents </p></pre>
<br> <br> <br> Then you could tell me what is the difference between Absolute and Relative.