ifconfig command
I know that the ifconfig command will output the ip address of the ethernet interfaces of your
machine. But You will notice that if you type the command it returns an error due to the fact that the command is not in your path. How can I add the command “ifconfig” to your path and show that it can be executed from any directory |
A temporary solution in your current shell
Code:
PATH=$PATH:/sbin You can also prefix the command with the full path to the location of the command. Code:
/sbin/ifconfig |
Normally, ifconfig can only be executed by root. You will find it is in the path if you try "sudo ifconfig" from a terminal or execute it as root.
Code:
~$ ifconfig -h Code:
~$ sudo ifconfig -h |
Thanks a lot
|
1 Attachment(s)
If you consider your problem to be solved as a service to others please mark this thread as [SOLVED]. You can use the Thread Tools menu located above your first post in this thread (see the attachment).
jdk |
Quote:
|
All times are GMT -5. The time now is 05:13 AM. |