개발 일기

linux hosts 파일 수정 본문

linux

linux hosts 파일 수정

이건욱

hosts 파일 접근

sudo vi /private/etc/hosts 

 

내용 편집

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost

 

내용 저장 후 dns cache 갱신

$ dscacheutil -flushcache

 

'linux' 카테고리의 다른 글

Htop ?  (0) 2020.05.01
grep ?  (0) 2020.04.30
which ?  (0) 2020.04.28
find ?  (0) 2020.04.28
cal ?  (0) 2020.04.25
Comments