LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-17-2003, 09:28 PM   #1
blackreality
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
UNIX command to identify a system's IP address


Im a newbie. I have two questions. I installed Red hat 9.0 a few days ago. I thought I set it up to install the text mode but when it rebooted, it rebooted to graphics mode and I need to know how to change it back to text mode.

Also I need to know the command that will tell me the IP address of the machine it's running on. I turned DHCP on when I turned it on but don't know how to identify the address of the machine so I can remote boot into it.

Any help would be appreciated
 
Old 06-17-2003, 09:42 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
as root if you edit the file /etc/inittab you will see a line that says:
id:5:initdefault
the 5 is telling it to boot you directly to X..
if you change the 5 to a 3 to look like:
id:3:initdefault
you will boot directly to the console...instead of the X Windows...
as for finding the ip address and assuming your connection to the internet is using eth0, you will issue the following:
/sbin/ifconfig eth0
 
Old 06-18-2003, 01:23 AM   #3
blackreality
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
many many thanks. im going to try it now
 
Old 06-18-2003, 02:09 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You don't have to specify eth0
/sbin/ifconfig will list all connections

Cool
 
Old 06-18-2003, 12:40 PM   #5
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
If your internet connection uses dial-up or pppoe the IP number will show up on the ppp0 interface in the output from "/sbin/ifconfig -a"
 
Old 06-18-2003, 02:02 PM   #6
liguorir
Member
 
Registered: May 2003
Posts: 256

Rep: Reputation: 30
netconfig, ifconfig, dhcpd
 
Old 06-18-2003, 02:04 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
dhcpcd
 
  


Reply



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
How The Unix OS translate the shell command flavor Programming 4 10-25-2005 12:02 PM
Command and Unix help thinkgeek Programming 3 07-05-2005 01:24 AM
Is exp an Unix command? gopikrish Linux - Newbie 4 12-13-2004 01:19 AM
What command can identify processes running on ports? hello321_1999 Linux - Newbie 2 11-23-2004 05:01 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration