在/etc/profile文件中添加别名

[root@localhost]# vim /etc/profile
alias sshtest="ssh 192.168.224.66"

# 命令行执行
[root@localhost]# alias
alias sshtest='ssh 192.168.224.66'

 

相关文章:

  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2021-06-03
  • 2021-07-11
  • 2021-12-11
  • 2022-01-23
相关资源
相似解决方案