LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-09-2002, 03:11 PM   #1
boku
Member
 
Registered: Aug 2002
Location: Sweden
Distribution: Gentoo
Posts: 43

Rep: Reputation: 15
Two simple questions!


Hello!
[list=1][*]What command shows my current IP? (I use DHCP)[*]How do I change the computer's name?[/list=1]
 
Old 08-09-2002, 04:05 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
I take the second one
To set your hostname, you use
hostname new_hostaname
command. For more options please read
man hostname
 
Old 08-09-2002, 04:24 PM   #3
A-dummy
Member
 
Registered: Jun 2002
Location: Kanpur,India
Distribution: RH-7.0 , 7.3
Posts: 130

Rep: Reputation: 15
for the second one just type ifconfig ........again , for more options read
man ifconfig
 
Old 08-09-2002, 09:46 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Here was a good discussion about changing the hostname correctly.

http://www.linuxquestions.org/questi...threadid=24683
 
Old 08-11-2002, 07:47 PM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Would typing ifconfig not also show the current IP address?
 
Old 08-12-2002, 07:21 AM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Yes, it would. All IPs.
 
Old 08-12-2002, 10:20 AM   #7
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Yep ifconfig eth0 would show only ip info for first card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 01:40 PM
Three Simple Questions Wapocalypse Linux - Newbie 4 01-04-2003 07:49 PM
simple questions safrout Linux - Hardware 4 12-08-2002 11:00 AM
Three simple questions ErikD Linux - Software 2 10-15-2001 10:03 AM
Two simple questions M.I. Linux - General 3 07-12-2001 11:27 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration