HTML and CSS Reference
the Computer Name: text field of the Sharing System Preference pane.) After the colon ( : )
is your current path. The path represents what folder you are currently in. Most likely, when
you start the terminal you're in the Home directory (/Users/ YourUsername ); Terminal ab-
breviates a user's Home directory with the ~ symbol. After that the prompt shows you your
username (which won't be scott unless that's actually your username) followed by the $
prompt and a cursor awaiting your input.
Our first Terminal command will take you to the location where the Apache configuration
files are stored:
$ cd /etc/apache2/
This will take you to the apache2 folder where the configuration files are kept. (Note that
after you type this command the ~ in the prompt changes to apache2. ) It does this with
the cd (change directory) command, which tells the terminal to go to a specific directory.
Next, let's look at the files in this directory:
$ ls -FG
You should get a response showing the following:
The ls (list directory) command lists the contents of a directory. The -FG part is flags that
add features to the basic ls command. In this case the -F adds symbols to special files (in
this case the trailing / for subdirectories) and the -G adds color to special files. These two
are slightly redundant, but they make the listing prettier.
At this point, your first step is to edit the httpd.conf file. This is the master Apache config-
Editing Apache configuration files
Editing the httpd.conf file involves a few tricks. By default, only a superuser (aka root )
can edit this file; for this reason most graphical text editors (including any downloaded