ll command error -bash: ll: command not found

Error message: -bash: ll: the Command not found
root user does not appear
Here Insert Picture Description
under a normal user, ie the owner of the directory, use the ll command
Here Insert Picture Description
error reasons: root user permissions not in the current directory, or, at ll is not a basic Linux command, it is actually an alias ls -l, the default does not support the command ll, must be ls-l;
solution:
1, change to the directory user, and then use the ll command to view

Method 2,

#cd~	回到根目录/ 家目录,即中图产品的根目录

## vim ~/.bashrc	  #打开〜/ .bashrc ,添加“ alias ll = 'ls -l'”
#source ~/.bashrc	#修改立即生效,或者重新登录也可达到同样效果

#ll 此时可以正常使用LL 命令

After opening, typing a colon ":" and then type the command "set mouse = nv", then you can move the mouse cursor to the target position, and type "i" can edit operation; press "ESC" exit editing After editing state after typing ": wq" to save changes and exit (q represents the exit without any changes!).
3,
Here Insert Picture Description
Here Insert Picture Description

Reference links:
LL: the Command not found
https://blog.csdn.net/qingmou_csdn/article/details/80834583

Published 314 original articles · won praise 57 · views 90000 +

Guess you like

Origin blog.csdn.net/qq_40907977/article/details/104383246