From 8f8e2680886d055974c1429a74854a44ab115745 Mon Sep 17 00:00:00 2001
From: annoum
Date: Wed, 14 Nov 2018 10:50:16 +0000
Subject: [PATCH] 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
---
site/pages/fs/absolute.html | 10 +++++-----
site/pages/fs/relative.html | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
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.