0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ターミナルのコマンドを省略してうてるようにする方法

Posted at

初回設定

  1. .bashrcファイルを編集
  2. .bash_profileを編集
  3. 変更を反映

.bashrcファイルを編集

以下のように追記

.bashrc
・
・
alias 省略名="コマンド"
# ex) alias gopro="ssh -i ~/.ssh/sample.pem ec2-user@12.34.567.890"

.bash_profileを編集

以下のように追記

.bash_profile
・
・
source .bashrc

変更を反映

terminal
$ source ~/.bash_profile

2回目移行

  1. bashrcファイルを編集
  2. 変更を反映

上記を参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?