theshell.ch/site/pages/fs/pwd.html
bevilj a6515acdb9 order pages for navigation
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@254 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-18 20:38:56 +00:00

39 lines
1.2 KiB
HTML

---
layout: page
category-page: fs
category-title: FileSystem
tags: working directory current position where
author: Mirko Ponzio
title: pwd
previous-page: pages/fs/mv.html
next-page: pages/fs/relative.html
---
<!-- Co-authored with Joy Albertini -->
The command <code>pwd</code>(abbreviation of print working directory, it returns the
corrent directory) it is a command, that show the absolute pathname on the corrent directory.<br>
The working directory is the directory where you are standing in. So for
knowing where you are, you can use the pwd command.<br>
<pre>
cd /home/user
pwd = /home/user
</pre>
<h3>Flags</h3>
<ul>
<li><code>-P </code> Show the working directory path without symbolic link (links to
folder).<br>
Example: <i>/home/symphoto</i> a symlink to <i>/home/photos</i> <code>pwd -P</code>
will display <i>/home/photos</i>.
</li>
<li><code>-L </code> Show the working directory logical path with symbolic link.<br>
Example: <i>/home/symphoto</i>, that redirect to <i>/home/photos</i>,
<code>pwd -L</code> will show <i>/home/symphoto</i>.
</li>
<li>Without any flag, -L is assumed, so the normal pwd is in reality <code>pwd -L</code>.</li>
</ul>