linux.sfttec.com[ホーム] > コマンド文字列順一覧 | カテゴリ一覧 > alias
alias -  コマンドの別名を定義
構文  
alias [name[='command']]
オプション
name 別名を定義。
='command' もとの名前。
説明  
別名を登録する。オプションを省略した場合は現在登録している別名をすべて表示する。
使用例

$ alias h='history' <- nameにh, comandにhistoryを設定する。 $ alias <- 現在登録されているaliasを全て表示する。 alias h='history' <- 現在登録されているaliasが全て表示されている。 (ここでは、nameがhの物のみ。) $ h <- aliasで登録されたhを実行すると、 historyコマンドが実行され、 以下にコマンド入力履歴が表示される。 1 alias h='history' 2 alias 3 h

linux.sfttec.com[ホーム] > コマンド文字列順一覧 | カテゴリ一覧 > alias