iptables 그림보면서 이해하기

리눅스에서의 iptables 내가 처음 iptables을 이해 하려고 했을때가 10년전이였던것 같은데 기초적인 지식이 부족해서 그 당시에는 외계어를 읽는 듯한 기분이였다. 그리고도 계속 어떻게 사용해야 하는지 모르다가 일을 하는 와중에 하나씩 해보면서 깨우쳐 갔다. 그래서 아래의 글은 틀린내용이 다소 있을 수 있으며 그 부분을 지적해 준다면 감사할 따름이다. 이론적인 부분은 배제하고 아래의 그림을 보고 자신의 상황에 따라 […]

Bash Shell로 Apache에 CGI 설정하는 방법

아파치 설치 후 userdir 모듈 enable @@ 아파치 리스타트 sudo a2enmod userdir sudo service apache2 restart userdir.conf 파일 수정 user1@ubuntu-msi-laptop:~/public_html/cgi-bin$ cat /etc/apache2/mods-enabled/userdir.conf <IfModule mod_userdir.c> UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> […]

Linux Command 정리 #1

################################################################################ 모든 파일에서 문자열 검색 ################################################################################ @@ R옵션 : 재귀검색 grep -R ‘New MySQL’ ./ 추가 팁들 ——————————————————————————– Task: Display only words ——————————————————————————– You can select only those lines containing matches that form whole words using the -w option. In this example, search for word ‘getMyData()’ only in ~/projects/ dirctory: $ grep -w -R ‘getMyData()’ […]

sed 명령어 사용법

좋은 지침서로는 O’Reilly handbook for sed and awk 이랍니다. 책 제목인지, 책 설명인지는 모르겠지만(한번도 본적이 없어서) 이정도면 원서를 다루는 서점에서는 찾을 수 있겠지요. (영어입니다. 껄껄) “UNIX in a Nutshell” , “UNIX Power Tools” 같은 책도 추천한다네요. (게을러서인지, 아직 한글 관련 문서를 발견하지를 못했습니다. 아시는 분 있으면 소개좀. 책 말고요 – 돈이 없어서 ) sed: 무엇에 […]

SVN 명령어 활용 목록

SVN 명령어 SVN 히스토리 보기 $ svn log $ svn log –limit 4 $ svn log -l 4 SVN 파일 속성 만들기 (commit 무시) http://blog.naver.com/PostView.nhn?blogId=joycestudy&logNo=100097621794 $ svn propset svn:ignore POC . 현재 디렉토리상 POC 디렉토리 commit을 무시하라는 의미이다. 하나씩 업데이트 $ svn commit –username “mlink_1” –password “mlink_1” -m “refs #5402 광고별 통계 추가” template/manage/report/man_advertiser_report SVN […]

유닉스/리눅스 명령어 팁

apropos whatis DB를 검색하여 검색하는 명령어와 관련이 있는 명령어를 간단한 설명과 함께 보여준다. # apropos jpeg mlinkkorea@mlinkkorea:~$ apropos jpeg pdftocairo (1) – Portable Document Format (PDF) to PNG/JPEG/PDF/PS/EPS/SVG using cairo arch 시스템의 CPU 타입을 보여준다. arp 연결하고자 하는 시스템의 MAC주소 확인 mlinkkorea@mlinkkorea:~$ arp Address HWtype HWaddress Flags Mask Iface 192.168.0.1 ether 00:26:16:59:4f:2c C eth0 Jin-won-ui-iPad.local […]