分页: 1 / 1

請問如何讓終端機一執行就進入特定的目錄?

发表于 : 2009-03-12 23:24
fuji65
我想要終端機一執行就進入特定的目錄,然後執行 "XXXX"等等的命令,請高手指點一下,thanks!!

Re: 請問如何讓終端機一執行就進入特定的目錄?

发表于 : 2009-03-13 0:13
narutozhang
写个脚本,添加到.profile中执行

Re: 請問如何讓終端機一執行就進入特定的目錄?

发表于 : 2009-03-13 8:05
lonelycorn
写到~/.bashrc中

Re: 請問如何讓終端機一執行就進入特定的目錄?

发表于 : 2009-03-13 13:57
narutozhang
=============================
SHELL START FILES
sh
/etc/profile
$HOME/.profile

bash
/etc/profile
$HOME/.profile(or $HOME/.bashrc)

csh
None
$HOME/.cshrc & $HOME/.login

tcsh
None
$HOME/.cshrc(or $HOME/.tcshrc) & $HOME/.login
==================================