Linux ip 주소 알아내기

문제

Linux 내 PC의 IP주소를 알고싶다.

해결책

ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' |
cut -d: -f2 | awk '{ print $1}'

Posted by 망고

11 16, 2008 22:31 11 16, 2008 22:31
,
Response
No Trackback , 4 Comments
RSS :
http://www.shimminkyu.com/tc/rss/response/915

Trackback URL : http://www.shimminkyu.com/tc/trackback/915

Comments List

  1. [RA]Penguin 2008年 11月 17日 12時 50分 # M/D Reply Permalink

    리눅스는 쓰지 않지만 그냥 궁금해서 그러는데요……
    ipconfig에서 볼 수 있는 자기 IP주소와 이건 다른건가요?

    1. 망고 2008年 11月 17日 13時 35分 # M/D Permalink

      같은거야. 단지 리눅스에는 윈도우즈 ipconfig 처럼 간단하게 보여주질 않으니 뒤에 주르룩 명령이 필요할 뿐이지. ifconfig만 해도 IP를 찾아볼 수 있을 정도로는 나옴.

  2. 함차 2008年 11月 18日 13時 22分 # M/D Reply Permalink

    아래부분은..화면 출력부분인가요
    ifconfig는 알고 있는데..아래부분은 출력양식을 나타내는건지 아리쏭 하네요..

    1. 망고 2008年 11月 18日 14時 28分 # M/D Permalink

      맞습니다 ^^ ifconfig의 출력부분을 "|"를 이용해서 다른 명령어들로 보내는거죠.

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 30 : 31 : 32 : 33 : 34 : 35 : 36 : 37 : 38 : ... 795 : Next »

Recent Photo

recent photo from http://mangolog.tistory.com/ from Mango PhotoLog

Stay Foolish, Stay Hungry.

- 망고

Notices

  1. About Me

Schedule

«  »
with Google Calendar API

Site Stats

Total hits:
215371
Today:
251
Yesterday:
249