Problem with commands in FC4

Status
Not open for further replies.

Desmond

Destroy Erase Improve
Staff member
Admin
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!
 

mehulved

18 Till I Die............
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

left this forum longback
try as root:
Code:
prakash@localhost.localdomain:~# system-config-packages
and get the needed pkgs installed.(devel tools:confused:)
 
Last edited:
OP
Desmond

Desmond

Destroy Erase Improve
Staff member
Admin
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

Technomancer
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

I see right through you.
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.
 
OP
Desmond

Desmond

Destroy Erase Improve
Staff member
Admin
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.
 
OP
Desmond

Desmond

Destroy Erase Improve
Staff member
Admin
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

I see right through you.
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.
 

mehulved

18 Till I Die............
First see if adding the following line in /etc/bash.bashrc.local helps out
Code:
PATH=$PATH:/sbin
 
OP
Desmond

Desmond

Destroy Erase Improve
Staff member
Admin
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?
 

mehulved

18 Till I Die............
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

I see right through you.
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

Wise Old Owl
@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
 
Status
Not open for further replies.
Top Bottom