du -sh *

 

Centos6 yum update 오류

yum update
Loaded plugins: fastestmirror, security
Setting up Update Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

 

아래 명령어 입력후 yum update 시 정상작동 한다

echo https://vault.centos.org/6.10/os/x86_64/ > /var/cache/yum/x86_64/6/base/mirrorlist.txt
echo http://vault.centos.org/6.10/extras/x86_64/ > /var/cache/yum/x86_64/6/extras/mirrorlist.txt
echo http://vault.centos.org/6.10/updates/x86_64/ > /var/cache/yum/x86_64/6/updates/mirrorlist.txt

yum -y update

 

1. 현재 디렉토리에서 특정 단어가 들어간 모든 파일 찾기

find . -type f | xargs grep "Error updating subscription relationship" 2>/dev/null

 

 

2. 원하는 파일 찾기

find / -name "찾을파일명" 2>/dev/null

 

Permission denied 에러가 안나오게 하려면 명령어 뒤에 꼭 2>/dev/null 을 붙여야 한다.

vpn 실행

pppd call haiip
route add -net 0.0.0.0/0 dev ppp0

 

vpn 종료

pkill pppd

 

(Terminal 부팅)

systemctl set-default multi-user.target

 

(GUI 부팅)

systemctl set-default graphical.target

 

+ Recent posts