"/etc/hosts 변경 작업"의 두 판 사이의 차이

 
12번째 줄: 12번째 줄:
==같이 보기==
==같이 보기==
* [[/etc/hosts]]
* [[/etc/hosts]]
* [[grep -q]]

2020년 1월 14일 (화) 18:53 기준 최신판

1 개요[ | ]

/etc/hosts 변경 작업

2 추가[ | ]

grep -q server1 /etc/hosts || echo 135.79.246.80 server1 >> /etc/hosts
grep -q server2 /etc/hosts || echo 135.79.246.81 server2 >> /etc/hosts

3 삭제[ | ]

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}