theshell.ch/site/pages/cmd/basic/pwd.html

25 lines
884 B
HTML
Raw Normal View History

---
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>