Whenever opening the terminal, I always end up with this same error.
-bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/local/hadoop/bin': not a valid identifier
And whenever running command lines, the terminal throws an error, like
-bash: sudo: No such file or directory
I can't even edit ~/.bashrc through gedit ~/.bashrc
which I think could be the problem. But a echo $PATH
gives me a empty line though.
By the way, all those stuff happen under my personal account. There's a dedicated hadoop user account, which I created specifically for running hadoop and in fact works fine without a glitch.
I really appreciate it if anyone could tell me what's going on here, and it's been frustrating me for a week or so. Thanks in advance.
EDIT:
It turned out that before I created the second account(for hadoop), I modified its bashrc at the end of the file, which I totally forgot. Therefore it was bound to run into trouble. Hugh thanks again to you guys for helping me out, reminding me to check the bashrc file and obviously how to run command line in this situation.