본문 바로가기

[리눅스] screen 사용하기 (여러개의 tab을 띄우는 효과) # screen 후에 enter 이런 환경에서 ctrl + a + c : 새로운 screen을 만들기. ctrl + a + 0, 1, 2, 3, .. : 여러개의 screen을 선택하기 ctrl + a + a : 이전 창으로 이동 ctrl + a + n : 다음 창으로 이동 ctrl + a + K : 보고있는 가상터미널 화면을 지웁니다. ctrl + a + w : 창 리스트를 보여줍니다. ctrl + a + d : 현재 상태에서 detach 시킴 ctrl + a + S : 스크린 창 분할하기 ctrl + a + tab : 분할된 스크린 창 이동하기 ctrl + a + Q : 분할된 스크린 창 닫기 # screen -RR 을 하면 detach된 상태에서 시작한다. 더보기
[리눅스] top 사용법과 메뉴얼 top에는 여러 option이 있지만 그중에서 우리는 다음과 같은 option을 사용한다. # top -b -i -H -n 20 >> test_proc 여기서 b는 batch를 뜻하고, i는 idle, H는 thread를 포함시키는 것을 뜻한다. NAME top - display Linux tasks SYNOPSIS top -hv | -bcHisS -d delay -n iterations -p pid [, pid ...] The traditional switches ’-’ and whitespace are optional. DESCRIPTION The top program provides a dynamic real-time view of a running system. It can display syst.. 더보기
[리눅스] 현재 kernel의 load를 확인하는 방법 출처: http://www.joomlaperformance.com/articles/server_related/how_to_track_down_a_high_server_load_5_16.html top -b -i -n 20 >> ./top_procs 이렇게 하면 현재 폴더에 top_procs파일이 생긴다. 1 top - 09:00:42 up 3 min, 3 users, load average: 0.07, 0.16, 0.08 2 Tasks: 110 total, 1 running, 109 sleeping, 0 stopped, 0 zombie 3 Cpu(s): 2.5%us, 7.7%sy, 0.4%ni, 85.8%id, 3.0%wa, 0.0%hi, 0.7%si, 0.0%st 4 Mem: 1035400k total.. 더보기
[리눅스] kgdb를 이용해서 커널 디버깅하기 (2.6.24 에서도) kgdb patch for linux 2.6.24 Posted on July 26, 2010 by admin If you have searched the internet for kgdb support in Linux 2.6 kernel you would have noticed the following : kgdb support was integrated into the mainline kernel starting from kernel version 2.6.26 The last kernel version for which the out-of-tree patch is available from LinSysSoft (the company responsible for kgdb support in Linux) i.. 더보기