Change to ksh shell
Mi default shell is sh, i need to set the TMOUT variable so i need to change the shell to ksh, I change the /etc/profile file as follows, but when i do an echo $0 stll sh been the shell:
# more /etc/profile
# (c) Copyright 1990, OPEN SOFTWARE FOUNDATION, INC.
# ALL RIGHTS RESERVED
# OSF/1 Release 1.0
trap "" 2 3
export LOGNAME TERM
# Login and -su shell get /etc/profile services.
# -rsh is given its environment in its .profile.
case "$0" in
trap 2 3
# echo $SHELL
# echo $0
What should I do to have ksh as my default shell?
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|script to change shell's pwd||gigagigosu||Shell Programming and Scripting||3||12-20-2011 01:19 PM|
|Can't change default shell||Grueben||Solaris||4||02-19-2011 06:04 PM|
|how to change shell from BASH to C||npatwardhan||Shell Programming and Scripting||3||11-12-2008 09:43 PM|
|How do I change domain name from shell?||lucas||UNIX for Dummies Questions & Answers||3||05-09-2008 02:17 AM|
|How can I change my default shell||milhan||Shell Programming and Scripting||17||07-13-2004 04:15 PM|