Chapter 2. Getting Started 컴퓨터 실험 1 Archi & Net 연구실 이광포.

Slides:



Advertisements
Similar presentations
June 1, 1999Vi Editor1 Introduction to UNIX C. Vi Editor.
Advertisements

A Guide to Unix Using Linux Fourth Edition
Editing with vi Or more fun than you thought you’d have without a mouse Prof. Chris GauthierDickey.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
Program Development Tools IDE vs point tools Two tool flavors exist for developing embedded software: -IDEs: (Integrated Development Environments) i.e.,
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Working Environment - - Linux - -.
Vi Editor TA for ITIS3100: Xu Fei
Chapter 5 Editing Text Files
UnixUnix Basic. Convention Italic text indicates text displayed by the computer system. For example, login: indicates a login prompt displayed by the.
CS 202 Computer Science II Lab Fall 2009 September 3.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
CS 497C – Introduction to UNIX Lecture 9: The vi/vim Editor Chin-Chih Chang
Starting Vi Opening an existing file vi filename Creating a new file vi filename In your workshop directory, create a new file called mysong vi mysong.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
Using Linux Text Editors. Use Non-Graphical Linux Text Editors Graphical Text Editor.
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
The UNIX development environment CS 400/600 – Data Structures.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
Software I: Utilities and Internals Lecture 2 – The vi Text Editor * Modified from Dr. Robert Siegfried original presentation.
Introduction to Vim Robbie CSCI2100 Data Structures Tutorial 3.
Chapter8 The vi Editor. Introduction to vi u Modes of Operation u The Work Buffer  During the editing session, vi make all changes in the buffer  Advantage.
VIM  This is the text editor you will use on the workstation.  You can also edit the text files under windows environment and upload it to the workstation.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
Basic vi Commands Michael Davis Phd Student, Atmospheric Science.
Tony Kombol.  Why text edit?  Many programs and features require configuration ▪ Configuration is kept in files ▪ Usually in the /etc directory  Changes.
Unix Session IV.
Text Editing February 2 nd, 2004 Class Meeting 3.
Chapter Three Text Editing1 System Programming Text Editing.
Unix Environment Input Output 2  List Content (ls) ◦ ls (list current directory) ◦ ls –all (include hidden files/folders)  Make directory (mkdir) ◦
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Lesson 4-Mastering the Visual Editor. Overview Introducing the visual editor. Working in an existing file with vi. Understanding the visual editor. Navigating.
Chapter 4 The File Structure. Contents u The Hierarchical File Structure u Directory and Ordinary Files u Directories u Access Permissions u Links.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Text editing and more basic commands CS 2204 Class meeting 3 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
2.4 vi 에디터. UNIX 표준 에디터 %vi filename 두 개 모드 명령어 모드 (command mode) initial mode, editing commands 텍스트 입력 모드 (text entry mode) enter text you'd like to.
Vi editor Pronounced: `vee eye‘’. Agenda Describe the background of vi Editor Use vi editor to: create text files edit text files Our Goal is to create.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started.
Amir Afzal UNIX Unbounded, 5th Edition Copyright ©2008 Chapter 6: The vi Editor – Last Look 1 of 55 Copyright ©2008 by Pearson Education, Inc. Upper Saddle.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
 Simple UNIX commands  I/O techniques in C++  Solutions to Lab#0 problems  Solutions to Lab#1 problems 1.
CS:414 introduction to Unix and Linux
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
Quality Thought Technologies
Getting started with CentOS Linux
Vi Editor.
Unix Fundamentals - Part iii vi Editor
Vim.
Vi Introduction Tony Kombol.
Linux 104 Training Module File Editing.
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
Getting started with CentOS Linux
Chapter 2 Basic vi Editor.
Lab 7 Shell Script Reference:
In the last class… The vi basics command, input and ex mode
Presentation transcript:

Chapter 2. Getting Started 컴퓨터 실험 1 Archi & Net 연구실 이광포

요점사항 u 유닉스 시스템 시작하기 u 로그인과 로그아웃 u Vi 에디터 이용하기 u 파일처리를 위한 기본 명령어

Using the UNIX System u Logging In  Login name  Password u Changing Your Password  Utility - passwd  Example [lab]/user3/kplee 4 > passwd passwd: Changing password for kplee Enter login password: New password: Re-enter new password: passwd (SYSTEM): passwd successfully changed for kplee u Logging Out  logout, exit or -D

Creating and Editing a File Using vi u Specifying a Terminal [lab]/user3/kplee 30 > echo $TERM vt100  Bourne Shell and Kourn Shell -.profile  C Shell -.login,.cshrc u Editing with vi  Mode - Command mode and Input mode  Input command : i, a, o  Moving the cursor - h, l, k, j  Go to line number - 500G  Deleting text - x, dw, dd, 5dd, 1,$dd  Yank - yy, Y  Search - /

Creating and Editing a File Using vi u Editing with vi (cont.)  Replace/Substitute l :s/aa/bb/g l :1,.s/aa/bb l :.,$/aa/bb l :s/^/aa/g l :s/$/aa/g  Join two line - J  Execution Shell - :sh  Include file - :r  Undo - u  Save and Exit - :wq, ZZ  Exit without save - :q!  Environment setting - :set number

Basic Command u Listing the Contents of a Directory  ls l option -a, -l, -g, -i u Displaying the Contents of a Text File  cat  more u Deleting a File  rm