首页 > 编程知识 正文

docker部署linux,docker centos7

时间:2023-05-04 09:03:19 阅读:9674 作者:1418

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。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。