DIGIT-ARC read-only archive · snapshot: July 23, 2026

Problem with commands in FC4

16 posts · originally from https://geek.digit.in/community/threads/problem-with-commands-in-fc4.35422/

Desmond
Desmond Original post #1
Sep 1, 2006 at 2:38 PM
I have a weird problem with FC4. The konsole does not recognise commands such as insmod, lsmod, chmod, fdisk, etc. What do you think is the cause of this problem? Also, can you tell the solution?

Thanks in Advance!
M
Sep 1, 2006 at 2:58 PM
DId you select softwares manually while installation? It seems the installation hasn't gone well. Just search for these in the CD/DVD and install it or install them from net.
Also, see if you can get these commands to work as root?
praka123
Sep 1, 2006 at 8:24 PM
try as root:
Code:
prakash@localhost.localdomain:~# system-config-packages
and get the needed pkgs installed.(devel tools:confused:)
Desmond
Desmond #4
Sep 2, 2006 at 11:57 AM
Yeah, I manually selected the packages to install. However, I cant get the commands to work even as root. What extra package do you think will be required?
mediator
Sep 2, 2006 at 1:27 PM
may be the commands are not in path!
command from root "locate chmod" and similarly for others and then add their directory to path!
neways chmod is in "bin directory".....so try "/bin/chmod"
If it doesnt work then probably the packages are not installed!
Sykora
Sykora #6
Sep 2, 2006 at 1:50 PM
The commands you have listed are part of coreutils : *www.gnu.org/software/coreutils/manual/html_mono/coreutils.html , so it is inconceivable that your system is operating without coreutils installed. Go as root and type "which chmod", or like mediator said, "locate chmod". Also try it in virtual terminal mode, or using sudo.
Desmond
Desmond #7
Sep 6, 2006 at 1:30 PM
Sorry, chmod is working fine, I have problems with insmod, lspci, fdisk and such commands. I have found these commands in /sbin but not in usr/sbin. I tried copying the files to this folder, but no use. They dont work as root.
M
Sep 6, 2006 at 2:27 PM
What is the output of
Code:
echo $PATH
Desmond
Desmond #9
Sep 7, 2006 at 11:19 AM
tech_your_future said:
What is the output of
Code:
echo $PATH

Heres the output exactly as displayed.
Code:
[desmond@localhost /]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/desmond/bin
Sykora
Sykora #10
Sep 7, 2006 at 6:42 PM
You have to add /sbin to your path, if you want to use these tools. They're put in /sbin because it is forseen that only root user will want to use these tools.
Desmond
Desmond #11
Sep 8, 2006 at 12:47 PM
So, what should I do to make them available to the user (i.e. myself)
M
mehulved #12
Sep 8, 2006 at 3:00 PM
First see if adding the following line in /etc/bash.bashrc.local helps out
Code:
PATH=$PATH:/sbin
Desmond
Desmond #13
Oct 7, 2006 at 5:39 PM
The command works. I am temporarily able to use the commands for one session. However, I am not able to find the file /etc/bash.bashrc.local , do I have to create it?
M
mehulved #14
Oct 7, 2006 at 7:24 PM
Umm I am not so familar with FC, maybe you could look up in their docs or search up on the net, something similar should be there.
Sykora
Sykora #15
Oct 7, 2006 at 7:45 PM
You can add the command in your ~/.bashrc file. It's got to be there. Otherwise, it'll be called ~/.bash-profile or something like that.
JGuru
JGuru #16
Oct 7, 2006 at 8:39 PM
@Desmond, the files .bashrc, .bash_profile are hidden files!!!
They are in your home directory. For eg., if your Login name is desmond , then
your home is /home/desmond. You can view the hidden files in GNOME , from the
menu 'View'->'Show Hidden files' (Ctrl + H). Another way to view them is from
the Terminal Window, type:

$ ls -al