edit of the previous html with images and so on
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@58 a672b425-5310-4d7a-af5c-997e18724b81
This commit is contained in:
parent
81503e3ee0
commit
f3c8882acc
|
@ -97,23 +97,43 @@ As you can see from the last commands, all the paths started from /directory whi
|
|||
<div class = "title6">
|
||||
<h5>Example of Absolute path's uses:</h5>
|
||||
Now, as we learned from the previous pages we can use other commands in addition to "cat", such as:
|
||||
<br> chmod
|
||||
<br> ls
|
||||
<br> mv
|
||||
<br> get
|
||||
<br> text
|
||||
<br> rm
|
||||
|
||||
<br>ls /etc
|
||||
<br>ls /usr/share/games if you have games obviously :)
|
||||
<br>cd /usr/share/games
|
||||
<br>cd ~
|
||||
<br>cat /etc/passwd
|
||||
<br>cp /etc/passwd /tmp
|
||||
<br>cd /tmp
|
||||
<br>cat passwd
|
||||
|
||||
<h6> Now I will show you in many examples.</h6>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
and so on.. with the sintax like above.
|
||||
|
||||
|
||||
|
||||
/* esempi con altri comandi+foto */
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class = "img0.1">
|
||||
<img src="0.1.jpg" width="auto" height="auto" alt=" ls of /etc without" />
|
||||
</div>
|
||||
|
||||
<div class = "img0.2">
|
||||
<img src="0.2.jpg" width="auto" height="auto" alt=" cd /tmp (go to tmp yuppyy)" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -37,7 +37,50 @@ Relative path is defined as path related to the present working directory(pwd).
|
|||
<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 */
|
||||
<!-- esempi con altri comandi+foto -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class = "title2">
|
||||
<h2>Example of Relative path's uses:</h2>
|
||||
Now, as we learned from the previous pages we can use other commands in addition to "cat", such as:
|
||||
|
||||
<br><br>pwd
|
||||
<br> cd .
|
||||
<br><br>pwd
|
||||
<br> cd ..
|
||||
<br><br>pwd
|
||||
<br> cd ..
|
||||
<br><br>pwd
|
||||
<br> cd
|
||||
|
||||
<br><br><br> and so on.. I know, it's boring but it is one of the disadvantages of not being present in the
|
||||
<br>working directory
|
||||
|
||||
|
||||
<h3> Now I will show you in many examples.</h3>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class = "img1.1">
|
||||
<img src="1.1.jpg" width="auto" height="auto" alt=" pwd to know where i am " />
|
||||
</div>
|
||||
|
||||
<div class = "img1.2">
|
||||
<img src="1.2.jpg" width="auto" height="auto" alt="relative paths command" />
|
||||
</div>
|
||||
|
||||
<div class = "img1.3">
|
||||
<img src="1.3.jpg" width="auto" height="auto" alt=" funning with 'cd to return back" />
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</header>
|
||||
|
|
|
@ -34,10 +34,9 @@ Now, you can ask, why I have to use one or another?
|
|||
</div>
|
||||
|
||||
|
||||
/*Pro and cons of both.. */
|
||||
|
||||
/* esempi foto + comandi usati dietro */
|
||||
|
||||
<!-- domande su entrambi gli argomenti(javascript) -->
|
||||
|
||||
</header>
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue