command to find ip address in a local network
hi
what is the command to find the ip address of my system . |
Code:
# ifconfig |
ifconfig -a
|
I gather that the command ifconfig is now deprecated and in at least some distributions its replacement is installed as well.
The new command is ip followed by a switch. Code:
ip addr The other switches are available in: Code:
man ip Code:
ip neigh |
Also, it should be noted that at least on Fedora, both of those reside in /sbin/, which is not part of a normal user's path (as it contains tools meant for root, or so that is my understanding) and so the user will need to add /sbin/ to their PATH or they will need to type
Code:
$ /sbin/ifconfig Code:
$ /sbin/ip addr |
thank u linuxCrayon
u r right . typing with the path name(/sbin/) only worked . |
Hi,
Quote:
I would like to clarify the above; Quote:
Quote:
|
Hi,
Quote:
Quote:
|
Hello again, Onebuck. :)
Nope. Haven't modified it at all. In fact, even without being root, I can shutdown the system...do all kinds of stuff that I probably should not be able to do. I've found this to be true of Fedora and OpenSUSE. Note that this is with the default new account set up during installation...and I haven't tested that with any newly created users. Apparently the OP found the same to be true. As a side note, I should probably remove permission to /sbin... |
Hi,
Quote:
|
All times are GMT -5. The time now is 07:51 PM. |