[@localhost 1]$ ls
abc.txt makefile test test.c test.o
[@localhost 1]$ test
[@localhost 1]$
如图执行test无反应,由于之前在修改过路径可以不用输入 ./
cd .bash_profile
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:.
export PATH
但是这次必须输入./test才能执行