1 / 15

Basic of UNIX

Basic of UNIX. linus@sparcs.org. 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 명령어.

keren
Download Presentation

Basic of UNIX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic of UNIX linus@sparcs.org

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

  3. UNIX의 특징 • 뛰어난 통신기능 • 복수 사용자와 멀티태스킹의 지원 • 뛰어난 호환성 • 뛰어난 유연성

  4. UNIX 명령어 • 일반적인 명령어의 형태 command [-options] [parameters] • ex) $ ls –l hahaha.txt

  5. 입출력 방향의 전환 • command < fn 화일 fn 으로 부터 입력을 받는다. • command > fn 화일 fn 으로 출력한다. • command >> fn 화일 fn 의 끝에 그 결과를 추가한다. • command1 | command2 command1의 결과를 command2의 입력으로

  6. man & info • man - to see on-line reference manual • $ man man • $ man ls • info - for reading documentation • $ info info • $ info man

  7. 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

  8. 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

  9. File 조작 명령어(3) • ls • $ ls –al • option : -F, -l,-a,-t • grep • $ grep smith *.doc • $ grep "m.* w.*" test

  10. 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

  11. 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

  12. Directory 조작 명령어 • cd • $ cd public_html • pwd • mkdir • $ mkdir linus • rmdir • $ rmdir linus

  13. 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] &

  14. 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

  15. 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

More Related