Intro to html. --- define every element, attribute, and entity along with the rules for their use

Similar documents
html: lists, images, tables network basics UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 See notes 09/16/10 Go to the validator

Lecture 2: Tools & Concepts

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Html basics Course Outline

introduction to XHTML

HTML & XHTML Tag Quick Reference

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Advanced HTML Scripting WebGUI Users Conference

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

Announcements. Paper due this Wednesday

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

CSC 121 Computers and Scientific Thinking

INFS 2150 / 7150 Intro to Web Development / HTML Programming

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

HYPERTEXT MARKUP LANGUAGE ( HTML )

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

LING 408/508: Computational Techniques for Linguists. Lecture 14

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

By Ryan Stevenson. Guidebook #2 HTML

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

A Balanced Introduction to Computer Science, 3/E

HTML and CSS COURSE SYLLABUS

HTML TUTORIAL ONE. Understanding What XHTML is Not

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

Certified HTML Designer VS-1027

Introduction to Computer Science (I1100) Internet. Chapter 7

XHTML & CSS CASCADING STYLE SHEETS

CSC Web Programming. Introduction to HTML

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Index. CSS directive, # (octothorpe), intrapage links, 26

Certified HTML5 Developer VS-1029

Web Design and Application Development

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

Basic HTML Lecture 14

Table of Contents. MySource Matrix Content Types Manual

Creating A Web Page. Computer Concepts I and II. Sue Norris

A Brief Introduction to HTML

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

INTRODUCTION TO HTML5! HTML5 Page Structure!

Creating Web Pages. Getting Started

HTMLnotesS15.notebook. January 25, 2015

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

Styles, Style Sheets, the Box Model and Liquid Layout

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

Bridges To Computing

Final Exam Study Guide

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

How the Internet Works

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Chapter 4. Introduction to XHTML: Part 1

11. HTML5 and Future Web Application

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

Chapter 4 Notes. Creating Tables in a Website

2.1 Origins and Evolution of HTML

Introduction to Computer Science (I1100) Internet. Chapter 7

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

Study Guide 2 - HTML and CSS - Chap. 6,8,10,11,12 Name - Alexia Bernardo

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Midterm Review. October 17

Chapter 4 A Hypertext Markup Language Primer

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 2 Introduction to XHTML

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

IMY 110 Theme 7 HTML Tables

HTML Images - The <img> Tag and the Src Attribute

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

Creating Accessible Web Sites with EPiServer

Session 3.1 Objectives Review the history and concepts of CSS Explore inline styles, embedded styles, and external style sheets Understand style

Programmazione Web a.a. 2017/2018 HTML5

What You Will Learn Today

2.1 Origins and Evolution of HTML. 2.3 HTML Document Structure

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

Creating Tables in a Web Site Using an External Style Sheet

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

CS 1124 Media computation. Lab 9.3 October 24, 2008 Steve Harrison

Chapter 7 Tables and Layout

Wireframe :: tistory wireframe tistory.

Creating web pages Chapter 5. Structuring contents

HyperText Markup Language/Tables

ITNP43: HTML Lecture 3

Chapter 7 Tables and Layout

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

Tables *Note: Nothing in Volcano!*

Hyper Text Markup Language HTML: A Tutorial

Brief Intro to HTML. CITS3403 Agile Web Development. 2018, Semester 1

Desire2Learn: HTML Basics

Table-Based Web Pages

Dreamweaver CS6. Level 3. Topics Working with Text, List, and tables Working with Images

Transcription:

Notes September 14, 2010 Intro to html <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <title> replace with your document's title </title> </head> <body> replace with your document's content </body> </html> Document Type Definitions (DTD) --- define every element, attribute, and entity along with the rules for their use HTML 4.01 Strict -- This DTD contains all HTML elements and attributes, but does not include presentational or deprecated elements (like font). Framesets are not allowed. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/tr/html4/strict.dtd"> HTML 4.01 Transitional -- This DTD contains all HTML elements and attributes, including presentational and deprecated elements (like font). Framesets are not allowed. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/tr/html4/loose.dtd"> HTML 4.01 Frameset -- This DTD is equal to HTML 4.01 Transitional, but allows the use of frameset content. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/tr/html4/frameset.dtd"> XHTML 1.0 Strict -- This DTD contains all HTML elements and attributes, but does not include presentational or deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd">

