일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- CPU
- cadre
- rm
- 리눅스
- rsync
- Bash
- 쇼펜의상속자 #킨텍스메가쇼 #섬유향수탈취제
- ext4
- Linux
- Kernel
- windows
- DNS
- http
- Disk
- pid
- iptables
- Hack
- Python
- PORT
- PERL
- 솔라리스
- goaccess
- apachetop
- 디스크
- rm -rf
- Performance
- 좌절교육
- Cache
- 칭찬교육
- ext3
- Today
- Total
목록리눅스/bash (9)
Ben's
http://coffeenix.net/board_view.php?bd_code=1721 제 목 : 쉘스크립트에서 진수변환 작성일 : 2011.5.17(화) 작성자 : 좋은진호(truefeel, http://coffeenix.net/ ) 1. 10진수로 변환하기(Hexadecimal, Octal, binary -> Decimal) sh와 bash는 쉘 자체에 진수 변환 기능이 있다. csh는 진수 변환이 없지만, 외부 명령으로 처리할 수있다. 1) sh와 bash에서 * 16진수 -> 10진수 : echo $((0x123)) * 8진수 -> 10진수 : echo $((0123)) $ echo $((0x123)) 291 $ echo $((0xabc)) 2748 $ echo $((0123)) 83 $ echo..
보통은 bridge 장치로 eth0, eth1을 묶게 되면 어디가 inbound 인지 어디가 outbound 인지 구분을 잘 할수가 없어 난감했었는데요 gateway는 bridge firewall 바깥(외부)에 있다는 점을 이용하여 스크립트를 만들어 봤습니다. #!/bin/bash # IF_NAME=`ifconfig | grep bridge | awk '{print $1}' | head -1`; GW_MAC=`route | egrep default | awk '{print $2}' | xargs -i arp {} | egrep $IF_NAME | head -1 | awk '{print $3}'` IF_OUT_FLAG=`brctl showmacs $IF_NAME | egrep -i $GW_MAC | awk..
BASENAME(1) User Commands BASENAME(1) NAME basename - strip directory and suffix from filenames [root@mpkangTest html]# basename /home/apache/bin/apachectl apachectl 유용하네요 ㅎ
http://www.thegeekstuff.com/2013/02/wc-nl-examples/ How to Count Number of Lines in a File in Linux (wc and nl Command Examples) Linux commands wc and nl will help you to identify the number of words, lines, bytes, etc, in a file. This tutorial explains how to use these two very useful command with various examples. The basic text file that will be used in examples throughout this article is sho..
#!/bin/bash # # created by nhko 090612 # version 0.3 ############################################################# # ** 추가된 기능 ** ############################################################# # 프로그램 중복실행 체크 # 백업 디스크 유무 체크 # rsync 패스 자동검색 # 프로그램 실행 전 check_disk.pl 수행 # 백업 파일명 수정 # source 를 /home/download 전체로 지정. # 원하는 파일은 찾는 시간보다 한시간 후를 기준으로 해야 한다. ################################################..
http://blog.naver.com/PostView.nhn?blogId=fyman&logNo=140120803395 apt-get install language-env set-language-env -R
쉘 스크립트에서 글자 색 적용Linux-Kernel 2012/01/07 01:12 http://blog.naver.com/ssregimin/147674771 전용뷰어 보기 참고글: http://www.bashguru.com/2010/01/shell-colors-colorizing-shell-scripts.html echo -e "\033[COLOR1;COLOR2m sample text\033[0m" [ TEXT ATTRIBUTES ] ANSI CODE Meaning 0 Normal Characters 1 Bold Characters 4 Underlined Characters 5 Blinking Characters 7 Reverse video Characters [ COLORS ] Bold off colo..