Search code examples
linuxlist

Linux command ll is not working with super user


I am able to run ll command with my user but not with sudo. I'm getting the following error while doing it

error: ll: command not found!

Error statement is not exact, but it was similar.


Solution

  • Try sudo ls -l.

    As ll is a shorthand for ls -l.