XHTML 1.0 Transitional -- This DTD contains all HTML elements and attributes, including presentational and deprecated elements (like font). Framesets are not allowed. The markup must also be written as well-formed XML. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> XHTML 1.0 Frameset -- This DTD is equal to XHTML 1.0 Transitional, but allows the use of frameset content. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd"> W3C Validator Images http://validator.w3.org/ Images Images can be used to make your Web pages distinctive and greatly help to get your message across. The simple way to add an image is using the <img> tag. Let's assume you have an image file called http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg /> The src attribute names the image file. Width and height attributes aren't strictly necessary but help to speed the display of your Web page, so let s scale it to 200 pixels wide by 150 pixels high. <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg width="200" height="150"/> People who can't see the image need a description they can read in its absence. Add a short description as follows: <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg width="200" height="150" alt="stonehenge" /> The alt attribute is used to give the short description, in this case "Stonehenge". This will be available IF the image does not or is prevented from loading. To handle a mouse over label, use instead <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg width="200" height="150" title="stonehenge">

For complex images, you may need to also give a longer description. Using the Wikipedia entry http://en.wikipedia.org/wiki/stonehenge you can add one as follows using the longdesc attribute: <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg width="200" height="150" alt="stonehenge longdesc=http://en.wikipedia.org/wiki/stonehenge /> Again this is not visible if the image loads, so for most cases, add a link <img src=http://ripples.cs.umass.edu/~adrion/pix_files/image001.jpg width="200" height="150" title="stonehenge longdesc="http://en.wikipedia.org/wiki/stonehenge"> <a href="http://en.wikipedia.org/wiki/stonehenge" title="stonehenge">[more about Stonehenge]</a> You can create images in a number of ways, for instance with a digital camera, by scanning an image in, or creating one with a painting or drawing program. Most browsers understand GIF and JPEG image formats, newer browsers also understand the PNG image format. To avoid long delays while the image is downloaded over the network, you should avoid using large image files. Generally speaking, JPEG is best for photographs and other smoothly varying images, while GIF and PNG are good for graphics art involving flat areas of color, lines and text. All three formats support options for progressive rendering where a crude version of the image is sent first and progressively refined. Links What makes the Web so effective is the ability to define links from one page to another, and to follow links at the click of a button. In the image example we linked to a URL, but we could link to a local image but we must define its path. For example, we could link to an image in the same directory by just giving its filename: <img src=stonehenge.jpg width="200" height="150"/> Or for example, we could link to an image in the subdirectory Images by just giving its pathname: <img src=images/stonehenge2.jpg width="200" height="150"/> Links are defined with the <a> tag. Lets define a link to the Stonehenge Wikipedia entry "http://en.wikipedia.org/wiki/stonehenge" in the same folder/directory as the HTML file you are editing: This a link to more information on <a href=" http://en.wikipedia.org/wiki/stonehenge">stonehenge</a>

The text between the <a> and the </a> is used as the caption for the link. It is common for the caption to be in blue underlined text. To link to a file in a the same or a subdirectory, you could use the pathname rather than a URL: This a link to more information on <a href="moreexamples/example2.html">stonehenge</a> If the file you are linking to is in a parent folder/directory, you need to put "../" in front of it, for instance: This a link back to the original <a href="../tmp.html">example</a> The use of relative paths allows you to link to a file by walking up and down the tree of directories as needed, for instance: <a href="../college/friends/john.html">john's page</a> Which first looks in the parent directory for another directory called "college", and then at a subdirectory of that named "friends" for a file called "john.html". You can turn an image into a hypertext link, for example, the following allows you to click on the company logo to get to the home page: <a href="moreexamples/example2.html"><img src=images/stonehenge2.jpg width="200" height="150"></a> Lists HTML supports three kinds of lists. The first kind is a bulletted list, often called an unordered list. It uses the <ul> and <li> tags, for instance: <ul> <li>the first list item</li> <li>the second list item</li> <li>the third list item</li> </ul> Note that you always need to end the list with the </ul> end tag, but that the </li> is optional and can be left off. The second kind of list is a numbered list, often called an ordered list. It uses the <ol> and <li> tags. For instance: <ol> <li>the first list item</li> <li>the second list item</li> <li>the third list item</li> </ol>

