eXtropia: the open web technology company
Technology | Support | Tutorials | Development | About Us | Users | Contact Us
 ::   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 "cd" Command  
Cool, so now you know where you are. However, that doesn't really do much for you. What you need to be able to do is move from where your are to someplace else. To do so, you will use the "cd" (change directory) command which is described in the table below:

Syntax Options Example Description
cd option Directory name cd /home/selena/Test Changes the present working directory

As you can see, the "cd" command simply takes a directory name as an option and works something like the following image in which we have changed our directory from "/home/selena" to "/usr/bin/"

[CD Command Example]

Of course you can use relative pathnames with the cd command such as in the following example in which we will change directories using both relative and absolute references

[CD Command Example with relative Examples]

Why not try a few out for yourself. Start by logging in and using the "pwd" utility to get your bearings. Then try moving around. Here are some interesting things to try... (remember to use pwd after the "cd" command so that you can clearly see the effect of the command)

Command Explanation
cd / Goes directly to the root directory
cd Moves you from anyplace on the system directly to your home directory
cd .. Moves you one directory up
cd /usr Moves you directly to the /usr directory
cd /usr
cd lib
Moves you to the /bin directory and then moves you to the lib sub-directory relative to bin.

Previous | Next | Table of Contents