/>

In the LAB
Note: putty.exe is located on the C drive: (C:/) which can be accessed
via "My Computer" (windows/E)
puTTY on Intel PC connected to jupiter.clarion.edu, a Sun running Unix Unix bash shell quota -v ls [la] [lu] [-R] cd [tab command completion] mv [tab command completion] cp [tab command completion] rm [tab command completion] CC [tab command completion] mkdir rmdir ps alias who man
'&' running processes in the background / fg/ bg 'program1 &' runs in the background 'ctrl-z' stops program (but can be resumed - NOT killed) 'bg' resumes in the background 'fg' brings program into the foreground 'jobs' shows all jobs 'ps' shows processes '|' pipes 'cat x.out | wc' puts the output of cat into the wc command 57 57 556 '>' output redirection 'ls > x.out' puts the output of the ls command into a file, x.out '>>' output redirection and append 'ls > x.out' appends the output of the ls command onto a file, x.out '<' input redirection 'a.out < x.in' where x.in is a file that has the input for the program

emacs is a powerful text editor.
This table is from wikipedia
Command Keystroke(s) Description forward-charC-fMove forward one character (right). backward-charC-bMove backward one character (left). previous-lineC-pMove to previous line (up). next-lineC-nMove to next line (down). forward-wordM-fMove forward one word. backward-wordM-bMove backward one word. beginning-of-lineC-aMove to beginning of line. end-of-lineC-eMove to end of line. isearch-forwardC-sStart incremental search forward. isearch-backwardC-rStart incremental search backward. undoC-/Undo last change, and prior changes if pressed repeatedly. keyboard-quitC-gAbort the current command. fill-paragraphM-qWrap text in ("fill") a paragraph. find-fileC-x C-fVisit a file (you specify the name) in its own editor buffer. save-bufferC-x C-sSave the current editor buffer in its visited file. write-fileC-x C-wSave the current editor buffer as a file with the name you specify. save-buffers-kill-emacsC-x C-cOffer to save changes, then exit Emacs. set-markerC-[space]/C-@Set a marker from where you want to cut or copy. cutC-wCut all text between the marker and the cursor. copyM-wCopy all text between the marker and the cursor. pasteC-yPaste text from the emacs clipboard paste specialC-x C-rPaste special text from the emacs clipboard (win32 only) kill-bufferC-x kKill a buffer by its name, or the current one if no name specified
Why vi? ( vi tutor) Despite its age, vi is still an important tool today. This is demonstrated by the fact that every unix/linux distribution released over the last twenty years is likely to have a copy installed by default. Since the original release of vi, many derivatives have been written (such as vim, vile and elvis), with usability and functionality added along the way. Because of this, vi is probably one of the most evolved and stable text editors in the world.
Many of the more recent vi clones are also intelligent enough to know about the type of document you are editing, and will help you out by automatically indenting your text (in the case of HTML or C, for example) or by highlighting the syntax to make your work much clearer. In the great Unix tradition, features that bug you or help you can be turned on and off at your preference, and spending a few minutes customising vi to your liking can save you hours of work in the long run. About the vi editor
////////////////////////////////// // // Author : Wyatt Date : 1/1/2000 // Purpose: To ask a user's name and to say hello // Design: Ask Name // Store name // greet user using stored name // // File: Hello.cpp ///////////////////////////////// #include <iostream> using namespace std; int main ( ) { // Local Data string firstName; //input variable // Get name from user and store cout << "Enter your first name and press return: "; cin >> firstName; // Display message and name cout << "Hi " << firstName << '.' << endl; cout << "We hope you enjoy studying C++ !\n"; return 0; }