<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2655734322446830314</id><updated>2025-03-24T19:53:54.763-07:00</updated><category term="팁"/><category term="ubuntu"/><category term="문제해결"/><category term="명령어"/><category term="shell"/><category term="color"/><category term="crontab"/><category term="curl"/><category term="cygwin"/><category term="dns 서버 설정"/><category term="docker"/><category term="ds4"/><category term="grep"/><category term="hostname"/><category term="network"/><category term="notify-send"/><category term="process"/><category term="ssh"/><category term="su"/><category term="svn"/><category term="timezone"/><category term="virtualbox"/><category term="visudo"/><title type='text'>Linux 사용</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-7348778306913612301</id><published>2019-01-24T20:13:00.000-08:00</published><updated>2019-01-24T20:13:05.916-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dns 서버 설정"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu + dns 서버 설정</title><content type='html'>참고: &lt;a href=&quot;http://wani.kr/posts/2017/03/22/ubuntu-resolvconf-settings-summary/&quot;&gt;http://wani.kr/posts/2017/03/22/ubuntu-resolvconf-settings-summary/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
파일 편집&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo vi /etc/resolvconf/resolv.conf.d/tail&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
또는&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo emacs -nw /etc/resolvconf/resolv.conf.d/tail&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
아래 내용 입력&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;nameserver 8.8.8.8&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
서비스 재시작&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo service resolvconf restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/7348778306913612301/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/ubuntu-dns.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7348778306913612301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7348778306913612301'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/ubuntu-dns.html' title='Ubuntu + dns 서버 설정'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-1062258556428842559</id><published>2019-01-09T19:48:00.001-08:00</published><updated>2019-01-09T19:48:24.878-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="color"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>bash color</title><content type='html'>참고:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;stackoverflow: &lt;a href=&quot;https://stackoverflow.com/a/5947802&quot;&gt;https://stackoverflow.com/a/5947802&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Wikipedia (ANSI escape code):&amp;nbsp;&lt;a href=&quot;https://en.wikipedia.org/wiki/ANSI_escape_code&quot;&gt;https://en.wikipedia.org/wiki/ANSI_escape_code&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
예)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ echo -e &quot;\033[0;31mhello\033[0m world&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
설명:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;echo -e 로 수행해야 escape 가 작동&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;\033[&lt;/span&gt; 으로 시작&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;0;31m&lt;/span&gt; 에서 앞에 0; 은 0; 또는 1; 로 설정&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;31m&lt;/span&gt; 은 30~37 까지 글자 색상 선택 가능 (40~47 은 배경 색)&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;\033[0m&lt;/span&gt; 은 기본 설정으로 되돌림&lt;/li&gt;
&lt;li&gt;world 는 기본 색상으로 표시됨&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
배경과 글자색 동시 지정&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ echo -e &quot;\033[0;42m\033[1;37mhello\033[0m&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;\033[0;42m&lt;/span&gt; 배경색 지정&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;\033[1;37m&lt;/span&gt; 글자색 지정&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/1062258556428842559/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/bash-color.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/1062258556428842559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/1062258556428842559'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/bash-color.html' title='bash color'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-8347095424798638061</id><published>2019-01-09T19:40:00.004-08:00</published><updated>2019-01-09T19:40:51.576-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="timezone"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>ubuntu timezone 설정</title><content type='html'>&lt;br /&gt;
참고: &lt;a href=&quot;https://www.lesstif.com/pages/viewpage.action?pageId=61899162&quot;&gt;https://www.lesstif.com/pages/viewpage.action?pageId=61899162&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo apt install tzdata&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/8347095424798638061/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/ubuntu-timezone.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/8347095424798638061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/8347095424798638061'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/ubuntu-timezone.html' title='ubuntu timezone 설정'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-2709875760246138047</id><published>2019-01-08T20:40:00.001-08:00</published><updated>2019-08-18T23:06:46.998-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><title type='text'>Docker + ubuntu</title><content type='html'>&lt;h3&gt;
Docker + ubuntu&lt;/h3&gt;
&lt;br /&gt;
&lt;h4&gt;
설치&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo apt install docker-ce&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Image 목록&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker images&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Image 가져오기&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker pull ubuntu&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Image 지우기&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker rmi ubuntu&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Container 목록&amp;nbsp;&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker ps -a&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
실행&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker run -ti ubuntu:12.04 /bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Daemon 으로 실행&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker run -d -ti ubuntu:12.04 /bin/sshd -D&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Container 재실행&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker restart $CONTAINER_ID&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Host path 공유&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker run -ti ubuntu:12.04 -v /opt:/opt /bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
dns 설정&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker run --dns 8.8.8.8 -ti ubuntu:12.04 /bin/bash&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Container 를 image 로 저장&lt;/h4&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker commit $CONTAINER_ID $IMAGE_NAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
언어 설정&lt;/h4&gt;
참고:&amp;nbsp;&lt;a href=&quot;https://www.44bits.io/ko/post/setup_linux_locale_on_ubuntu_and_debian_container&quot;&gt;https://www.44bits.io/ko/post/setup_linux_locale_on_ubuntu_and_debian_container&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ export LC_ALL=C.UTF-8&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
GUI 사용&lt;/h4&gt;
docker run 옵션에 추가&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;-e DISPLAY=$DISPLAY&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;-v /tmp/.X11-unix:/tmp/.X11-unix&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;-e QT_X11_NO_MITSHM=1&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
host machine 에서 xhost 연결 허용&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ xhost +&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Docker compose&lt;/h4&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.docker.com/compose/&quot;&gt;https://docs.docker.com/compose/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
설치 예) 리눅스&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://docs.docker.com/compose/install/&quot;&gt;https://docs.docker.com/compose/install/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo curl -L &quot;https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)&quot; -o /usr/local/bin/docker-compose&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo chmod +x /usr/local/bin/docker-compose&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ docker-compose --version&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
사용 예)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ docker-compose up -d&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ docker-compose down&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/2709875760246138047/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/docker-ubuntu.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/2709875760246138047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/2709875760246138047'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2019/01/docker-ubuntu.html' title='Docker + ubuntu'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-7609392560510921025</id><published>2018-11-21T22:29:00.000-08:00</published><updated>2018-11-21T22:29:11.798-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="su"/><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>su</title><content type='html'>&lt;h2&gt;
su&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://ko.wikipedia.org/wiki/Su_(%EC%9C%A0%EB%8B%89%EC%8A%A4)&quot;&gt;https://ko.wikipedia.org/wiki/Su_(유닉스)&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
su -&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
su 명령에 &#39;-&#39; 옵션을 주어서 곧바로 해당 user 의 home directory 로 이동&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;su - &amp;lt;user name&amp;gt;&lt;/span&gt;&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
user name 을 입력하지 않으면 root&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
e.g.)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;user1@ubuntu:/home/user1$ sudo su&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;root@ubuntu:/home/user1# pwd&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/home/user1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;user1@ubuntu:/home/user1$ sudo su -&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;root@ubuntu:~# pwd&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
su -c &amp;lt;command&amp;gt;&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
변경된 유저로 단일 명령 수행&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
e.g.)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;user1@ubuntu:~$ sudo su - -c pwd&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/root&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;user1@ubuntu:~$ sudo su -c pwd&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;/home/user1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/7609392560510921025/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/11/su.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7609392560510921025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7609392560510921025'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/11/su.html' title='su'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-7835911891513843896</id><published>2018-11-21T22:18:00.003-08:00</published><updated>2018-11-21T22:18:47.489-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="notify-send"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Ubuntu 알림 (notify-send)</title><content type='html'>&lt;a href=&quot;http://manpages.ubuntu.com/manpages/xenial/man1/notify-send.1.html&quot;&gt;http://manpages.ubuntu.com/manpages/xenial/man1/notify-send.1.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ notify-send &#39;title&#39; &#39;body&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/7835911891513843896/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/11/ubuntu-notify-send.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7835911891513843896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7835911891513843896'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/11/ubuntu-notify-send.html' title='Ubuntu 알림 (notify-send)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-2462508727077070336</id><published>2018-07-19T18:39:00.002-07:00</published><updated>2018-07-19T18:39:59.322-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="crontab"/><title type='text'>crontab</title><content type='html'>&lt;h2&gt;
crontab&lt;/h2&gt;
&lt;br /&gt;
&lt;h4&gt;
참고&lt;/h4&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://linux.die.net/man/5/crontab&quot;&gt;https://linux.die.net/man/5/crontab&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.ibm.com/support/knowledgecenter/ko/ssw_aix_72/com.ibm.aix.cmds1/crontab.htm&quot;&gt;https://www.ibm.com/support/knowledgecenter/ko/ssw_aix_72/com.ibm.aix.cmds1/crontab.htm&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://www.computerhope.com/unix/ucrontab.htm&quot;&gt;https://www.computerhope.com/unix/ucrontab.htm&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
시간 단위&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;분(0 ~ 59)&lt;/li&gt;
&lt;li&gt;시(0 ~ 23)&lt;/li&gt;
&lt;li&gt;일(1 ~ 31)&lt;/li&gt;
&lt;li&gt;월(1 ~ 12)&lt;/li&gt;
&lt;li&gt;요일(0 일요일 ~ 6 토요일)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;b&gt;예) 매분마다 명령 수행 &lt;/b&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;* * * * * &amp;lt;command&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;b&gt;명령 목록&lt;/b&gt;&lt;/h4&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;crontab -l&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;crontab: no crontab for $USER &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;b&gt;명령 편집&lt;/b&gt;&lt;/h4&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;crontab -e&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;* * * * * echo &quot;hello&quot; &amp;gt;&amp;gt; /tmp/hello.txt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
&lt;b&gt;Editor 설정&lt;/b&gt;&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;env EDITOR=emacs crontab -e&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;crontab -l&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;* * * * * echo &quot;hello&quot; &amp;gt;&amp;gt; /tmp/hello.txt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;cat /tmp/hello.txt&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;hello&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
명령 제거&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;crontab -r&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;crontab -l&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;crontab: no crontab for $USER &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/2462508727077070336/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/07/crontab.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/2462508727077070336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/2462508727077070336'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/07/crontab.html' title='crontab'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-715573503763170435</id><published>2018-07-12T23:38:00.000-07:00</published><updated>2018-07-12T23:38:00.574-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Gnome shell + ubuntu 16.04</title><content type='html'>&lt;h2&gt;
Gnome shell + ubuntu 16.04&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
설치&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo apt install ubuntu-gnome-desktop&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
log off&lt;br /&gt;
&lt;br /&gt;
log in 화면에서 ubuntu logo 아이콘 누르고 gnome 선택&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
한글 설정&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo apt install fcitx-hangul&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
설정 -&amp;gt; 언어 지원 -&amp;gt; 키보드 입력기로 fcitx 선택&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ sudo reboot&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/715573503763170435/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/07/gnome-shell-ubuntu-1604.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/715573503763170435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/715573503763170435'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/07/gnome-shell-ubuntu-1604.html' title='Gnome shell + ubuntu 16.04'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-1132682931923304961</id><published>2018-04-05T08:55:00.000-07:00</published><updated>2020-01-05T23:36:38.554-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hostname"/><title type='text'>[우분투] hostname 설정</title><content type='html'>&lt;h2&gt;
hostname 설정&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
편집&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;/etc/hostname&lt;/li&gt;
&lt;li&gt;/etc/hosts&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h3&gt;
서비스 재시작&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ systemctl restart systemd-logind.service&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
또는 reboot &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
hostnamectl &lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ hostnamectl set-hostname &amp;lt;new hostname&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Avahi service 재시작&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ service avahi-daemon restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
ping 확인&lt;/h3&gt;
&lt;br /&gt;
hostname 이 mycom 이라고 가정 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ping mycom.local&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/1132682931923304961/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/04/hostname.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/1132682931923304961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/1132682931923304961'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/04/hostname.html' title='[우분투] hostname 설정'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-502722963297315520</id><published>2018-03-28T16:21:00.001-07:00</published><updated>2018-03-28T16:21:36.319-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="visudo"/><title type='text'>visudo</title><content type='html'>&lt;h3&gt;
visudo&lt;/h3&gt;
&lt;br /&gt;
참고:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file-on-ubuntu-and-centos&quot;&gt;https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file-on-ubuntu-and-centos&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;/etc/sudoers&lt;/span&gt; 를 직접 수정하지 않고 &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;visudo &lt;/span&gt;사용&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;$ sudo visudo&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
sudo 시 비밀번호 묻지 않기 (아래 내용 추가)&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;USRNAME ALL=(ALL) NOPASSWD: ALL&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;USERNAME &lt;/span&gt;은 계정 이름으로&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt; 변경&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
저장 및 종료</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/502722963297315520/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/03/visudo.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/502722963297315520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/502722963297315520'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/03/visudo.html' title='visudo'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-153095087994055927</id><published>2018-03-28T16:17:00.000-07:00</published><updated>2018-05-14T23:51:50.044-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>ssh key 로그인</title><content type='html'>&lt;h2&gt;
ssh key 로 로그인&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
요약&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;SSH 클라이언트 PC 에 ssh key 생성&lt;/li&gt;
&lt;li&gt;SSH 서버 PC 에 ssh public key 를 &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$HOME/.ssh/authorized_key&lt;/span&gt; 에 복사&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
SSH 클라이언트 PC&lt;/h3&gt;
&lt;br /&gt;
key 생성 (필요시)&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ssh-keygen -t rsa&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
참고 &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;passphase 설정 하지 않고 생성 가능&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$HOME/.ssh&lt;/span&gt; 에 아래 파일들이 이미 존재하면 key 생성 필요없음 &lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$HOME/.ssh&lt;/span&gt; 에 생성된 파일들&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;id_rsa&lt;/span&gt; - private key&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;id_rsa.pub&lt;/span&gt; - public key&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
아래와 같이 public key 를 ssh 서버 pc 에 등록해야 함&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
SSH 서버 PC&lt;/h3&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$HOME/.ssh/authorized_keys&lt;/span&gt; 에 클라이언트의 public key 등록&lt;br /&gt;
&lt;br /&gt;
참고:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;public key 는 text 파일 형태이기 때문에 terminal 을 여러개 띄어 두고 복사 붙여넣기 할 수 있음&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
예)&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ vim authorized_keys&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;붙여 넣기&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;h4&gt;
$HOME/.ssh/authorized_keys&lt;/h4&gt;
&lt;br /&gt;
권한 설정 (사용자만 read/write 권한 줘야함)&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ chmod 600 authorized_keys&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
연결하려는 클라이언터가 다수이면 authorized_keys 파일에 개행 문자로 구분하여 여러 키를 등록 가능&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
putty 클라이언트&lt;/h3&gt;
&lt;br /&gt;
&lt;h4&gt;
puttygen 을 이용해 key 생성&lt;/h4&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;puttygen 실행 &lt;/li&gt;
&lt;li&gt;generate&lt;/li&gt;
&lt;li&gt;save private key (.ppk 파일)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
puttygen 화면에 표시된 public key 를 ssh 서버 pc 에 authorized_keys 에 추가&lt;br /&gt;
private key 는 putty 에 지정 &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
putty session 에 private key 등록&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;putty 실행&lt;/li&gt;
&lt;li&gt;session 선택 및 load&lt;/li&gt;
&lt;li&gt;Connection -&amp;gt; SSH -&amp;gt; Auth 로 이동&lt;/li&gt;
&lt;li&gt;Private key file for authentication 에 저장한 private key (.ppk 파일) 경로 지정&lt;/li&gt;
&lt;li&gt;session 저장&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/153095087994055927/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/03/ssh-key.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/153095087994055927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/153095087994055927'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/03/ssh-key.html' title='ssh key 로그인'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-8797107197176424660</id><published>2018-02-20T04:32:00.001-08:00</published><updated>2018-02-20T04:33:30.147-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="process"/><title type='text'>Process 관리</title><content type='html'>&lt;h3&gt;
Process 관리&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4&gt;
실행&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h4&gt;
Background 로 실행&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;amp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h4&gt;
Background 로 보내기&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Ctrl+z&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
일시 정지됨 &lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Background 에서 실행 &lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ bg&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;h4&gt;
Foreground 로 불러오기&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ fg&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Interrupt 날리기&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;Ctrl+c&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;보통 process 가 정지되지만 process 에서 무시 처리하는 경우 있음&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h4&gt;
Job 목록 확인&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ jobs&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
stdin redirect&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;lt; myfile&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
stdout redirect&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;gt; myfile.log&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
또는 무시&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;gt; /dev/null &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
stderr redirect&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program 2&amp;gt; myerror.log&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
stdin 과 stderr 를 같게&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;PID 확인&lt;/h4&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ./program &amp;amp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ echo $!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Process 목록&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;ps&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
모든 process 목록&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;ps aux&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Process 이름으로 PID 찾기&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ pidof $PROCESS_NAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ pgrep $PROCESS_NAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ pgrep -f $KEYWORD&lt;/span&gt;&lt;br /&gt;
&lt;h4&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;h4&gt;
Process 죽이기&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ kill $PID&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ pkill $PROCESS_NAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ pkill -f $KEYWORD&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ killall $PROCESS_NAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
Process 실행 정보 위치&lt;/h4&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ ls /proc/$PID/&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;status 및 stat, statm, cmdline 등 process 관련 여러 파일들이 존재&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/8797107197176424660/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/02/process.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/8797107197176424660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/8797107197176424660'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/02/process.html' title='Process 관리'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-5422904672687192395</id><published>2018-02-07T15:00:00.001-08:00</published><updated>2018-02-07T15:00:11.041-08:00</updated><title type='text'>linux 배포 버전 확인</title><content type='html'>linuax 배포 버전 확인&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;$ &lt;b&gt;cat /etc/os-release &lt;/b&gt;&lt;br /&gt;NAME=&quot;Ubuntu&quot;&lt;br /&gt;VERSION=&quot;16.04.3 LTS (Xenial Xerus)&quot;&lt;br /&gt;ID=ubuntu&lt;br /&gt;ID_LIKE=debian&lt;br /&gt;PRETTY_NAME=&quot;Ubuntu 16.04.3 LTS&quot;&lt;br /&gt;VERSION_ID=&quot;16.04&quot;&lt;br /&gt;HOME_URL=&quot;http://www.ubuntu.com/&quot;&lt;br /&gt;SUPPORT_URL=&quot;http://help.ubuntu.com/&quot;&lt;br /&gt;BUG_REPORT_URL=&quot;http://bugs.launchpad.net/ubuntu/&quot;&lt;br /&gt;VERSION_CODENAME=xenial&lt;br /&gt;UBUNTU_CODENAME=xenial&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/5422904672687192395/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2018/02/linux.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/5422904672687192395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/5422904672687192395'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2018/02/linux.html' title='linux 배포 버전 확인'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-4120558335164671000</id><published>2015-08-17T06:01:00.001-07:00</published><updated>2016-11-10T23:27:02.249-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>사용자 추가 (useradd 와 adduser)</title><content type='html'>&lt;h3&gt;
일반 리눅스&lt;/h3&gt;
&lt;br /&gt;
useradd 로 사용자 추가&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
사용자 추가&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo useradd &amp;lt;username&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
비밀번호 지정&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo passwd &amp;lt;username&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
사용자 제거&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo userdel &amp;lt;username&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo userdel -r &amp;lt;username&amp;gt;&lt;/span&gt; &lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
우분투&lt;/h3&gt;
&lt;br /&gt;
useradd 대신 adduser&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
사용자 추가&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo adduser &amp;lt;username&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;비밀 번호까지 설정해 줌&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;br /&gt;
useradd 로 추가하면 /home 디렉토리에 username 의 디렉토리가 생성되지 않음&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
sudoer 지정&lt;/h3&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ sudo visudo&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
sudoer 파일을 수정한다.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #383838; font-size: 14px; line-height: 21.99999237060547px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;username&amp;gt; ALL=(ALL:ALL) ALL&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
password 입력도 필요없다면&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #383838; font-size: 14px; line-height: 21.99999237060547px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;username&amp;gt; ALL=(ALL) NOPASSWD: ALL&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/4120558335164671000/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/blog-post.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4120558335164671000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4120558335164671000'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/blog-post.html' title='사용자 추가 (useradd 와 adduser)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-3317864492647943346</id><published>2015-08-05T01:32:00.000-07:00</published><updated>2015-08-05T01:32:13.948-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ds4"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>Ubuntu 에서 dual shock 4 사용하기</title><content type='html'>&lt;h2&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;dual shock 4 사용&lt;/span&gt;&lt;/h2&gt;
&lt;a href=&quot;https://github.com/chrippa/ds4drv&quot;&gt;https://github.com/chrippa/ds4drv&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;먼저 아래 패키지 설치 필요&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get install libusb-dev joystick&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.rasplay.org/?p=4811&quot;&gt;http://www.rasplay.org/?p=4811&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ds4drv&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get install python-dev python-pip&lt;br /&gt;$ sudo pip install ds4drv&lt;br /&gt;$ sudo ds4drv --hidraw&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/3317864492647943346/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/ubuntu-dual-shock-4.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3317864492647943346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3317864492647943346'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/ubuntu-dual-shock-4.html' title='Ubuntu 에서 dual shock 4 사용하기'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-404974417087623656</id><published>2015-08-05T01:31:00.001-07:00</published><updated>2015-08-05T01:31:07.248-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="문제해결"/><title type='text'>Ubuntu - could not write bytes : broken pipe</title><content type='html'>&lt;h2&gt;
could not write bytes : broken pipe&lt;/h2&gt;
&lt;br /&gt;
이 에러 문구가 화면에 보이고 더이상 진행하지 않을 때면 늘 xorg 나 비디오 카드 드라이버 문제였다.&lt;br /&gt;
&lt;br /&gt;
보통 xorg 나 ubuntu-desktop, gnome-session 등등 재설치 후 로그인 화면까지 진입했다.&lt;br /&gt;
진입 후 주로 그래픽이 깨지는 증상이 발생 했으며 이때는 자신의 그래픽 카드와 맞는 드라이버를 설치해야 했다. (참고 : &quot;nVidia GT218 드라이버 설치&quot; 항목)&lt;br /&gt;
&lt;br /&gt;
아래 내용들은 문제 해결하면서 검색해 본 내용들&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
xorg 재설치&lt;/h3&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1150319&quot;&gt;http://ubuntuforums.org/showthread.php?t=1150319&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get remove xserver-xorg&lt;br /&gt;$ sudo apt-get remove --purge xserver-xorg&lt;br /&gt;$ sudo apt-get install xserver-xorg&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
xorg 재시작&lt;/h3&gt;
&lt;a href=&quot;http://askubuntu.com/questions/1220/how-can-i-restart-x-server-from-the-command-line&quot;&gt;http://askubuntu.com/questions/1220/how-can-i-restart-x-server-from-the-command-line&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo restart lightdm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
xorg reconfigure&lt;/h3&gt;
&lt;a href=&quot;http://askubuntu.com/questions/283985/unable-to-load-session-ubuntu-in-12-04&quot;&gt;http://askubuntu.com/questions/283985/unable-to-load-session-ubuntu-in-12-04&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo dpkg-reconfigure lightdm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
failed to load session &quot;ubuntu&quot;&lt;/h3&gt;
&lt;a href=&quot;https://riveridea.wordpress.com/2012/03/22/how-to-solve-failed-to-load-session-ubuntu/&quot;&gt;https://riveridea.wordpress.com/2012/03/22/how-to-solve-failed-to-load-session-ubuntu/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;방법 1)&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get update&lt;br /&gt;$ sudo apt-get install ubuntu-desktop&lt;br /&gt;$ sudo apt-get -f install&lt;br /&gt;$ sudo dpkg-reconfigure ubuntu-desktop&lt;br /&gt;$ sudo reboot&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
방법 2)&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get install gnome-session&lt;br /&gt;$ sudo apt-get install lightdm&lt;br /&gt;$ sudo apt-get install unity-greeter&lt;br /&gt;$ sudo dpkg-reconfigure lightdm&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
errors were encountered while processing cups 문제&lt;/h3&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=1864254&quot;&gt;http://ubuntuforums.org/showthread.php?t=1864254&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get purge cups &amp;amp;&amp;amp; sudo apt-get autoremove&lt;br /&gt;$ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install cups&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;errors were encountered while processing cups printer-driver-gutenprint&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
Ubuntu video driver 확인 방법&lt;/h3&gt;
&lt;a href=&quot;http://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system&quot;&gt;http://askubuntu.com/questions/23238/how-can-i-find-what-video-driver-is-in-use-on-my-system&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ lshw -c video&lt;/span&gt;&lt;br /&gt;configureation: driver 값 기억&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ modinfo &amp;lt;기억한 값&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
nVidia GT218 드라이버 설치&lt;/h3&gt;
&lt;a href=&quot;http://ubuntuforums.org/showthread.php?t=2223757&quot;&gt;http://ubuntuforums.org/showthread.php?t=2223757&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;방법 1)&lt;br /&gt;sudo add-apt-repository ppa:ubuntu-x-swat/x-updates&lt;br /&gt;sudo apt-get update&lt;br /&gt;sudo apt-get upgrade&lt;br /&gt;&lt;br /&gt;방법 2) 난 이게 되었다&lt;br /&gt;sudo add-apt-repository ppa:xorg-edgers/ppa&lt;br /&gt;sudo apt-get update&lt;br /&gt;sudo apt-get upgrade&lt;br /&gt;&lt;br /&gt;
&lt;h3&gt;
add-apt-repository remove 방법&lt;/h3&gt;
&lt;a href=&quot;http://askubuntu.com/questions/307/how-can-ppas-be-removed&quot;&gt;http://askubuntu.com/questions/307/how-can-ppas-be-removed&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ add-apt-repository --remove &amp;lt;ppa 이름&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;alternative way (이 방법 추천)&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo apt-get install ppa-purge&lt;br /&gt;$ sudo ppa-purge ppa_name&lt;br /&gt;$ sudo apt-get purge package_name&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/404974417087623656/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/ubuntu-could-not-write-bytes-broken-pipe.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/404974417087623656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/404974417087623656'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2015/08/ubuntu-could-not-write-bytes-broken-pipe.html' title='Ubuntu - could not write bytes : broken pipe'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-3518904659824172636</id><published>2014-07-09T17:33:00.000-07:00</published><updated>2014-07-09T17:33:13.421-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="문제해결"/><title type='text'>System program problem detected 경고창 제거</title><content type='html'>참고: &lt;a href=&quot;http://askubuntu.com/questions/133385/getting-system-program-problem-detected-pops-up-regularly-after-upgrade&quot;&gt;http://askubuntu.com/questions/133385/getting-system-program-problem-detected-pops-up-regularly-after-upgrade&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
증상: Ubuntu distribution 업데이트 하고 나서 Ubuntu 시작 하자 마자 System program problem detected 경고창이 뜬다.&lt;br /&gt;
&lt;br /&gt;
해결: 위 참고 사이트를 참고하여 아래와 같이 /var/crash/ 안의 파일들을 삭제 해 주니 경고창이 뜨지 않았다.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ sudo rm /var/crash/*&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/3518904659824172636/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2014/07/system-program-problem-detected.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3518904659824172636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3518904659824172636'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2014/07/system-program-problem-detected.html' title='System program problem detected 경고창 제거'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-4948352299917797366</id><published>2014-04-16T17:48:00.000-07:00</published><updated>2018-03-29T15:25:26.706-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>bash shell 의 emacs key binding</title><content type='html'>bash shell 에 emacs key binding 되어 있음 &lt;br /&gt;
&lt;br /&gt;
emacs 단축키들 shell 에서 사용 가능 (C = ctrl, M = meta or alt)&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
커서 이동 &lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-a&lt;/span&gt; : 맨 처음&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-e&lt;/span&gt; : 맨 끝&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-f&lt;/span&gt; : 한 글자 앞 &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-f&lt;/span&gt; : 한 단어 앞&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-b&lt;/span&gt; : 한 글자 뒤&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-b&lt;/span&gt; : 한 단어 뒤&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h4&gt;
잘라내기 붙여넣기 &lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-k&lt;/span&gt; : 커서 위치 앞 모두 잘라내기 (잘린 부분 기억)&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-w&lt;/span&gt; : 커서 위치 뒤 word 잘라내기 (잘린 부분 기억)&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-d&lt;/span&gt; : 커서 위치의 한 글자 하나 지우기&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-d&lt;/span&gt; : 커서 위치의 단어 잘라내기 (잘린 부분 기억)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-y&lt;/span&gt; : 붙여넣기 (&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-k&lt;/span&gt; 또는 &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-w&lt;/span&gt; 로 잘라내기한 내용)&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;C-y&lt;/span&gt; 후 &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;M-y&lt;/span&gt; 반복으로 잘라내기한 내역 순환&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h4&gt;
history&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-p&lt;/span&gt; : 이전 명령&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;C-n&lt;/span&gt; : 다음 명령&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;h4&gt;
대소문자 &lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-l&lt;/span&gt; : 소문자 변환&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-c&lt;/span&gt; : Capital 변환&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;M-u&lt;/span&gt; : 대문자 변환&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;/ul&gt;
이 외 emacs text edit 단축키들 사용 가능</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/4948352299917797366/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/shell-emacs.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4948352299917797366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4948352299917797366'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/shell-emacs.html' title='bash shell 의 emacs key binding'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-747382354582081036</id><published>2014-04-15T17:57:00.002-07:00</published><updated>2014-04-15T17:57:41.700-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>shell locale 설정</title><content type='html'>아래 명령으로 사용 가능한 locale 목록을 표시할 수 있다. &lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ locale -a&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
목록 중에 마음에 드는 locale 을 LANG 환경 변수에 설정해서 shell locale 을 변경한다. &lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ export LANG=&amp;lt;locale 이름&amp;gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
.bashrc 나 .bash_profile 등의 파일에 위 명령 추가 해두면 매번 자동으로 shell 에 들어오면 설정&lt;br /&gt;
&lt;br /&gt;
svn 등의 앱들은 위 설정에 따라 한글 또는 영어 등 다른 언어로 메시지를 표시 하는데 가끔한글 에러 메시지가 무슨 의미인지 몰라 영어 에러 메시지를 표시하고자 할 때 찾아 본 방법이다&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/747382354582081036/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/shell-locale.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/747382354582081036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/747382354582081036'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/shell-locale.html' title='shell locale 설정'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-3127897749624042114</id><published>2014-04-15T17:50:00.000-07:00</published><updated>2014-07-06T18:42:10.603-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>기본적 build 방법</title><content type='html'>때로는 소스를 받아 build 해서 사용하게 되는 경우가 있다.&lt;br /&gt;
&lt;br /&gt;
대부분 configure 와 make, make install 을 이용해서 설치한다.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ./configure&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ make&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ make install &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
기본적으로 /usr/ 경로의 하위 폴더들에 복사될 것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;--prefix 옵션&lt;/b&gt;&lt;br /&gt;
만약 설치 경로를 변경하고 싶으면 configure 에 --prefix 옵션을 설정해 준다.&lt;br /&gt;
예) &lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ./configure --prefix=$HOME/&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;위와 같이 설정하면 make &amp;amp; make install 시 $HOME 에 bin 이나 lib 등 필요한 폴더들이 생성되고 각 폴더들에 파일들이 복사 된다.&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ./configure --help&lt;/span&gt; 옵션으로 사용가능한 옵션들을 확인할 수 있다&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ ./configure&lt;/span&gt; 명령어 수행 중에 필요한 라이브러리 파일이 없으면 오류를 표시해 주기 때문에 해당 소스 파일들도 다운로드 받아 위와 같은 요령으로 build 해 주면 된다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;configure.ac 파일만 존재 시&lt;/b&gt;&lt;br /&gt;
아래 명령으로 configure 파일 생성&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ autoreconf --install&lt;/span&gt;&lt;br /&gt;
!) autotools 패키지 설치 필요</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/3127897749624042114/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/build.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3127897749624042114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3127897749624042114'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2014/04/build.html' title='기본적 build 방법'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-4647523718969081639</id><published>2014-01-09T22:32:00.000-08:00</published><updated>2014-01-09T22:32:29.001-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="grep"/><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>특정 문자열 포함한 파일 검색 (grep 이용)</title><content type='html'>grep 명령어를 이용하여 특정 문자열 포함된 파일을 검색할 수 있다.&lt;br /&gt;
&lt;br /&gt;
예)&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;$ grep -rI --exclude-dir=&quot;\.svn&quot; &quot;#include&quot; .&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
옵션 설명&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;-r : recursive 하게 하위 폴더를 모두 탐색&lt;/li&gt;
&lt;li&gt;-I : 텍스트 파일만 탐색 (binary 파일은 탐색 하지 않는다고 함)&lt;/li&gt;
&lt;li&gt;--exclude-dir : 포함하지 않을 경로 (일반적으로 .svn 은 검색하고 싶지 않을 듯)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;여러개의 경로를 지정하고 싶은 경우 패턴을 이용하던지 --exclude-dir 옵션을 복수개 입력&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/4647523718969081639/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2014/01/grep.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4647523718969081639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4647523718969081639'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2014/01/grep.html' title='특정 문자열 포함한 파일 검색 (grep 이용)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-6922803496538138131</id><published>2013-11-28T16:15:00.001-08:00</published><updated>2013-11-28T16:15:15.729-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="svn"/><category scheme="http://www.blogger.com/atom/ns#" term="문제해결"/><title type='text'>svn: XML data was not well-formed</title><content type='html'>svn 으로 checkout 중 아래와 같은 에러가 발생함. &lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;svn: XML data was not well-formed&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
참고: &lt;a href=&quot;http://linuxproblem.org/art_22.html&quot;&gt;http://linuxproblem.org/art_22.html&lt;/a&gt;&lt;br /&gt;
위 링크를 보면 이유가 svn 프로그램이 자동으로 로컬 컴퓨터에 생성하는 .svn 폴더 아래 파일이 문제가 생긴 경우 일 수 있다고 한다.&lt;br /&gt;
&lt;br /&gt;
하지만 .svn 파일이 아예 생기지 않았다.&lt;br /&gt;
결국, 관리자 권한 취득 문제 였다.&lt;br /&gt;
관리자 권한에 대한 해결 방법은 여러가지가 있다.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;sudo 명령으로 재시도 해보길 권장&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
!) 사실 mac os 사용중 문제 발견하였으나 linux 도 비슷한 원인일 거라 추측함.&lt;br /&gt;
&amp;nbsp;- mac os 에서는 설정 -&amp;gt; 사용자 및 그룹 에서 현재 사용자에 &quot;사용자를 이 컴퓨터의 관리자로 허용&quot; 옵션을 활성화하고 sudo 명령어로 재시도 시 가능 했다.</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/6922803496538138131/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2013/11/svn-xml-data-was-not-well-formed.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/6922803496538138131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/6922803496538138131'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2013/11/svn-xml-data-was-not-well-formed.html' title='svn: XML data was not well-formed'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-7709287674038845553</id><published>2013-04-11T17:14:00.003-07:00</published><updated>2025-03-23T22:46:56.124-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><category scheme="http://www.blogger.com/atom/ns#" term="명령어"/><title type='text'>curl 사용법</title><content type='html'>&lt;b&gt;기본 사용&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl www.google.com&lt;/b&gt;&lt;br /&gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot;&amp;gt;&lt;br /&gt;&amp;lt;TITLE&amp;gt;302 Moved&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&lt;br /&gt;&amp;lt;H1&amp;gt;302 Moved&amp;lt;/H1&amp;gt;&lt;br /&gt;The document has moved&lt;br /&gt;&amp;lt;A HREF=&quot;http://www.google.co.kr/&quot;&amp;gt;here&amp;lt;/A&amp;gt;.&lt;br /&gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&amp;nbsp;- 302 는 redirection 코드&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;자세한 내용 표시 : -v 옵션&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -v www.google.com&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* About to connect() to www.google.com port 80 (#0)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* &amp;nbsp; Trying 74.125.128.147...&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* connected&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* Connected to www.google.com (74.125.128.147) port 80 (#0)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt; GET / HTTP/1.1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt; User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt; Host: www.google.com&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt; Accept: */*&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; HTTP/1.1 302 Found&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Location: http://www.google.co.kr/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Cache-Control: private&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Content-Type: text/html; charset=UTF-8&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Set-Cookie: PREF=ID=772acf0ed672750a:FF=0:TM=1365725569:LM=1365725569:S=oN2I30J2yduSpsDA; expires=Sun, 12-Apr-2015 00:12:49 GMT; path=/; domain=.google.com&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Set-Cookie: NID=67=n0oJCc3IUnhapZm7IaK47FB9JpM81dAjqLA1ifC5yYPWBg6-g4K_ZcPJaZOD4t23yVK4EzPB7wpe0zsEEHT3hdTQbi9Q-s21LORDQEZRkuWdS2YUzaOw2OjzzWV76b6P; expires=Sat, 12-Oct-2013 00:12:49 GMT; path=/; domain=.google.com; HttpOnly&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; P3P: CP=&quot;This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&amp;amp;answer=151657 for more info.&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Date: Fri, 12 Apr 2013 00:12:49 GMT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Server: gws&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; Content-Length: 221&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; X-XSS-Protection: 1; mode=block&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt; X-Frame-Options: SAMEORIGIN&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;HTML&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=utf-8&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;TITLE&amp;gt;302 Moved&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;BODY&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;H1&amp;gt;302 Moved&amp;lt;/H1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;The document has moved&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;A HREF=&quot;http://www.google.co.kr/&quot;&amp;gt;here&amp;lt;/A&amp;gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;/BODY&amp;gt;&amp;lt;/HTML&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* Connection #0 to host www.google.com left intact&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;* Closing connection #0&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- curl &amp;nbsp;이 작업하는 과정과 서버로 전송하는 내용 등을 자세하게 표시해 준다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;redirect 따라가기 : -L 옵션&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -L www.google.com&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;lt;!doctype html&amp;gt;&amp;lt;html itemscope=&quot;itemscope&quot; itemtype=&quot;http://schema.org/WebPage&quot;&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta itemprop=&quot;image&quot; content=&quot;/images/google_favicon_128.png&quot;&amp;gt;&amp;lt;title&amp;gt;Google&amp;lt;/title&amp;gt;&amp;lt;script&amp;gt;(function(){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;window.google={kEI:&quot;jEhnUYS0HJCPiAf5jIGYCw&quot;,getEI:function(a){for(var b;a&amp;amp;&amp;amp;(!a.getAttribute||!(b=a.getAttribute(&quot;eid&quot;)));)a=a.parentNode;return b||google.kEI},https:function()&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;&amp;nbsp;-- 생략 --&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;파일 다운로드 : -O (대문자 영문자 오) 옵션&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -O -L www.google.com/index.html&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;ls&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;index.html&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 파일 이름 지정 : -o (소문자 영문자 오) 옵션&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -L www.google.com/index.html -o google.html&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;HTTPS 사이트 접속&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -L https://www.google.com:443&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
만약 실패한다면 클라이언트 PC 에 인증서가 없거나 해당 사이트의 인증서가 잘못된 것일 수 있다.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 인증을 무시하고 접근하려면 -k 옵션을 사용&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl -k -L https://www.google.com:443&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 공개 인증서&amp;nbsp;다운로드 :&amp;nbsp;&lt;a href=&quot;http://curl.haxx.se/ca/&quot;&gt;http://curl.haxx.se/ca/&lt;/a&gt;&amp;nbsp;에서 cacert.pem 파일을 다운로드&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 다운로드 받은 인증서를 매개변수로 추가&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl --cacert cacert.pem https://www.google.com:443&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;데이터 전송 (post 방식)&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
옵션 종류 (모두 나열하지 않음)&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;--data : 입력한 매개변수 내용 그대로 전송&lt;/li&gt;
&lt;li&gt;--data-binary : 입력한 매개변수 내용 그대로 전송 (binary)&lt;/li&gt;
&lt;li&gt;--form : form 형식으로 전송&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
--data 와 --data-binary 매개변수&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 매개변수에 &quot;hello&quot; 라고 넣어주면 문자그대로 hello 를 데이터 인식하고 전달한다.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;- 매개변수에 @ 를 앞에 붙이면 파일명으로 인식하고 파일을 찾아 파일 내용을 전달한다.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;gt; &lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl --data-binary @hello.txt www.google.com&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;gt; 내용이 form 같은 형식 등으로 가공되지 않고 그대로 보내진다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
--form&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$ &lt;b&gt;curl --form greeting=hello www.google.com&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;==&amp;gt; form 형식으로 전송&lt;br /&gt;
&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace;&quot;&gt;$&amp;nbsp;&lt;b&gt;curl --form myfile=@filepath www.google.com&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;==&amp;gt; form 형식으로 파일 전송 (multipart/form-data)&lt;/div&gt;&lt;br /&gt;
&lt;b&gt;팁: 마지막 받은 위치부터 받기&lt;/b&gt;&lt;br /&gt;
!) 서버에서 &lt;a href=&quot;https://tools.ietf.org/html/rfc7233&quot;&gt;HTTP Range spec&lt;/a&gt; 을 지원해야 함&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$ &lt;b&gt;curl -L -O -C - $DOWNLOAD_URL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;- &#39;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;-C -&lt;/span&gt;&#39; 옵션을 추가&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/7709287674038845553/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2013/04/curl.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7709287674038845553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/7709287674038845553'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2013/04/curl.html' title='curl 사용법'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-4669231720123732045</id><published>2012-05-26T05:14:00.000-07:00</published><updated>2012-05-26T05:14:01.517-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="명령어"/><title type='text'>mkdir 사용</title><content type='html'>폴더 생성 시 mkdir 명령어를 이용한다.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mkdir hello&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
hello 폴더를 생성한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mkdir a/b/c&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
만약 a 나 b 폴더가 없는 경우 에러를 표시한다.&lt;/div&gt;
&lt;div&gt;
이런 경우 -p 옵션을 이용한다.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;$ mkdir &lt;b&gt;-p&lt;/b&gt; a/b/c&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
만약 a 나 b 폴더가 없는 경우 자동으로 생성한다.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/4669231720123732045/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2012/05/mkdir.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4669231720123732045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/4669231720123732045'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2012/05/mkdir.html' title='mkdir 사용'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2655734322446830314.post-3280744359924843403</id><published>2012-03-23T03:02:00.000-07:00</published><updated>2013-09-09T20:03:38.390-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="명령어"/><category scheme="http://www.blogger.com/atom/ns#" term="팁"/><title type='text'>특정 크기의 파일 만들기</title><content type='html'>dd(Unix) -&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Dd_(Unix)&quot;&gt;http://en.wikipedia.org/wiki/Dd_(Unix)&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
dd 명령어를 이용하여 특정 크기의 파일을 생성할 수 있다.&lt;br /&gt;
참고:&amp;nbsp;&lt;a href=&quot;http://darkrang.tistory.com/191&quot;&gt;http://darkrang.tistory.com/191&lt;/a&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ dd if=/dev/zero of=[생성할 파일 경로] bs=[block size] count=[개수]&lt;/blockquote&gt;
&lt;div&gt;
예) 100 MB 크기의 testfile 이라는 이름의 파일을 생성한다.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ dd if=/dev/zero of=/home/test-user/testfile bs=100M count=1&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
wiki 인용: block size 에 사용할 수 있는 단위&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
w means 2&lt;br /&gt;
b means 512&lt;br /&gt;
k means 1024&lt;br /&gt;
M specifies multiplication by 1024&lt;sup&gt;2&lt;/sup&gt;&lt;br /&gt;
G specifies multiplication by 1024&lt;sup&gt;3&lt;/sup&gt;&lt;/blockquote&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
추가) 단순 파일 생성은 touch 명령어를 이용한다.&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ touch [생성할 파일 path]&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
예) 0 byte 크기의 testfile 이라는 이름의 파일을 생성한다.&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ touch testfile&lt;/blockquote&gt;
&lt;br /&gt;
추가) 윈도에서는 fsutil 을 이용한다. (윈도 XP 이상 지원)&lt;br /&gt;
참고: &lt;a href=&quot;http://ntfaq.co.kr/2070&quot;&gt;http://ntfaq.co.kr/2070&lt;/a&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt; fsutil file createnew [파일 이름] [파일 크기]&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
예) 1기가 크기의 파일 생성 (1024 x 1024 x 1024 bytes)&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;gt; fsutil file createnew c:\file1 1073741824&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://linuxfortj.blogspot.com/feeds/3280744359924843403/comments/default' title='댓글'/><link rel='replies' type='text/html' href='http://linuxfortj.blogspot.com/2012/03/blog-post_23.html#comment-form' title='0개의 덧글'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3280744359924843403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2655734322446830314/posts/default/3280744359924843403'/><link rel='alternate' type='text/html' href='http://linuxfortj.blogspot.com/2012/03/blog-post_23.html' title='특정 크기의 파일 만들기'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>