95b6720f2e
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@238 a672b425-5310-4d7a-af5c-997e18724b81
36 lines
1.1 KiB
HTML
36 lines
1.1 KiB
HTML
---
|
|
layout: page
|
|
category-page: fs
|
|
category-title: FileSystem
|
|
tags: working directory current position where
|
|
author: Mirko Ponzio
|
|
title: pwd
|
|
---
|
|
|
|
<!-- 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>
|