Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
With Linux we can use “Tab” Key to complete the name of the file or directory, Is this feature available with Unix, because I have got confuse , as far as I remember it was with V5.7, how can I enable this feature in my Solaris box V10.1 ?
Another thing the arrows key we used to use it to recall previous command, how can we enable this one as well ?
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
This is not exactly related to the O/S (Linux, Solaris or whatever), but really to the shell you're using.
completion with tab is a bash feature (default Linux shell), while under ksh (default Solaris user's shell), you first need to set the kind of editing mode you want, e.g. "set -o vi", then use one of "<esc>\" to have a similar functionality than the bash tab, or "<esc>=" to see possible completions choices, and "<esc>*" to have all of them inserted on the line. This works for filenames, but not for commands though.
Originally posted by zillah With Linux we can use “Tab” Key to complete the name of the file or directory, Is this feature available with Unix, because I have got confuse , as far as I remember it was with V5.7, how can I enable this feature in my Solaris box V10.1 ?
Another thing the arrows key we used to use it to recall previous command, how can we enable this one as well ?
Just change the shell - if you installed other shells like bash, tcsh, zsh (all the three are available in the Solaris 10 - CD2), you can change to whatever shell you want by logging in as superuser and with the command
usermod -s /usr/bin/<tcsh/bash/zsh> username
You can now have whatever shell you want
Regards,
Maidros
As you said, it should have been installed by default, If this the case, then I am going to type in the command line that you have mentioned it.
But in case if it has not been installed by default, how can install it from CD2 (could you please mention the steps for installation)
You can install the three packages SUNWbash, SUNWtcsh, and SUNWzsh. Just follow the steps which Jilliagre mentioned and you should be able to install the three packages.
Regards,
Maidros
Thanks for this advice, but for my knowledge only, if I want to change for the root what shlould I do?
And for normal users can I change it from root account only?
Quote:
do not use directly the root account at all.
Yes I agree with you, but still I can not access the system as normal user.
Quote:
If I modified the shell from /etc/passwd , will it do the same job ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.