<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>EMSTONE Bebop &#187; Shell</title>
	<atom:link href="http://bebop.emstone.com/tags/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://bebop.emstone.com</link>
	<description>엠스톤 개발팀 블로그</description>
	<lastBuildDate>Sun, 29 Jan 2012 05:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
		<item>
		<title>SSH 디렉토리 백업하기</title>
		<link>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ssh-%25eb%2594%2594%25eb%25a0%2589%25ed%2586%25a0%25eb%25a6%25ac-%25eb%25b0%25b1%25ec%2597%2585%25ed%2595%2598%25ea%25b8%25b0</link>
		<comments>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 07:35:06 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[카스탈리엔]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1185</guid>
		<description><![CDATA[시간이 갈수록 자주 사용하는 명령어를 기억하지 못해 동일한 검색어로 구글링을 반복하는 경우가 점점 많아져서, 그런 수고를 덜기 위해 여기에 적어두는 글입니다.
SSH 원격 셸 명령어를 이용하여 디렉토리 전체를 복사하고자 할 때, 특히 파일의 수정일시, 권한, 심볼릭 링크 등을 그대로 이전하고자 할때 다음과 같이 실행하면 됩니다.

$ tar czpf - . &#124; ssh lethean@hades &#34;tar xzpvf - -C [...] <a href="http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[시간이 갈수록 자주 사용하는 명령어를 기억하지 못해 동일한 검색어로 구글링을 반복하는 경우가 점점 많아져서, 그런 수고를 덜기 위해 여기에 적어두는 글입니다.
SSH 원격 셸 명령어를 이용하여 디렉토리 전체를 복사하고자 할 때, 특히 파일의 수정일시, 권한, 심볼릭 링크 등을 그대로 이전하고자 할때 다음과 같이 실행하면 됩니다.

$ tar czpf - . &#124; ssh lethean@hades &#34;tar xzpvf - -C [...]]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2010/01/01/backup-directories-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>tcpdump를 이용한 네트워크 사용량 측정하기</title>
		<link>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tcpdump%25eb%25a5%25bc-%25ec%259d%25b4%25ec%259a%25a9%25ed%2595%259c-%25eb%2584%25a4%25ed%258a%25b8%25ec%259b%258c%25ed%2581%25ac-%25ec%2582%25ac%25ec%259a%25a9%25eb%259f%2589-%25ec%25b8%25a1%25ec%25a0%2595%25ed%2595%2598%25ea%25b8%25b0</link>
		<comments>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 06:30:24 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOSX]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=1152</guid>
		<description><![CDATA[업무상 실제 패킷 사용량을 측정할 필요때문에 여러가지 도구를 찾던 중 마땅한 걸 찾지 못해 직접 측정한 방식을 정리해 봅니다. 물론 이보다 더 좋은 방법들이 당연히 있을테지만, tcpdump 프로그램만 겨우 사용할 수 있는 환경에서 측정하는 법을 정리한 문서를 찾지 못해 남겨둡니다.
우선 어떤 방식으로든 해당 장비에 tcpdump 프로그램을 설치합니다.
그리고 측정하려는 과정이나 단계가 시작하는 동시에 다음과 같이 tcpdump [...] <a href="http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[업무상 실제 패킷 사용량을 측정할 필요때문에 여러가지 도구를 찾던 중 마땅한 걸 찾지 못해 직접 측정한 방식을 정리해 봅니다. 물론 이보다 더 좋은 방법들이 당연히 있을테지만, tcpdump 프로그램만 겨우 사용할 수 있는 환경에서 측정하는 법을 정리한 문서를 찾지 못해 남겨둡니다.
우선 어떤 방식으로든 해당 장비에 tcpdump 프로그램을 설치합니다.
그리고 측정하려는 과정이나 단계가 시작하는 동시에 다음과 같이 tcpdump [...]]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/2009/12/15/network-traffic-analysis-using-tcpdump/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
		<item>
		<title>파일 목록에서 최근 버전 얻기</title>
		<link>http://lethean.pe.kr/?p=334&#038;utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25ed%258c%258c%25ec%259d%25bc-%25eb%25aa%25a9%25eb%25a1%259d%25ec%2597%2590%25ec%2584%259c-%25ec%25b5%259c%25ea%25b7%25bc-%25eb%25b2%2584%25ec%25a0%2584-%25ec%2596%25bb%25ea%25b8%25b0</link>
		<comments>http://lethean.pe.kr/?p=334#comments</comments>
		<pubDate>Mon, 05 Jan 2009 09:21:31 +0000</pubDate>
		<dc:creator>lethean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://lethean.pe.kr/?p=334</guid>
		<description><![CDATA[이름이 &#8216;메이저버전-마이너버전-릴리스날짜&#8217; 식으로 구성된 파일 목록이, 예를 들어, 다음과 같이 주어졌을때(list.txt),
2.0-10-20100101
2.0-2-20080101
2.0-9-20090101
셸(shell)에서 가장 최신 마이너 버전을 얻는 방법은 다음과 같습니다.

$ sort -t- -k2,3 -n list.txt &#124; tail -1

sort 명령 옵션을 설명하면, &#8216;-t&#8217;는 필드 구분자, &#8216;-k&#8217;는 정렬 기준으로 사용할 필드 시작,끝 번호, &#8216;-n&#8217; 옵션은 필드를 문자가 아닌 숫자로 여겨서 판단하도록 하는 것입니다. 차이점이 궁금하신 분은 아래 두 [...] <a href="http://lethean.pe.kr/?p=334">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>이름이 &#8216;메이저버전-마이너버전-릴리스날짜&#8217; 식으로 구성된 파일 목록이, 예를 들어, 다음과 같이 주어졌을때(list.txt),</p>
<pre>2.0-10-20100101
2.0-2-20080101
2.0-9-20090101</pre>
<p>셸(shell)에서 가장 최신 마이너 버전을 얻는 방법은 다음과 같습니다.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" >$ <span>sort</span> <span>-t-</span> -k2,<span>3</span> <span>-n</span> list.txt | <span>tail</span> <span>-1</span></pre></div></div>

<p>sort 명령 옵션을 설명하면, &#8216;-t&#8217;는 필드 구분자, &#8216;-k&#8217;는 정렬 기준으로 사용할 필드 시작,끝 번호, &#8216;-n&#8217; 옵션은 필드를 문자가 아닌 숫자로 여겨서 판단하도록 하는 것입니다. 차이점이 궁금하신 분은 아래 두 명령의 결과를 비교해 보시길.</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" >$ <span>sort</span> <span>-t-</span> -k2,<span>3</span> <span>-n</span> list.txt
$ <span>sort</span> <span>-t-</span> -k2,<span>3</span> list.txt</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://lethean.pe.kr/?feed=rss2&#038;p=334</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-nc-nd/2.0/kr/</creativeCommons:license>
	</item>
	</channel>
</rss>

