일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- bash
- GIT
- JavaScript
- netsh
- 단축키
- maVen
- lsof
- Windows
- Source
- Quartz
- import
- 네트워크
- IntelliJ
- context
- Windows 10
- ssh
- grep
- DB 도메인
- tomcat
- web.xml
- find
- xargs
- port
- 공통표준용어
- Eclipse
- Mac
- profile
- resource
- copy-dependencies
- VirtualBox
- Today
- Total
목록OS & Shell/Linux (83)
develog
find 사용 $ find ./ -name '*.xml' | xargs grep -i --color=auto 'search_text' $ find ./ -name 'server.xml' | xargs grep '
ps 로 검색후 kill 하기 ps aux | grep java | grep -v grep | grep 'tomcat6/' | awk '{print $2}' | xargs kill -9
30일 이상 지난 파일 조회 find -type f -ctime +30 -exec ls -al --time-style=long-iso {} \; 30일 이상 지난 파일 삭제 find -type f -ctime +30 -exec rm -rfv {} \;
파일 생성touch aa.txt access time 변경 (-t YYYYMMDDhhmm.ss)touch -a -t 201803010101.00 aa.txt modify time 변경 (-t YYYYMMDDhhmm.ss)touch -m -t 201803010101.00 aa.txt
방법1 find /home/dev/tomcat*/ -type f -name 'catalina.sh' -exec bash -c 'echo; {} start' \; find /home/dev/tomcat*/ -type f -name 'catalina.sh' -exec bash -c 'echo; {} stop' \; 방법2 # find tomcat find /home/dev/tomcat*/ -type f -name 'catalina.sh' # run tomcat list=(/home/dev/tomcat1/bin/catalina.sh /home/dev/tomcat2/bin/catalina.sh) for i in ${list[*]}; do bash $i stop; done command line 에서 바로 실행