diff --git a/site/pages/fs/absolute.html b/site/pages/fs/absolute.html index 88c6a0a..18eebbc 100644 --- a/site/pages/fs/absolute.html +++ b/site/pages/fs/absolute.html @@ -26,14 +26,14 @@ title: paths

To write an absolute path-name:

-

+

 

Start at the root directory ( / ) and work down.
Write a slash ( / ) after every directory name (last one is optional) -

+

Example:
-

cat group1.txt

+
 

cat group1.txt

if for example, we use the above line, this commands work only and only if the "group1.txt" exist in the current directory.
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.

Other examples, where all are absolute path

- +
 /home/user/Document/group1.txt
 /root/data/dev.jpg
-/var/log/messages
+/var/log/messages
Example of Absolute path's uses:
Now, as we learned from the previous pages we can use other commands in addition to "cat", such as: diff --git a/site/pages/fs/relative.html b/site/pages/fs/relative.html index f56bfc7..51c87e2 100644 --- a/site/pages/fs/relative.html +++ b/site/pages/fs/relative.html @@ -13,7 +13,7 @@ Relative path is defined as path related to the present working directory(pwd).
Suppose I am located in /home/user1 and I want to change directory to /home/user1/Documents.
I can use relative path concept to change directory to Documents.


-

pwd/home/user1cd Documents

+

pwd/home/user1cd Documents




Then you could tell me what is the difference between Absolute and Relative.