I’m working with a SUSE 12 Linux system and when logged in as ‘root’ I get “grep: +0: No such file or directory” returned after every command or even pressing [Enter] several times. How do I debug/troubleshoot what’s causing this?
infosphere04v:~ #
grep: +0: No such file or directory
infosphere04v:~ #
grep: +0: No such file or directory
infosphere04v:~ #
grep: +0: No such file or directory
infosphere04v:~ # uptime
12:39pm up 3:44, 3 users, load average: 0.14, 0.05, 0.04
grep: +0: No such file or directory
infosphere04v:~ #
A wild guess: there is something broken in “/root/.bashrc” or similar shell startup file.
My suggestion:
cd /root
mkdir old
mv .bash* old/.
mv .profile old/.
If root access is too broken to allow that, then boot from rescue media, mount your root file system and make those moves to the mounted file system.
When you have done those moves, reboot and see if everything works. And if it does work, you might want to examine those broken files to see what happened.
BTW, it seems that you are using SUSE Linux Enterprise Server Desktop version 12. Here however you are at the openSUSE forums, not at the SLES/SLED forums. They area at http://forums.suse.com/
You are welcome here, but please take care that people here do not use SLES/SLED and certainly not version 12.