<?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/"
	>

<channel>
	<title>Guitina &#187; 출력</title>
	<atom:link href="http://www.guitina.com/tag/%ec%b6%9c%eb%a0%a5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guitina.com</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 03:38:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux &#8211; Output 파일로 저장하기</title>
		<link>http://www.guitina.com/2009/07/02/linux-output-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%ec%a0%80%ec%9e%a5%ed%95%98%ea%b8%b0/</link>
		<comments>http://www.guitina.com/2009/07/02/linux-output-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%ec%a0%80%ec%9e%a5%ed%95%98%ea%b8%b0/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 03:41:56 +0000</pubDate>
		<dc:creator>도니</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[리디렉트]]></category>
		<category><![CDATA[출력]]></category>

		<guid isPermaLink="false">http://www.guitina.com/?p=60</guid>
		<description><![CDATA[CLI (Command Line Interface) 도스와 같은 리눅스 CLI를 쓰다보면 참 답답할때가 있다. GUI (Graphical User Interface) 에 너무 적응이 되서 어쩔줄을 모를때가 한두번이 아니다.
CLI를 쓸때는 항상 내가 무엇을 해야 할지 알아야 한다. GUI에선 여기저기 클릭하다보면 소 뒷걸음질치다 쥐잡는 격으로 답을 찾곤 하는데
CLI에선 그런 경우가 아예 없다고 보면 된다. 요새 리눅스는 GUI 버젼이 나와서 쓰기 많이 [...]]]></description>
			<content:encoded><![CDATA[<p>CLI (Command Line Interface) 도스와 같은 리눅스 CLI를 쓰다보면 참 답답할때가 있다. GUI (Graphical User Interface) 에 너무 적응이 되서 어쩔줄을 모를때가 한두번이 아니다.</p>
<p>CLI를 쓸때는 항상 내가 무엇을 해야 할지 알아야 한다. GUI에선 여기저기 클릭하다보면 소 뒷걸음질치다 쥐잡는 격으로 답을 찾곤 하는데<br />
CLI에선 그런 경우가 아예 없다고 보면 된다. 요새 리눅스는 GUI 버젼이 나와서 쓰기 많이 편해졌는데 그래도 안정성때문에 아직도 CLI를 쓰는 경우가 많다.</p>
<p>내가 사용하는 서버중 절대 안정성을 원하는 서버는 CLI로 설정했는데<br />
안정적이다보니 몇주나 혹은 몇달만에 로긴하곤 한다. 그럴때마다 같은 문제에 접하게 되면 그때 어떻게 했더라? 하면서 기억을 더듬는데 참 난감하다.. ㅡㅡ;</p>
<p>그중 한가지가 리눅스를 처음 접했을때 ls 명령문&#8230;.</p>
<p>파일이 수십개가 있는 디렉토리를 보고 싶을때 ls 엔터키를 치면 내가 보고 싶은 줄은 벌써 지나가버리고 없다.</p>
<p>주변에 물어 볼 사람도 없고 ㅜㅜ; 그때 참 내 자신이 불쌍했다. ls 몇번씩 치면서 지나가는 줄 다시 보려고 하고&#8230;&#8230;</p>
<p>정답은 ls | more 이때 출력이 스크린보다 더 크면 한줄씩 진행되어 볼수 있게 된다.</p>
<p>하지만 스크립트등을 디버그 할때 에러 출력이나 다른 출력들을 보고 싶을 때 more는 아무 쓸모도 없다.</p>
<p>그럴땐</p>
<blockquote><p>./my_script &gt; file         &lt;&#8211; 정상 출력</p>
<p>./my_script 2&gt; file       &lt;&#8211; 에러 출력</p>
<p>./my_script &amp;&gt; file      &lt;&#8211; 모든 결과 출력</p></blockquote>
<p>위처럼 file로 결과를 저장해서 보면 된다.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guitina.com/2009/07/02/linux-output-%ed%8c%8c%ec%9d%bc%eb%a1%9c-%ec%a0%80%ec%9e%a5%ed%95%98%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