Like bulletted lists, you always need to end the list with the </ol> end tag, but the </li> end tag is optional and can be left off. The third and final kind of list is the definition list. This allows you to list terms and their definitions. This kind of list starts with a <dl> tag and ends with </dl> Each term starts with a <dt> tag and each definition starts with a <dd>. For instance: <dl> <dt>the first term</dt> <dd>its definition</dd> <dt>the second term</dt> <dd>its definition</dd> <dt>the third term</dt> <dd>its definition</dd> </dl> The end tags </dt> and </dd> are optional and can be left off. Note that lists can be nested, one within another. For instance: <ol> <li>the first list item</li> <li> the second list item <ul> <li>first nested item</li> <li>second nested item</li> </ul> </li> <li>the third list item</li> </ol> You can also make use of paragraphs and headings etc. for longer list items. Emphasis You can emphasize one or more words with the <em> tag, for instance: This is a really <em>interesting</em> topic! Forcing line breaks Just occasionally, you will want to force a line break. You do this using the br element, for example when you want to include a postal address: <p> <em>the Willows</em><br> 21 Runnymede Avenue<br> Morton-in-the-marsh<br>

Oxfordshire OX27 3BQ</p> The br element never needs an end-tag. In general, elements that don't take end-tags are known as empty elements, but today we write this as <br /> Introducing non-breaking spaces Browsers automatically wrap text to fit within the margins. Line breaks can be introduced wherever space characters appear in the markup. Sometimes you will want to prevent the browser from wrapping text between two particular words. For instance between two words in a brand name such as "Coca Cola". The trick is to use in place of the space character, for example: Sweetened carbonated beverages, such as Coca Cola, have attained world-wide popularity. It is bad practice to use repeated non-breaking spaces to indent text. Instead, you are advised to set the indent via style rules. Special characters For copyright notices, or trademarks it is customary to include the appropriate signs: Symbol Entity Example Copyright sign Copyright 1999 W3C Registered trademark MagiCo Trademark Webfarer Note HTML 4.0 defines for the trademark sign but this is not yet as widely supported as There are a number of other entities you may find useful: Symbol Entity Example Less than < < Greater than > > Ampersand & & nonbreaking space em dash quotation mark " " More special characters are attached at the end Tables Tables are used for information as well as for layout. You can stretch tables to fill the margins, specify a fixed width or leave it to the browser to automatically size the table to match the contents. Tables consist of one or more rows of table cells. Here is a simple example:

The markup for this is: <table border="1"> <tr><th>year</th><th>sales</th></tr> <tr><td>2000</td><td>$18m</td></tr> <tr><td>2001</td><td>$25m</td></tr> <tr><td>2002</td><td>$36m</td></tr> The table element acts as the container for the table. The border attribute specifies the border width in pixels. The tr element acts as a container for each table row. The th and td elements act as containers for heading and data cells respectively. Cell Padding You can increase the amount of padding for all cells using the cellpadding attribute on the table element. For instance, to set the padding to 10 pixels: <table border="1" cellpadding="10"> this has the effect: Cell Spacing By contrast the cellspacing attribute sets the space between the cells. Setting the cell spacing to 10: <table border="1" cellpadding="10" cellspacing="10"> has the effect: Table Width You can set the width of the table using the width attribute. The value is either the width in pixels or a percentage value representing the percentage of the space available between the left and right margins. For instance to set the width to 80% of the margins: <table border="1" cellpadding="10" width="80%"> which has the effect:

Text Alignment within Cells By default browsers center heading cells (th), and left align data cells (td). You can change alignment using the align attribute, which can be added to each cell or to the row (tr element). It is used with the values "left", "center" or "right": <table border="1" cellpadding="10" width="80%"> <tr align="center"><th>year</th><th>sales</th></tr> <tr align="center"><td>2000</td><td>$18m</td></tr> <tr align="center"><td>2001</td><td>$25m</td></tr> <tr align="center"><td>2002</td><td>$36m</td></tr> with the following result: The valign attribute plays a similar role for the vertical alignment of cell content. It is used with the values "top", "middle" or "bottom", and can be added to each cell or row. By default, heading cells (th) position their content in the middle of the cells while data cells align their content at the top of each cell. Empty Cells One quirk is the way browsers deal with empty cells, compare: 2003 with 2002 The former occurs when a cell is empty: <td></td> To prevent this, include a non-breaking space:

