eXtropia: the open web technology company
Technology | Support | Tutorials | Development | About Us | Users | Contact Us
Resources
 ::   Tutorials
 ::   Presentations
Perl & CGI tutorials
 ::   Intro to Perl/CGI and HTML Forms
 ::   Intro to Windows Perl
 ::   Intro to Perl 5
 ::   Intro to Perl
 ::   Intro to Perl Taint mode
 ::   Sherlock Holmes and the Case of the Broken CGI Script
 ::   Writing COM Components in Perl

Java tutorials
 ::   Intro to Java
 ::   Cross Browser Java

Misc technical tutorials
 ::   Intro to The Web Application Development Environment
 ::   Introduction to XML
 ::   Intro to Web Design
 ::   Intro to Web Security
 ::   Databases for Web Developers
 ::   UNIX for Web Developers
 ::   Intro to Adobe Photoshop
 ::   Web Programming 101
 ::   Introduction to Microsoft DNA

Misc non-technical tutorials
 ::   Misc Technopreneurship Docs
 ::   What is a Webmaster?
 ::   What is the open source business model?
 ::   Technical writing
 ::   Small and mid-sized businesses on the Web

Offsite tutorials
 ::   ISAPI Perl Primer
 ::   Serving up web server basics
 ::   Introduction to Java (Parts 1 and 2) in Slovak

 

Introduction to UNIX for Web Developers
The "pwd" Command  
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 such as in the following example in which 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".

Previous | Next | Table of Contents