Linux ip 주소 알아내기

문제

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

해결책

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

Posted by 망고

2008/11/16 22:31 2008/11/16 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 : ... 296 : 297 : 298 : 299 : 300 : 301 : 302 : 303 : 304 : ... 1060 : Next »

Lilypie Fourth Birthday tickers

Stay Foolish, Stay Hungry.

- 망고

Site Stats

Total hits:
439513
Today:
113
Yesterday:
151