执行预定义命令

#cd ~
#vi .profile

hello() {
  echo "hello";  
}

保存

#source .profile
#hello
原文地址:https://www.cnblogs.com/itfenqing/p/5456441.html