Monthly Archives: November 2013

Home »  2013 »  November

echo 로 txt파일출력

#!/bin/bash
cat [텍스파일명] | \
while read line
do
echo “$line”
done

linux I/O 성능확인

yum install sysstat
iostat -k -d 3 // KB 단위! 3초에한번

파일속성…lsttr

yum 하다가 에러가똭!
lsattr
# yum install gcc* 요런식으로하다가..
Running Transaction
Installing: libgcc ######################### [1/5]
error: unpacking of archive failed on file /usr/sbin/libgcc_post_upgrade: cpio: rename
Installing: cpp ######################### [2/5]
error: unpacking of archive failed on file /usr/bin/cpp: cpio: rename
Installing: gcc ######################### [3/5]
error: unpacking of archive failed on file /usr/bin/c89: cpio: rename
Updating : gcc-c++ ######################### [4/5]
error: […]

IOError: <urlopen error (-2, 'Name or service not known')>

fedora-core 에서 yum 을하는데 에러가 똭!
[root@sekoons yum.repos.d]# yum install curl*
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
core [1/3]
http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml: [Errno 4] IOError:
Trying other mirror.
Cannot open/read repomd.xml file for repository: core
failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from core: [Errno 256] No more mirrors to try.
맨붕당하지말자 릴렉스! yum 저장소만변경해주믄됨!
/etc/yum.repos.d/fedora-core.repo
[core]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/os/

[core-debuginfo]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/$basearch/debug/

[core-source]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/$releasever/source/SRPMS/

/etc/yum.repos.d/fedora-updates.repo
[updates]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/

[updates-debuginfo]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/$basearch/debug/
[updates-source]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/$releasever/SRPMS/

/etc/yum.repos.d/fedora-extras.repo
[extras]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/$basearch/

[extras-debuginfo]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/$basearch/debug/

[extras-source]

baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/extras/$releasever/SRPMS/