os/Linux 80

bash find delete sort

리눅스 날짜 기준으로 파일 삭제하기 How to sort the files according to the time stamp in unix? [closed] Find Delete find 폴더 -name '파일명' -mtime +일수 -delete find 폴더 -name '파일명' -mtime +일수 -exec rm -f {} \; find 폴더 -name '파일명' -mtime +일수 | xargs rm -f ll --time-style full-iso | awk '{print $6" "$9}' | grep 2011-08 ll --time-style full-iso | awk '{print $6" "$9}' | grep 2011-08 | awk '{print $2}' | xargs rm -f Sort..

os/Linux 2017.04.11

ssh-keygen 자동 로그인

SSH Key - 비밀번호 없이 로그인 ssh 자동연결 id_rsa는 유출되면 안된다. !!!!!!!!!!!! #rsa 로 키와 공개키를 만든다. ssh-keygen -t rsa Enter file in which to save the key (/home/username/.ssh/id_rsa): # 기본값 사용 Enter passphrase (empty for no passphrase): # 비밀번호 (자동 로그인은 공백을 입력) Enter same passphrase again: # 비밀번호 확인 # 원격서버에 공개키를 업로드한다. scp id_rsa.pub username@domain.com:id_rsa.pub # scp id_rsa.pub username@domain.com # scp id_rsa...

os/Linux 2017.03.23

ssh 자동연결

리눅스 SSH 패스워드 없이 자동 로그인 SSH 암호 없이 자동 로그인 종합 안내 authorized_keys와 SSH Config를 이용한 비밀번호 없이 SSH 로그인하기 Can you set passwords in .ssh/config to allow automatic login? Simplify Your Life With an SSH Config File ~/.ssh/config で簡単に複数ホストへのSSH接続を管理する ssh-keygen ssh-keygen 은 다른곳(ssh-keygen 자동 로그인)도 많으니 넘어가고, ... expect #!/usr/bin/expect -f spawn ssh useranme@domain.com expect "assword:" send "password\r" int..

os/Linux 2017.02.10

CentOS yum epel 저장소 에러

[SOLVED] fc17: broken yum? Why won't yum install updates? Linux EPEL 설치 (metalink 에러 조치) 일반적인 yum 에러 해결 cd /var/lib/rpm rm -f __db* rpm --rebuilddb yum clean all yum update epel 저장소 사용 # 저장소 목록 yum repolist # epel 적용 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6-8.noarch.rpm # epel.repo 에서 mirrorlist 주석처리, baseurl 사용 vi /etc/yum.repos.d/ep..

os/Linux 2016.06.03
반응형