Tab Key and arrow key
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 ? |
In Solaris, to recall commands I use ESC then - (minus sign).
I don't know about any file completion options... |
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. Googling returned me that page which seems to explain that all: http://sunsite.uakom.sk/sunworldonli...1-unix101.html |
I also use the command of tcsh.
#tcsh |
Quote:
|
Re: Tab Key and arrow key
Quote:
usermod -s /usr/bin/<tcsh/bash/zsh> username You can now have whatever shell you want Regards, Maidros |
Thanks Maidros
Quote:
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) |
cd /cdrom/cdrom0/.../<directory containing all packages>
pkgadd -d . <packagename> |
Quote:
Regards, Maidros |
I login as root and I tried :
# usermod -s /usr/bin/tsch root UX: usermod: ERROR: root is in use. Cannot change it. But I was able to do this: # usermod -s /usr/bin/tcsh dogcat If I want to change for root, do I need to login as normal user ? or there is some thing elase ? If I modified the shell from /etc/passwd , will it do the same job ? |
Do not change root shell, it's a very wrong idea, and better, do not use directly the root account at all.
|
Quote:
And for normal users can I change it from root account only? Quote:
Quote:
|
Quote:
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 12:31 PM. |