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

6
Chapter 2. Chapter 2. Getting Started Getting Started 컴컴컴 컴컴 1 Archi & Net 컴컴컴 컴컴컴

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

Chapter 2.Chapter 2.Getting StartedGetting Started

컴퓨터 실험 1

Archi & Net 연구실 이광포

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

Using the UNIX SystemUsing the UNIX System Logging In

Login name Password

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

Logging Out logout, exit or <ctrl>-D

Creating and Editing a File Using viCreating and Editing a File Using vi

Specifying a Terminal[lab]/user3/kplee 30 > echo $TERM

vt100

Bourne Shell and Kourn Shell - .profile C Shell - .login , .cshrc

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 - /<word>

Creating and Editing a File Using viCreating and Editing a File Using vi

Editing with vi (cont.) Replace/Substitute

:s/aa/bb/g :1,.s/aa/bb :.,$/aa/bb :s/^/aa/g :s/$/aa/g

Join two line - J Execution Shell - :sh Include file - :r <filename> Undo - u Save and Exit - :wq, ZZ Exit without save - :q! Environment setting - :set number

Basic CommandBasic Command

Listing the Contents of a Directory ls

option -a, -l, -g, -i

Displaying the Contents of a Text File cat more

Deleting a File rm