linuxubuntusudoubuntu-20.04superuser

whenever I use "sudo su", i'm getting "bash: export : = not a valid identifier". I'm new to linux. Please excuse for not being more informative


Screenshot of my terminal

I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.


Solution

  • The root .bashrc file has a line that looks like this:

    export PATH = /snap/bin:/usr/local/sbin/...
    

    Get rid of the spaces around the =.

    export PATH=/snap/bin:/usr/local/sbin/...