LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 04-28-2002, 07:24 AM   #1
rockin chair
Newbie
 
Registered: Apr 2002
Location: Little Rock, AR
Distribution: RH v.7.2, Suse 8.0
Posts: 12

Rep: Reputation: 0
Question command lines?


I am a very new linux newbie, doing my best to evade M$ in everyway possible.
Hopefully this is the forum for this question. What is the equivalent command in Linux
for ipconfig in Dos?

Thank you very much.
 
Old 04-28-2002, 07:39 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
ifconfig (you will probably need to be root to use it, it is usually in /sbin/ so you might find it isn't in your path and need to give the full name including directory.
 
Old 04-28-2002, 02:04 PM   #3
rockin chair
Newbie
 
Registered: Apr 2002
Location: Little Rock, AR
Distribution: RH v.7.2, Suse 8.0
Posts: 12

Original Poster
Rep: Reputation: 0
I apologize for not being very clear in my question.

If the command is C:ipconfig/all

what would the equivalent command be for Linux? I hope that is more clearer.

javascript:smilie('')Thank you dorward.
 
Old 04-28-2002, 02:08 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
from a prompt: ifconfig -a

or you can do individual devices.. like your first ethernet card would be eth0, you could do a ifconfig eth0 to display just the info for that.

man ifconfig for the manual pages and all available options for the command. you can also perform a man command-name on any command for all options of the command.
 
Old 04-28-2002, 05:43 PM   #5
rockin chair
Newbie
 
Registered: Apr 2002
Location: Little Rock, AR
Distribution: RH v.7.2, Suse 8.0
Posts: 12

Original Poster
Rep: Reputation: 0
Tricky kid:

Just what I was looking for. Thank you very much.
 
Old 04-28-2002, 11:48 PM   #6
lnxconvrt
Member
 
Registered: Mar 2002
Location: Houston
Distribution: FC3, Manrake 10.x, various others at times
Posts: 113

Rep: Reputation: 18
route command

The ifconfig -a shows some info that ipconfig/all doesn't. OTOH, it still doesn't show me (on SuSE 7.3) things like gateway, dns, dhcp, which ipconfig/all shows in Windows.

The route command, with no arguments, shows me my default gateway. Using "netstat -nr" does the same. I can "cat /etc/resolv.conf" to see the nameservers that I've set up.

I'm not sure if there's one command to show all these (ip, gateway, dns) from a linux command line.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When command lines go bad bob7 Linux - General 3 09-11-2005 06:47 AM
Command erase lines paraiso Linux - Newbie 4 05-12-2005 11:48 AM
Combining 2 command lines satimis Programming 6 10-18-2004 10:40 PM
Grip command lines linuxtakemeaway Linux - Newbie 5 02-03-2003 02:11 PM
Executing command lines in C/C++ ReverseLogic Programming 2 05-28-2002 03:08 PM


All times are GMT -5. The time now is 06:29 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration