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
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..
UNIX 의 특징
뛰어난 통신기능
복수 사용자와 멀티태스킹의 지원
뛰어난 호환성
뛰어난 유연성
UNIX 명령어
일반적인 명령어의 형태 command [-options] [parameters]
ex) $ ls –l hahaha.txt
입출력 방향의 전환
command < fn 화일 fn 으로 부터 입력을 받는다 .
command > fn 화일 fn 으로 출력한다 .
command >> fn 화일 fn 의 끝에 그 결과를 추가한다 .
command1 | command2 command1 의 결과를 command2 의 입력으로
man & info
man - to see on-line reference manual $ man man $ man ls
info - for reading documentation $ info info $ info man
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
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
File 조작 명령어 (3)
ls $ ls –al option : -F, -l,-a,-t
grep $ grep smith *.doc $ grep "m.* w.*" test
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
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
Directory 조작 명령어
cd $ cd public_html
pwd mkdir $ mkdir linus
rmdir $ rmdir linus
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] &
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
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