(1)安装vim
apt-get update
apt-get install -y vim
(2)配置
/root/.bashrc文件新增内容:alias ll='ls -l'
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be 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'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
alias ll='ls -l'
source /root/.bashrc
(3)测试
root@6fb9fbaa2aff:~# ll -a
total 28
drwx------ 1 root root 4096 Jan 23 02:29 .
drwxr-xr-x 1 root root 4096 Jan 23 01:38 ..
-rw------- 1 root root 31 Jan 23 01:39 .bash_history
-rw-r--r-- 1 root root 588 Jan 23 02:29 .bashrc
-rw-r--r-- 1 root root 161 Jul 9 2019 .profile
-rw------- 1 root root 815 Jan 23 02:29 .viminfo