linuxエイリアス定義コマンド
558 ワード
1.Linuxでのcdからユーザーディレクトリ/home/ch_etl
2.ls-alファイルが見つかりました.bash_profile
3. vi .bash_profileファイルファイルファイルファイルに別名を追加する必要があります
4.終了を保存します.いいですよ...
2.ls-alファイルが見つかりました.bash_profile
3. vi .bash_profileファイルファイルファイルファイルに別名を追加する必要があります
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
shopt -s expand_aliases
PATH=$PATH:$HOME/bin
export PATH
export DISPATCH_PATH=/home/ch_etl/dispatch_server
alias gccli='/opt/gcluster/server/bin/gbase'
4.終了を保存します.いいですよ...