進入每次都直行的語法? - Linux

Table of Contents

我是用Cens OS每次登入都會打一樣的指令
有辦法在我登入的時候就自動執行嗎?

我的打的是sourse ABC的指令

--

All Comments

Jake avatarJake2013-09-18
vi ~/.profile
Delia avatarDelia2013-09-21
試試把指令放在 ~/.profile 裡面看看
Dorothy avatarDorothy2013-09-23
centos好像沒有.profile 是.bash_profile
Sarah avatarSarah2013-09-26
我是都放在.bashrc 這個檔案應該個distro都有
各distro
Megan avatarMegan2013-09-27
如果你有.bash_profile 又自己創一個.profile
這個.profile可能會被忽略
Sarah avatarSarah2013-09-28
對了 .bashrc是nonlogin的 這點要注意
Carolina Franco avatarCarolina Franco2013-09-29
可以用.bash_login,我不確定centos有沒有
Bethany avatarBethany2013-10-01
http://ppt.cc/r8zW 這個可以看一下 才不會搞得亂七八糟