<td> </td> Cells that span more than one row or column Let's extend the above example to break out sales by north and south sales regions: Sales Year North South Total 2000 $10M $8M $18M 2001 $14M $11M $25M The heading "Year" now spans two rows, while the heading "Sales" spans three columns. This is done by setting the rowspan and colspan attributes respectively. The markup for the above is: <table border="1" cellpadding="10" width="80%"> <tr align="center"><th rowspan="2">year</th><th colspan="3">sales</th></tr> <tr align="center"><th>north</th><th>south</th><th>total</th></tr> <tr align="center"><td>2000</td><td>$10m</td><td>$8m</td><td>$18m</td></tr> <tr align="center"><td>2001</td><td>$14m</td><td>$11m</td><td>$25m</td></tr> You can simplify this by taking advantage of the fact that browsers don't need the end tags for table cells and rows: <table border="1" cellpadding="10" width="80%"> <tr align="center"><th rowspan="2">year<th colspan="3">sales <tr align="center"><th>north<th>south<th>total <tr align="center"><td>2000<td>$10m<td>$8m<td>$18m <tr align="center"><td>2001<td>$14m<td>$11m<td>$25m Notice that as the heading "Year" spans two rows, the first th element on the second row appears on the second rather than the first column. Borderless tables These are commonly used for laying out pages in a gridded fashion. All you need to do is to add border="0" and cellspacing="0" to the table element: This was produced using the following markup: <table border="0" cellspacing="0" cellpadding="10"> <tr><th>year</th><th>sales</th></tr> <tr><td>2000</td><td>$18m</td></tr>

<tr><td>2001</td><td>$25m</td></tr> <tr><td>2002</td><td>$36m</td></tr> If you leave out the cellspacing attribute you will get a thin gap between the cells, as shown below: Coloring your tables This page uses a style sheet to set the background colors for tables, with a different color for heading and data cells. The style rules I used are as follows: table { margin-left: -4%; font-family: sans-serif; background: white; border-width: 2; border-color: white; } th { font-family: sans-serif; background: rgb(204, 204, 153) } td { font-family: sans-serif; background: rgb(255, 255, 153) } The last two lines above set the background color for th and td cells to given red/green/blue values. The numbers are in the range 0 to 255 (fully saturated). Another way to set the background color is to use the bgcolor attribute. This works with nearly all browsers, and doesn't rely on style sheet support. The first step is to determine the hexadecimal values for the red, green and blue components of the color you wish to use. A convertor is included in the style page. <table border="0" cellspacing="0" cellpadding="10"> <tr> <th bgcolor="#cccc99">year</th> <th bgcolor="#cccc99">sales</th> </tr> <tr> <td bgcolor="#ffff66">2000</td> <td bgcolor="#ffff66">$18m</td> </tr> <tr> <td bgcolor="#ffff66">2001</td> <td bgcolor="#ffff66">$25m</td> </tr> <tr> <td bgcolor="#ffff66">2002</td>

<td bgcolor="#ffff66">$36m</td> </tr> Centering your tables You can position your tables midway between the left and right margins by using some CSS. If your style sheet includes the following rule, then all tables will be centered: table { margin-left: auto; margin-right: auto; } You can make this specific to a given table by giving it an id value, or by setting a class. The following example applies to tables with a class attribute value of centered: First here is the style rule: table.centered { margin-left: auto; margin-right: auto; } and here is the table markup: <table class="centered" border="1"> <tr><th>year</th><th>sales</th></tr> <tr><td>2000</td><td>$18m</td></tr> <tr><td>2001</td><td>$25m</td></tr> <tr><td>2002</td><td>$36m</td></tr> and here is how it is rendered in your browser: Note that you can replace the border attribute by CSS rules for greater control over the appearence of table and cell borders. See the style guide for examples of how to set border styles. Making your tables accessible If you are unable to see the table it can be quite hard to understand what the table is about. The first step is to add information describing the purpose and structure of the table. The caption element allows you to provide a caption, and to position this above or below the table. The caption element should appear before the tr element for the first row. Projected sales revenue by year

