c922a0d8d8
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@226 a672b425-5310-4d7a-af5c-997e18724b81
24 lines
884 B
HTML
24 lines
884 B
HTML
---
|
|
layout: page
|
|
category-page: basic
|
|
category-title: Basic commands
|
|
author: Joy Albertini
|
|
tags: directory current path pwd
|
|
title: pdw
|
|
---
|
|
|
|
<p>The <code>pwd</code> command (path of working directory) <br>
|
|
The absolute pathname of the current working directory is given as result.</p>
|
|
|
|
<pre>
|
|
cd /home/user
|
|
pwd = /home/user
|
|
</pre>
|
|
|
|
<ul>
|
|
<li><code>-P </code> Show the working directory path without symbolic link (links to folder) <br>
|
|
Example: <code>PWD</code> /home/symphoto, symphotos is a symlink to /home/photos <code>PDW-P</code> will show /home/photos</li>
|
|
<li><code>-L </code> Show the working directory logical path with symbolic link. <br>
|
|
Example: There is a symbolic link /home/symphoto, that redirect to /home/photo, <code>PWD -L</code> will show /home/symphoto</li>
|
|
<li> Without flag, the -L is assumed, so the normal PWD is in reality PDW-L</li>
|
|
</ul>
|