Newbie's question!?

Newbie's question!?

Post by ibm.. » Fri, 19 Nov 1999 04:00:00



Solaris 2.6 for Sparc.

1. Right now my SHELL is /bin/sh, I want to change to KSH. How can I do
this? I try to update my '.dtprofile' like 'SHELL=/bin/ksh' and 'export
SHELL'. It doesn't work.

2. What do I have to do for enabling when type uparrow key, screen
display the last command I typed?

Thanks a lot! pls also email me a copy.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Newbie's question!?

Post by Jun Wan » Fri, 19 Nov 1999 04:00:00



> Solaris 2.6 for Sparc.

> 1. Right now my SHELL is /bin/sh, I want to change to KSH. How can I do
> this? I try to update my '.dtprofile' like 'SHELL=/bin/ksh' and 'export
> SHELL'. It doesn't work.

One way to do so is to use the nistbladm ( I suppose your system is
running NIS+ ).  You can man nis and nistbladm for details.

Quote:

> 2. What do I have to do for enabling when type uparrow key, screen
> display the last command I typed?

At least tcsh can help you do this.  Or if you change your shell to ksh,
you can do it in another way.

Jun Wang

 
 
 

Newbie's question!?

Post by Rich Tee » Fri, 19 Nov 1999 04:00:00



Quote:> 1. Right now my SHELL is /bin/sh, I want to change to KSH. How can I do
> this? I try to update my '.dtprofile' like 'SHELL=/bin/ksh' and 'export
> SHELL'. It doesn't work.

Log on as root, and /usr/sbin/usermod -s /bin/ksh <user>, where <user>
is your username.  DO NOT DO THIS FOR ROOT!!

Quote:> 2. What do I have to do for enabling when type uparrow key, screen
> display the last command I typed?

Use export EDITOR=vi, and then use <Esc>k to scroll up, or <Esc>/ to search
for a command.

HTH,

--
Rich Teer

NT tries to do almost everything UNIX does, but fails - miserably.

The use of Windoze cripples the mind; its use should, therefore, be
regarded as a criminal offence.  (With apologies to Edsger W. Dijkstra)

If it ain't analogue, it ain't music.

Voice: +1 (250) 763-6205
WWW: www.rite-group.com

 
 
 

Newbie's question!?

Post by Lon Stowe » Fri, 19 Nov 1999 04:00:00



>Solaris 2.6 for Sparc.

>1. Right now my SHELL is /bin/sh, I want to change to KSH. How can I do
>this? I try to update my '.dtprofile' like 'SHELL=/bin/ksh' and 'export
>SHELL'. It doesn't work.

   If you are trying to change the ROOT shell, you probably want
   to get at least a few years of Unix experience before you
   try such a dangerous stunt.

   If you are trying to change your shell as an ordinary
   user, you can edit the password file where your shell
   is defined.   If you can't do that, spelling the pathname
   to the ksh might help.  

   Try "which ksh" from your Bourne shell.

Quote:

>2. What do I have to do for enabling when type uparrow key, screen
>display the last command I typed?

   add 'set -o vi' to your profile.

Quote:

>Thanks a lot! pls also email me a copy.

   No offense, but if you can't be bothered to read this
   group, perhaps a good unix book would be a better idea.
 
 
 

Newbie's question!?

Post by Tony Walto » Sat, 20 Nov 1999 04:00:00




> > Solaris 2.6 for Sparc.

> > 1. Right now my SHELL is /bin/sh, I want to change to KSH. How can I do
> > this? I try to update my '.dtprofile' like 'SHELL=/bin/ksh' and 'export
> > SHELL'. It doesn't work.

> One way to do so is to use the nistbladm ( I suppose your system is
> running NIS+ ).  You can man nis and nistbladm for details.

Or use passwd -r nisplus -e

$ passwd -r nisplus -e
Enter login(NIS+) password:
Old shell: /bin/csh
New shell: /bin/ksh                             <<<<< I entered this
NIS+ password information changed for tonyw

--
Tony