본문 바로가기

ubuntu37

특정 라인부터 원하는 줄까지 출력하기 35라인에서부터 끝까지 출력 $ sed -n '35,$ p' file 여러 파일이 존재하는 경우 $ ls file* | while read file; do sed -n '35,$ p' $file > $file.line; done 여러 파일 합치기 $ cat file*.line > file.merge 2011. 10. 25.
리눅스에서 2TB 이상의 대용량 디스크 사용하기 리눅스 커널에서 GPT 를 지원해야 한다. 디스크 크기 확인 # fdisk -l /dev/sdb 파티션을 만들기 위i해 parted 명령어n를 이용한다. # parted /dev/sdb - 파티션 테이블 label을 만든다. (parted) mklabel gpt - Next, set the default unit to TB, enter: (parted) unit TB - 파티션한다. (parted) mkpart primary 0.00TB 2.00TB (parted) print (parted) quit 파일시스템을 만든다 # mkfs.ext3 /dev/sdb1 OR # mkfs.ext4 /dev/sdb1 디렉토리 마운트 # mkdir /data # mount /dev/sdb1 /data # df -H 2011. 10. 14.
How to install pasha on Ubuntu 11.04 Parallelized short read assembly of large genomes using de Bruijn graphs(link) 1. Download pasha : http://goo.gl/p8CK 2. Install TBB(Intel Threading Building Blocks) $ sudo apt-get install libtbb* 3. make 4. When error message show: In file included from Alsha.h:29, from KmerGen.cpp:2: ../google/sparse_hash_set:98:60: error: ext/hash_fun.h: No such file or directory make[1]: *** [../objs/KmerGe.. 2011. 9. 5.
우분투에 galaxy 설치하기 (참조 : http://wiki.g2.bx.psu.edu/Admin/Get%20Galaxy) 1. galaxy를 설치할 디렉토리를 생성 $ mkdir galaxy-python 2. python 바로가기를 설정 $ ln -s /usr/bin/python ~/galaxy-python/python 3. galaxy를 설치할 디렉토리를 경로에 추가 $ export PATH=~/galaxy-python:$PATH 4. galaxy 프로그램은 hg 명령을 통해 소스를 받아올 수 있다. 따라서 hg관련 프로그램을 설치해야 한다. 관련 사이트 : http://mercurial.selenic.com/wiki/ 간단하게 repository를 추가하여 설치 $ sudo apt-add-repository ppa:mercuri.. 2011. 8. 5.
ssh 접속이 느릴경우... 이유는 잘 모르겠다만...UseDNS no를 넣어주니 빨라진다... 아마도 SSH Server가 DNS Server를 이용하지 않고 클라이언트를 인식하는 것 같다.. 메뉴얼을 좀 더 읽어봐야겠다...흠.... 2011. 6. 30.
Free Up Cache Memory in Ubuntu 출처 : http://goo.gl/oexhJ Ever wondered how to remove the cache memory in Ubuntu? Linux kernels 2.6.16 and newer provide a mechanism to clear the inode, page, and dentry caches on demand. All you have to do is echo a value to the proc filesystem, and you’re done. Follow the recipe below: As this is a non-destructive operation and dirty objects are not freeable, run: sync To free pagecache: sudo s.. 2011. 4. 15.