sed 명령어

컴퓨터 2015. 11. 23. 11:21



링크 : http://hyunkie.tistory.com/51


열 치환

# sed 's/^PermitRootLogin .*$/PermitRootLogin yes/p' /etc/ssh/sshd_config > /etc/ssh/sshd_config

"PermitRootLogin " 으로 시작하는 줄을 "PermitRootLogin yes" 로 바꾸고 덥어씀








'컴퓨터' 카테고리의 다른 글

git rebase 정리  (0) 2015.12.02
한줄로 리눅스 패스워드 변경  (0) 2015.11.23
ubuntu ssh root 로그인 설정  (0) 2015.11.23
ubuntu 패키지 설치, 수정 날짜 확인  (0) 2015.11.22
bash 기본 명령어  (0) 2015.11.22