15
Basic of UNIX [email protected]

Basic of UNIX

  • Upload
    keren

  • View
    35

  • Download
    2

Embed Size (px)

DESCRIPTION

Basic of UNIX. [email protected]. UNIX?. AT&T 사의 System V 계열 버클리대학의 BSD(Berkeley Standard Distribution) 계열 SUN 사의 SunOS, Solaris, IBM IBM 사의 AIX, SGI 사의 IRIX, DEC 사의 ULTRIX, HP 사의 HP-UX , etc. UNIX 의 특징. 뛰어난 통신기능 복수 사용자와 멀티태스킹의 지원 뛰어난 호환성 뛰어난 유연성. UNIX 명령어. - PowerPoint PPT Presentation

Citation preview

Page 1: Basic of UNIX

Basic of UNIX

[email protected]

Page 2: Basic of UNIX

UNIX?

AT&T 사의 System V 계열 버클리대학의 BSD(Berkeley Standard Distribution) 계열 SUN 사의 SunOS, Solaris, IBM IBM 사의 AIX, SGI 사의 IRIX, DEC사의 ULTRIX, HP 사의 HP-UX , etc..

Page 3: Basic of UNIX

UNIX 의 특징

뛰어난 통신기능

복수 사용자와 멀티태스킹의 지원

뛰어난 호환성

뛰어난 유연성

Page 4: Basic of UNIX

UNIX 명령어

일반적인 명령어의 형태 command [-options] [parameters]

ex) $ ls –l hahaha.txt

Page 5: Basic of UNIX

입출력 방향의 전환

command < fn 화일 fn 으로 부터 입력을 받는다 .

command > fn 화일 fn 으로 출력한다 .

command >> fn 화일 fn 의 끝에 그 결과를 추가한다 .

command1 | command2 command1 의 결과를 command2 의 입력으로

Page 6: Basic of UNIX

man & info

man - to see on-line reference manual $ man man $ man ls

info - for reading documentation $ info info $ info man

Page 7: Basic of UNIX

File 조작 명령어 (1)

cat $ cat file_name $ cat > new_file $ cat file1 file2 file3 > all_file

mv $ mv old_name new_name $ mv file ../doc/new_file

Page 8: Basic of UNIX

File 조작 명령어 (2)

cp $ cp file.org file.cp $ cp file.org ../doc $ cp file.org ../doc/file.cp

rm $ rm a.dat $ rm -r ../doc $ rm -i a.* option : -i, -f, -r

Page 9: Basic of UNIX

File 조작 명령어 (3)

ls $ ls –al option : -F, -l,-a,-t

grep $ grep smith *.doc $ grep "m.* w.*" test

Page 10: Basic of UNIX

File 조작 명령어 (4)

more/tail $ tail letter.doc % tail -100 letter.doc

chmod -rwxrwxrwx

d u g o $ chmod u+x note.doc $ chmod go-rwx $ chmod o-rwx test.c $ chmod 777 note.doc $ chmod 700 test.c

Page 11: Basic of UNIX

File 조작 명령어 (5)

find find directory [expression] $ find dir/ -name "sample.txt" $ find . –name "s" –exec rm –f {} \; expressions

-name , -type, -user -group , -mtime n , -exec

Page 12: Basic of UNIX

Directory 조작 명령어

cd $ cd public_html

pwd mkdir $ mkdir linus

rmdir $ rmdir linus

Page 13: Basic of UNIX

Job Control

ps PID TTY TIME CMD 24104 pts/14 0:00 man 24060 pts/14 0:10 vi 24059 pts/14 0:00 bash

bg, fg, kill, [command] &

Page 14: Basic of UNIX

Displaying system information

du, df w, who – show who is logged in finger – lookup user information whoami – who am I id – printing real UID and GID

Page 15: Basic of UNIX

Using network

telnet – telnet client mutt, pine – Mail User Agent ftp, ncftp – ftp client wget - a utility to retrieve files lynx, w3mmee – text web browser talk