如何在 shell 中创建命令别名?

Kir*_*lla 0 linux ubuntu

如何在linux中创建命令别名?例如,我想为ssh root@host

谢谢?

Mad*_*ter 6

哪个壳?

假设 bash,把这种东西放在你的.bashrc

alias srhost="ssh root@host"
Run Code Online (Sandbox Code Playgroud)