You are not logged in.
Pages: 1
some of commands suddenly stopped working like reboot ,lsusb etc . any idea why ?..
Offline
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
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
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
Argh! ^_^ ... too slow -.- ...
Offline
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
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
there is no profile in /etc but there is profile.bash ,profile.d and profile.pacsave
Offline
hey ls /etc/skel shows nothing ..........
Offline
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
no as i mentioned there was no profile in /etc but three other files which i mentioned above
Offline
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
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
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
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
ya its working ... thanks a lot
Offline
got same problem after upgrading bash, I "lost" the shutdown and some other commands ...
Offline
Pages: 1