You are not logged in.

#1 2008-05-14 09:06:55

mugen
Member
Registered: 2008-05-14
Posts: 51

some commands are not working

some of commands suddenly stopped working like reboot ,lsusb etc . any idea why ?..

Offline

#2 2008-05-14 09:09:43

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: some commands are not working

Those are commands in /sbin and /usr/sbin, so those dirs probably got dropped from your PATH. Have you recently changed any of your shell startup files?

Offline

#3 2008-05-14 09:14:09

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

Check your PATH variable with 'echo $PATH'. It should point to the directories where this commands are found. '/usr/bin', '/usr/local/bin' for example. If it's empty then you should check if you messed up your './.bashrc' or './.bash_profile' files, or even '/etc/profile'.

Offline

#4 2008-05-14 09:16:14

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

i am totally new to linux so i dont know what exactly you mean by changing shell startup files . But my bash was upgraded when i was trying to upgrade my gcc

Offline

#5 2008-05-14 09:16:16

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

Argh! ^_^ ... too slow -.- ...

Offline

#6 2008-05-14 09:22:08

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

You can try to copy the content in '/etc/skel/' to your home folder with 'cp /etc/skel/* ~/'. This should overwrite your local bash config files. If this doesn't help, then you have to update the '/etc/profile' file. There should be a '/etc/profile.pacnew'. Just move it 'mv /etc/profile.pacnew /etc/profile'. This should fix it.

Offline

#7 2008-05-14 09:23:14

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: some commands are not working

A Bash upgrade shouldn't do it; the relevant file is in the filesystem package. Try running 'source /etc/profile', then one of the commands you couldn't run before.

Offline

#8 2008-05-14 09:39:08

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

there is no profile in /etc but there is profile.bash ,profile.d and profile.pacsave

Offline

#9 2008-05-14 09:42:10

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

hey  ls /etc/skel shows nothing ..........

Offline

#10 2008-05-14 09:45:20

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

Sorry... I'm behind a Debian box here for the moment. But I was quite sure I had a '/etc/skel/' directory at home on arch, too.

Didn't 'source /etc/profile' help to solve the problem?

Offline

#11 2008-05-14 09:48:20

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

no as i mentioned there was no profile in /etc but three other files which i mentioned above

Offline

#12 2008-05-14 09:54:18

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

Well... I think that is exactly the problem. It got removed. Try to move the file '/etc/profile.pacsave' with 'mv /etc/profile.pacsave /etc/profile' and then execute 'source /etc/profile'.

But how and why did it got removed in the first place?!

Offline

#13 2008-05-14 09:59:27

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

no idea how it got removed , i am new to linux no way i could edit those files ...anyways 'source /etc/profile' is not producing any output

Offline

#14 2008-05-14 10:02:35

toliman
Member
Registered: 2008-05-14
Posts: 11

Re: some commands are not working

There should be no output when running 'source /etc/profile', but your path variable should have been updated. The commands should work now again.

Offline

#15 2008-05-14 10:07:09

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: some commands are not working

Reinstall filesystem to get your /etc/profile back. There was a bug a long time ago and /etc/profile was lost somehow.

pacman -Sy filesystem

Offline

#16 2008-05-14 10:10:08

mugen
Member
Registered: 2008-05-14
Posts: 51

Re: some commands are not working

ya its working ... thanks a lot

Offline

#17 2008-05-14 18:59:06

fatlarry
Member
Registered: 2008-05-14
Posts: 31

Re: some commands are not working

got same problem after upgrading bash, I "lost" the shutdown and some other commands ...

Offline

Board footer

Powered by FluxBB