-bash: sudo: No such file or directory
<p>Whenever opening the terminal, I always end up with this same error.</p>

<pre><code>-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
</code></pre>

<p>And whenever running command lines, the terminal throws an error, like</p>

<pre><code>-bash: sudo: No such file or directory
</code></pre>

<p>I can't even edit ~/.bashrc through <code>gedit ~/.bashrc</code> which I think could be the problem. But a <code>echo $PATH</code> gives me a empty line though.</p>

<p>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.</p>

<p>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. </p>

<p>EDIT:</p>

<p>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. </p>