linux ll:未找到命令
data/rj/eclipse# ll
bash: ll:未找到命令
查看:vim ~/.bashrc,把#去掉,如果没有自己添加
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
按 shift + ; 输入wq保存,然后输入source ~/.bashrc生效,输入bash全局生效
kong@k:~/data/rj/eclipse$ source ~/.bashrc
kong@k:~/data/rj/eclipse$ bash
kong@k:~/data/rj/eclipse$ ll
总用量 224
drwxr-xr-x 12 kong root 4096 5月 5 14:39 configuration
drwxr-xr-x 2 kong root 4096 5月 5 13:58 dropins
-rwxr-xr-x 1 kong root 61176 6月 4 2020 eclipse
-rw-r--r-- 1 kong root 233 5月 5 14:44 eclipse.desktop
3个指令对比:
root@k:/data/rj/eclipse# ls -l
总用量 224
drwxr-xr-x 12 kong root 4096 5月 5 14:39 configuration
drwxr-xr-x 2 kong root 4096 5月 5 13:58 dropins
-rwxr-xr-x 1 kong root 61176 6月 4 2020 eclipse
-rw-r--r-- 1 kong root 233 5月 5 14:44 eclipse.desktop
-rw-r--r-- 1 kong root 915 5月 5 13:58 eclipse.ini
-rwxr-xr-x 1 kong root 140566 6月 4 2020 icon.xpm
drwxr-xr-x 2 kong root 4096 5月 5 13:58 plugins
drwxr-xr-x 2 kong root 4096 5月 5 13:58 readme
root@k:/data/rj/eclipse# ls
configuration dropins eclipse eclipse.desktop eclipse.ini icon.xpm plugins readme
root@k:/data/rj/eclipse# ls -A
configuration dropins eclipse eclipse.desktop eclipse.ini .eclipseproduct icon.xpm plugins readme
root@k:/data/rj/eclipse# ls -CF
configuration/ dropins/ eclipse* eclipse.desktop eclipse.ini icon.xpm* plugins/ readme/