PATH設定 - Linux

Table of Contents

如標題
我是寫在/etc/profile裡面
所以有先執行source /etc/profile

可是比如說我要執行k這個檔案
執行echo $PATH
會出現PATH=...:/opt/hsnu/sbin
我直接打k會說-bash: maui: command not found

如果我打/opt/hsnu/sbin/k就可以執行

請問一下為什麼?
感謝

--

All Comments

Doris avatarDoris2010-03-20
家目錄下的.profile會優先使用(沒記錯的話)