如何为命令创建别名?

IIS*_*eII -2 bash alias

我想为 busybox 命令创建一个别名

BB=$(($(busybox)))
Run Code Online (Sandbox Code Playgroud)

Bus*_*ler 5

alias BB='busybox'
Run Code Online (Sandbox Code Playgroud)

创建别名的语法(在.bashrc或中.bash_profile)是,

alias <alised command>='<command with options if any>'

为目录中的长文件列表创建别名;

alias ll='ls -l'在你的.bashrc或.bash_profile.