---
title: "mac  添加alias"
author: "morry"
date: "2012-09-10T20:39:21Z"
tags: []
categories: ["操作系统"]
slug: "mac-alias"
draft: false
lastmod: "2012-09-10T20:39:21Z"
id: 1675356
url: "https://morry.iteye.com/blog/1675356"
---

sudo vi  /etc/bashrc

 

添加

```
alias goserver='ssh -i xxx.pem root@xxxx -v'
```

 

:wq! 保存