Linux command 'll' is not working

前端 未结 6 1003
一整个雨季
一整个雨季 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:46

    That's expected because ll is defined in your profile (.bashrc in Ubuntu, for instance).

    grep "alias ll" ~/.bashrc
    alias ll='ls -alF'
    

    Your .bashrc will not run when you sudo.

提交回复
热议问题