Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


The "pwd" Command

July 19, 1998

Relative paths are pretty useful, but how do you know where you are in order to determine the relative location of something you want to access?

Well, UNIX provides the "pwd" utility just for this purpose. The "pwd" utility lets you know in which directory you currently are. In the following example we have used the pwd utility. You can see that the result was "/home/selena" which means that we are located in the selena directory which is a subdirectory of home which is located in the root directory itself.

[LOGIN PROMPT]

Below is a table that goes over the pwd utility in detail.

Syntax Options Example Description
pwd None pwd Returns the present working directory

Okay, now that you know how to login from yesterday, why not do so and then use the pwd utility to find out where you are placed. Most likely, you will be placed in your home directory perhaps "/usr/home/yourlogin".

Additional Resources:

Relative and Absolute Paths
Introduction to UNIX for Web Developers | Table of Contents
The "cd" Command


Up to => Home / Internet / UNIX / Intro




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers