CEE15 Introduction to Computing for Civil Engineers

CEE15 Introduction to Computing for Civil Engineers - CEE15...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CEE15 Introduction to Computing for Civil Engineers 1 Get started : login the computer use seasnet account. Then hit “ start button at the left bottom corner, hit “ run menu, fill in “ telnet ugrad.seas.ucla.edu and hit “ enter , and login use seasnet account again. After login, hit “ enter immediately, otherwise, you’ ll not be able to save your files. Finally, you are in the UNIX prompt window. Seasnet can be accessed anywhere by the command “ telnet ugrad.seas.ucla.edu , run it same way as stated previously. UNIX Commands Command Description ls dir List current (or specified) directory ls –al or ls -la dir Show long listing of current (or specified) directory cd . . Change to home directory Example: current directory is /w/class.02/ce/ce15y/ce15yta, then the home directory is /w/class.02/ce/ce15y cd Change to specified directory Pwd Show present working directory mkdir dir Make specified directory rmdir dir delete an empty directory rm file1 . .. n Remove file(s) rm -r dir1 . .. n Remove directory or directories cp file1 file2 Make a copy of file1 called file2 mv file1 file2 Rename file1 to file2 dir1 dir2 Rename dir1 to dir2 file dir Move file to directory cat file Lists contents of a file ~ Same as home directory . Same name in current directory. Example: cp ~/test . Means copying the “ test ” in home directory and put in current directory use the same name .. Same as directory above. Example: cd . ./. ./ If current directory is /w/class.02/ce/ce15y/ce15yta, after cd . ./. ./, it should be in is /w/class.02/ce/ * Same as all files. Example: rm d* Passwd Change password Clear Clear the screen Note: the commands in UNIX should be in lower case
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CEE15 Introduction to Computing for Civil Engineers 2 Using the Pico Text Editor in the Unix Environment Getting Started Pico is a simple text editor in the Unix environment. It is like a word processor, except it does not let you format the text, and the mouse will not work with it. The advantage of such a simple editor over a word processor is that the characters you type into the file are the only things that are in the file. (Word processors add other information that lets them keep track of the formatting.) This is usually an advantage when working on a Unix system. Starting and quitting pico To start pico type the command pico at your Unix prompt. The screen will look something like this: UW PICO(tm) 4.2 New Buffer ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos ^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text^T To Spell It uses the top line of the screen for displaying the file name and its status. The second line of the display is not used. The text at the bottom of the page tells you common commands in pico. The caret ^ means that you should hold down the control key as you press the key for the letter. These are control codes which are associated with different commands. The majority of lines, lines 3 through 21, are used for the display and editing of the actual text of the file.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/28/2011 for the course CE 13972 taught by Professor Chow during the Spring '09 term at University of California, Berkeley.

Page1 / 20

CEE15 Introduction to Computing for Civil Engineers - CEE15...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online