boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Re: 想登录后的shell是bash
相关主题
how to change login shell?
[转载] About the history
which shell is best?
where can find source code of Bash or csh or any shell
How to program? Shell Question
我的cxterm比较怪
which shell is the best among csh, ksh, bsh?
为什么time命令无法重定向?
help shell script (waiting on line)
[转载] 谁知道ibm aix下怎么设置shell位bash?
相关话题的讨论汇总
话题: bash话题: bin话题: shell话题: 登录话题: do
进入Unix版参与讨论
1 (共1页)
j***y
发帖数: 87
1
some old system has a comand 'chsh'
which is dedicated to do what you want to do.
m****m
发帖数: 165
2
You need to make sure the bash is installed in your
$HOME/bin/bash (I am sure you know).
If your system have already bash available (I know you have
'cause you can type bash after login), normally it will be
under /bin
Add following lines to your .profile and it will do the job
for you.
if [ -x /bin/bash ]; then
exec /bin/bash
fi
You can change to ksh & csh by this way as well.
1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 谁知道ibm aix下怎么设置shell位bash?
shell script for "for" loop
One shell question
怎么从script中把环境变量传回到当前shell中? (转载)
如何在后台运行shell 并且输出运行结果
login shell and normal shell?
Re: small but nice thing to know
Re: 怎么在bash script里面改变xterm窗口的标题?
Re: Bash一问:怎么include
bash prompt 一问
相关话题的讨论汇总
话题: bash话题: bin话题: shell话题: 登录话题: do