tags:

views:

849

answers:

2

Is there a command within the bash shell of fedora that will give me the currently assigned IP address?

+5  A: 

ifconfig is what you're looking for

warren
only if I am root
dacracot
ifconfig works as a non-root user. It may not be in your path (/sbin/ifconfig), but you can still run it.
camh
The output of `ip addr` may be easier to parse. Like `ifconfig`, it may not be in the default $PATH of a non-root user, but it will still work.
ephemient
A: 

ipconfig getifaddr eth0

incognitus