3. 리눅 ¶
보 리눅는 럼 , (?) 불 는데, 는 들 .
-
- 변 능
-
-
- 는
- 른
- 변 능
- 리눅
http://www-903.ibm.com/kr/linux/value/advantage/
- 느 리 링를 는 .
- 느 리 링를 는 .
5.1. 명 보 ¶
- mkdir (디리 만들)
- mkdir (디리)
- )cd temp_file
- )cd temp_file
- mkdir (디리)
- rmdir (디리 )
- rmdir (디리)
- )rm temp_file
- )rm temp_file
- rmdir (디리)
- cd (디리 동)
- cd (디리)
- )cd temp_file
- )cd temp_file
- cd .. 디리 동.
- ) cd .
- ) cd .
- cd (디리)
- ls ( 보)
- ls -l ( 보.)
- ls -1 ( 보.)
- . 러 번 ls -1l .
- ls -l ( 보.)
- cp ()
- cp (1) (2) => 1 2란 .
- ) cp aaa.txt bbb.txt
- ) cp aaa.txt bbb.txt
- cp 1 temp_file => 1 temp_file .
- cp 1 ../temp_file => 1 디리 디리 temp_file .
- cp (1) (2) => 1 2란 .
- rm ( )
- rm (1) 1 .
- rm (1) 1 .
- mv ( )
- cp 만 본 .
- mv aaa.txt ccc.txt => aaa.txt를 ccc.txt 바는 .
- mv aaa.txt ./temp_file => aaa.txt를 temp_file란 디리 .
- cp 만 본 .
- man (매뉴)
- man ( 명) . cp명 대 면 man cp를 면 .
- man ( 명) . cp명 대 면 man cp를 면 .
- chmod ( )
- ls -l 보면 -rwxrwxrwx 등 문 는데, 말.
- 는 3 . r: read, w: write, x: excute
- 부 대 3 . rwx부 례 u(user), g(group), o(others) .
- chmod ugo+rwx aaa.txt => aaa.txt를 user, group, others 는 .
- chmod u-r aaa.txt => aaa.txt user부 빼는.
- chmod 701 aaa.txt => user rwx , group , others x 만 .
- chmod ugo+rwx aaa.txt => aaa.txt를 user, group, others 는 .
- ls -l 보면 -rwxrwxrwx 등 문 는데, 말.
5.3.2. 명 모 ¶
- copy, paste 등 능 .
- 방 => 를 .
- G => 문
- w =>
- b =>
- 등등 명 , 부 (copy&paste) 명.
- y => 복
- yy => 복
- nyy => n 복(n )
- yw => 복
- nym => n 복(n )
- p => 붙
- 런 많 복 붙 명 .(n번 붙 등등)
- 물 명모 copy&paste만 는 , 복 등 명 .
5.4. vi C 보 ¶
- vi 를 .
- C 를 . , C++ C . , stdio.h printf등 는 . , main() 리 void 면 int .( 런는 모르 러 더.)
- . 는 cpp c .
- vi디를 gcc (명) 면 는데, 무 a.out .
- a.out 면 됩.
- 런 HelloWorld 만들 봅.
Unix Philosophy를 는 떨? 대 Software Tools 는 . 맨를 르는 미 만 뭔를 "" 볼 . 는 .
를 들면, apache . 리 sort, uniq, cut, grep, head 등 명 르 . 리 들 2003 6 IP IP 10 1등부 내 . (
~cpp grep "Jul/2003" access.log| cut -d' ' -f1 |sort|uniq -c|sort -rn|head -10| cut -f2
) 더 많 배 .