FedoraThis forum is for the discussion of the Fedora Project.
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.
Hy guys, I have a problem on my Fedora core 4, if I type some commands it does not work, first I tryd something like "lynx" it says command not foud, but after that I tryd many commands it keeps saying command not found, I tryd just now "ifconfig" and also "ifconfig -a" again it says commmand not found, what is the problem ??? when I type in "who" it works, I also tyrd onder the Root . even then it says command not found, please help.
Maybe lynx simply isn't installed...? As for commands like ifconfig, these will only work as root.
How about you let us know which commands you're trying to run as a normal user and having troubles with, then which commands you're trying to run as root and having trouble with?
actualy is the same in user mode or root mode,
I tryd commands like "who" "last" I made a text document with "vi" its working, but if I try like "ifconfig" or "lynx http://some site " than it returns to me with "command not found" in both root and user.
Do you have lynx installed, I know that my Fedora Core didn't come wiht it, I had to download it. That may be the problem, or the command may not be found because you're not root.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
If your having problems with commands (ifconfig, who and such) then try locating them first by entering;
locate <command_name_here>
Example;
$ locate ifconfig
/sbin/ifconfig
If you get back and error the follow the instructions in the error message.
If you want to run an application and your not sure if it is installed or not then check if an application is available (installed) by using the rpm command and check by entering;
Who are you trying to run ifconfig as. I know I can't run it as a normal user.
I have to do a su - root. Lenard is right though. The /sbin holds a lot of the administrative commands and one of those commands is ifconfig.
I'm runing it as root,
its installed, its in the folder, I can locate it like you say , but when I write : ifconfig -a or ifconfig then it says command not found, when I try "who" or "w" then it works , so its not with all commands. I chekd also with rpm it says its installed, it shows the man directorys form man info, and it shows the bin directory where the file is .
Hy guys, this problem making me realy sick now, I cant use any normal command, when I type in the command it says : command not found, firt it was only thing like ifconfig or ifconfig -a , and I was thinking that maybe is something with the ifconfig, but now I just installed Apache 2.2 everything wass ok ./configure, make, make install everything went good, now I want to start my apache /usr/sbin/apachectl -k start , nothing works or if I do stop , nothing, it just comes up with " command not found"
:
[root@Vigor31 sbin]# clear
[root@Vigor31 sbin]# locate apachectl
/usr/share/man/man8/apachectl.8.gz
/usr/sbin/apachectl
/var/www/manual/programs/apachectl.html.ko.euc-kr
/var/www/manual/programs/apachectl.html
/var/www/manual/programs/apachectl.html.en
[root@Vigor31 sbin]# apachectl -k start
bash: apachectl: command not found
[root@Vigor31 sbin]# ls
accept
Im logged on as root, please help me, this is very strange but some commands like "who" "last" "df" are working, but others not.
I have Fedora core 4.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
If you are in the directory where the command is found then you need to something like;
./apachectl -k start
or
/usr/sbin/apachectl -k start
Also notice the path where command is; usr/sbin
And where you are; pwd
who is in the /usr/bin directory location and should be in your path, the commands that work are more then likely in your path, the ones that do not more then likely are not. Your current path can be known by simply typing;
$PATH
You should also realize that a normal users path is not the same as root's path. If you are using 'su' to switch to root you inhert the current users path and not root's path, you need to use 'su -' to get root to use root's path.
the commands issue was a problem of the PATH's when I loged in as root li " su " it was not on the right path I think, thanks to all of you here on the forum who told me to try " su - " that helped
now my apache is up and runing and now I'm going to try to install LYNX on my linux, when I'll finish that one then I will start with the configuration of my apache.
Like I said I want it in shell thaks guys, now I need help with installing lynx.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.