Year Sales which was produced by the following markup: <table border="1" cellpadding="10" width="80%"> <caption>projected sales revenue by year</caption> <tr align="center"> <th>year</th><th>sales</th> </tr> <tr align="center"><td>2000</td><td>$18m</td></tr> <tr align="center"><td>2001</td><td>$25m</td></tr> Here is the same table with align="bottom" added to the caption element: Projected sales revenue by year Year Sales The table element's summary attribute should be used to describe the structure of the table for people who can't see the table. For instance: "the first column gives the year and the second, the revenue for that year". <table summary="the first column gives the year and the second, the revenue for that year"> Specifying the relation between header and data cells When a table is rendered to audio or to Braille, it is useful to be able to identify which headers describe each cell. For instance, an aural browser could allow you to move up and down or left and right from cell to cell, with the appropriate headers spoken before each cell. To support this you need to annotate the header and/or data cells. The simplest approach is to add the scope attribute to header cells. It may be used with the following values: 1. row: The current cell provides header information for the rest of the row that contains it. 2. col: The current cell provides header information for the rest of the column that contains it. Applying this to the example table gives: <table border="1" cellpadding="10" width="80%"> <caption>projected sales revenue by year</caption> <tr align="center"> <th scope="col">year</th> <th scope="col">sales</th> </tr>

<tr align="center"><td>2000</td><td>$18m</td></tr> <tr align="center"><td>2001</td><td>$25m</td></tr> For more complex tables, you can use the headers attribute on individual data cells to provide a space separated list of identifiers for header cells. Each such header cell must have an id attribute with a matching identifier. A final point is that you should consider using the abbr attribute to specify an abbreviation for long headers. This makes it tolerable to listen to lists of headers for each cell, for instance: <th abbr="w3c">world Wide Web Consortium</th>

Intro to unix pipes & filters file system see http://mally.stanford.edu/~sr/computing/basic-unix.html some commands will not work depending on the system ls --- lists your files ls -l --- lists your files in 'long format', which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified. ls -a --- lists all files, including the ones whose filenames begin in a dot, which you do not always want to see. mkdir dirname --- make a new directory cd dirname --- change directory. You basically 'go' to another directory, and you will see the files in that directory when you do 'ls'. You always start out in your 'home directory', and you can get back there by typing 'cd' without arguments. 'cd..' will get you one level up from your current position. You don't have to walk along step by step - you can make big leaps or avoid walking around by specifying pathnames. pwd --- tells you where you currently are. use of wildcards, cautions Reading & creating & deleting files cat filename ---prints the file to your terminal window more filename --- shows the first part of a file, just as much as will fit on one screen. Just hit the space bar to see more or q to quit. You can use /pattern to search for a pattern. nano filename --- is an editor that lets you create and edit a file. See below mv filename1 filename2 --- moves a file (i.e. gives it a different name, or moves it into a different directory (see below) cp filename1 filename2 --- copies a file rm filename --- removes a file. It is wise to use the option rm -i, which will ask you for confirmation before actually deleting anything. You can make this your default by making an alias in your.cshrc file. diff filename1 filename2 --- compares files, and shows where they differ wc filename --- tells you how many lines, words, and characters there are in a file chmod options filename history, processes ps --- lists running processes history - lists your most recent commands about users w --- tells you who's logged in, and what they're doing. Especially useful: the 'idle' part. This allows you to see whether they're actually sitting there typing away at their

keyboards right at the moment. who --- tells you who's logged on, and where they're coming from. Useful if you're looking for someone who's actually physically in the same building as you, or in some other particular location. finger username --- gives you lots of information about that user, e.g. when they last read their mail and whether they're logged in. Often people put other practical information, such as phone numbers and addresses, in a file called.plan. This information is also displayed by 'finger'. last -1 username --- tells you when the user last logged on and off and from where. Without any options, last will give you a list of everyone's logins. talk username --- lets you have a (typed) conversation with another user write username --- lets you exchange one-line messages with another user logging off exit logout