theshell.ch/site/pages/cmd/basic/pwd.html
alberj c922a0d8d8 Team intermediate/basic add command ping chown mv pwd
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@226 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-15 22:33:39 +00:00

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>