I am able to run ll command with my user but not with sudo, it giving me error as command not found!
In order to run ll
with sudo, the user that is sudo'ed (superuser or another user, as specified by the security policy) needs an alias ll='ls -al'
in his profile.
Note that even if defined, you may not be allowed to execute it by the security policy. To find out which commands you may execute type sudo -l