Linux command 'll' is not working

前端 未结 6 1002
一整个雨季
一整个雨季 2021-02-18 19:08

I am able to run ll command with my user but not with sudo, it giving me error as command not found!

6条回答
  •  广开言路
    2021-02-18 19:24

    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

提交回复
热议问题