Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hi
I have installed Redhat 5.0( 2.6.18-8.el5).I could not find some commands like Ifconfig,Fdisk,i have tried to run the same commands as a root also nut,it also did'nt work,please help.Thanks in Advance.
Yusuf
I used this handy little feature I have in KDE called "Find Files/Folders" which is equivalent to the "Search" in Windows and found both of them in /sbin.
I have heard in the past that in Red Hat distros you need to switch user with "su-" or "su -" to get full root permission.
Distribution: Fedora 7, Fedora 9, Solaris 10, Mac OS X, RHEL5
Posts: 71
Rep:
Commands like ifconfig and fdisk have to be executed as root.
So you have to do the following:
$ su -
Password: Enter your password
# Now you are root and can use ifconfig and those commands.
By the way if you are trying to become root just by typing "su" you wont be able to use those commands, because you dont have the complete root PATH.
I used this handy little feature I have in KDE called "Find Files/Folders" which is equivalent to the "Search" in Windows and found both of them in /sbin.
I have heard in the past that in Red Hat distros you need to switch user with "su-" or "su -" to get full root permission.
That is so true. It through me off the first time I installed and tried to run ifconfig. I was like why does root not have access to sbin. Then I did a su - and it worked perfectly. so in short you do have to take on full root permissions or use the full path to the command.
if you don't include the "-" with the su command your environment (PATH) does not get updated and the system will not be able to locate those command binaries, as mentioned above.
I never issue su without including the hyphen. it's sorta pointless.
Hi
I have installed Redhat 5.0( 2.6.18-8.el5).I could not find some commands like Ifconfig,Fdisk,i have tried to run the same commands as a root also nut,it also did'nt work,please help.Thanks in Advance.
Yusuf
You can also try whereis command. Just open command shell and type in
> whereis ifconfig
and you will get the location of the file as a reply.
Thanks everybody for overwhelming response,i have found out the Fdisk and the other commands in /sbin and have updated the PATH ,it's working fine.
Thanks Once again
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.