Docker的很多Image都有少量我们平时使用的命令。 ll是其中之一。 其实ll来自alias。
~/.修改bashrc即可。
运行以下命令
nano ~/.bashrc
内容大致如下。
//bashrc:executedbybash(1) for non-login shells。
# note : PS1andumaskarealreadysetin/etc/profile.you should not
# needthisunlessyouwantdifferentdefaultsforroot。
# PS1=' $ { debian _ ch root 3360 ($ debian _ ch root ) }h:(w($ ) ) ) ) ) )。
# umask 022
# youmayuncommentthefollowinglinesifyouwant ` ls ' tobe colorized :
# export ls _ options='-- color=auto '
# eval '`dircolors ` '
# alias ls='ls $LS_OPTIONS '
# alias ll='ls $LS_OPTIONS -l '
# alias l='ls $LS_OPTIONS -lA '
#
# somemorealiastoavoidmakingmistakes :
# alias rm='rm -i '
# alias cp='cp -i '
# alias mv='mv -i '
此行:取消# alias ll='ls $LS_OPTIONS -l '的#号并将其保存到磁盘。
现在可以用ll。