본문 바로가기

OS

Unix find option find mtime option-mtime ?n/n : mtime은 파일내의 data를 마지막으로 변경한 날짜를 의미한다.(modified time) +n은 n일 또는 그보다 더 오래 전의 파일 -n은 오늘 부터 n일 전까지의 파일 n은 정확히 n일 전에 수정되었음을 의미한다. 더보기
File descriptor 1. 파일 디스크립터 (File Descriptor) : 시스템으로부터 할당받은 파일이나 소켓을 대표하는 정수 - 표준입력 및 표준출력도 파일 디스크립터로 표현이 되는데 이름은 프로그램이 시작되면 기본적으로 열리고, 종료 시 자동으로 닫힘.- 표준 입력 : 0 / 표준 출력 : 1 / 표준 에러 출력 2- 따라서 파일 오픈 or 소켓생성 시 부여되는 파일 디스크립터는 3부터 시작 * 즉, 파일 디스크립터란 시스템이 만들어 놓은 것을 가리키기 좋게 하기 위해 시스템이 우리들에게 건네주는 숫자 http://mintnlatte.tistory.com/266 참조 더보기
Inode 1. inode란? - 파일이나 디렉토리는 그에 해당하는 하나의 inode를 가지고 있으며, 이 inode는 그 파일에 대한 모든 정보를 가지고 있으며, 한 inode는 64bytes로 이루어진다.- 또한 이 inode를 가지고 있는 표를 시스템 inode 표 라고 한다.- 어떤 한 파일이나 디렉토리가 생성되면 하나의 inode가 만들어지고 그 inode가 i-list에 등록됨 - inode : 한 파일이나 디렉토리의 모든 정보를 갖고 있는 64bytes로 구성된 표- i-list : 한 파일 시스템에서 파일이나 디렉토리들의 inode를 갖고 있는 표- inumber : inode가 i-list에 등록되는 entry-number 2. inode의 내용 inode는 파일이나 디렉토리의 모든 정보를 가지고 .. 더보기
Linux filesystem mechnism (cp, mv) http://unix.stackexchange.com/questions/49299/what-is-linux-doing-differently-that-allows-me-to-remove-replace-files-where-win 참조 http://unix.stackexchange.com/questions/50466/how-does-cp-handle-open-files 참조 https://lists.mindrot.org/pipermail/openssh-unix-dev/2011-April/029487.html (cp 는 lock 이 안걸린다.) 요약하면 Linux 에서 파일을 지우거나 복사할 때 Lock 이 안걸린다. 그 이유는 delete 하는 과정은 Link counter를 지우고 file record에서.. 더보기
IBM Heap Dump 분석 준비물 : ha456.jar IBM 에서 .phd 파일은 heapDumpjavacore 시작하는 파일은 ThreadDump 1. HeapDump Procedure 1) 아래아 같이 jvm 옵션을 설정해두면 OOM이 났을 경우 path에 .hprof 파일 생성 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/zetice/bxm_home/batch_home/dump 2) ha , jca 툴 실행방법 java -xmx256m -jar ha456.jar 3) ha tool 설명서 https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W3b463571efc8_4f02_99af_3cbc0da4.. 더보기
HP-ux 이터늄 SVN 설치 ( 11.31 ) 1. swinstall -l ~ depot 할 때 permission 없다고 나오는데 http://community.hpe.com/t5/HP-UX/swinstall-%EC%8B%9C-error/td-p/1171093?profile.language=ko 여기에 나온대로 /etc/hosts와 /etc/rc.config.d/netconf 이 파일에 있는 hostname과 설정된 ip 동일한지 확인 누가 hostname을 이상한걸로 해놨음 바꾼뒤에 /sbin/init.d/swagentd -r (stop and restart) 2. swinstall -s depot있는 절대경로/gettext.depot (무조건 절대 경로 써줘야됨) 3. install 하기 전에 내가 설치할 depot을 한 번 enter 쳐줘야함.. 더보기
Linux Install (Ubuntu, VirtualBox) 0. VirtualBox는 VirtualBox-4.3.12-93733-Win.exe 이 버전 설치 - http://sk661208.tistory.com/entry/%EB%B2%84%EC%B8%84%EC%96%BC%EB%B0%95%EC%8A%A4-%EC%98%A4%EB%A5%98VirtualBox-Error 1. Linux 설치 - 이미지 받아오기 (ubuntu 이미지 http://releases.ubuntu.com/14.04/)- 저장소 선택할 때 SATA 가 아니라 IDE 로 잡아야 함.- http://itpangpang.xyz/81, http://itpangpang.xyz/107 (1,2 부로 설치 잘나와있음)- http://studyforus.tistory.com/222- 언어는 영어로 키보드는 한.. 더보기