Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can anyonw tell me how can I find what my RHLE4 workstation IP address? I tried going to terminal type IFCONFIG but telling the command is not know. I am able to get to the internet both external and internal.
As it happened in my case, /sbin was not in my PATH.
(I am a simple user on a network. Not an administrator.)
Hence, neither ifconfig, nor ip addr worked.
I had to locate the command ifconfig,
i.e.,
Code:
locate ifconfig
Edit the file $HOME/.bashrc, i.e.,
add the line export PATH=$PATH:/sbin to
file $HOME/.bashrc
The question being addressed was not one of rights as much as expedient access. On Linuxes that I use, '/sbin' is in the $PATH for root, but not mortal users. I made the point originally because newbies might not realize that 'ifconfig' as root will probably work, but as joesixpack would require '/sbin/ifconfig'. Just trying to head off the reply reporting 'command not found'.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.