Link to home
Start Free TrialLog in
Avatar of dreamer81
dreamer81

asked on

TAB doesn't show available commands

When I log into this HP UNIX machine with the root account, everything works fine, but then i switch user to my own user account it doesn't work.

When I am root, the promt looks like this
[root@testserver] /systems >

When i use my own account, the promt looks like this
$

Anyone know how to fix this? so i can TAB my way through commands on my own account??
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vshailesh
vshailesh

From the shell prompt it looks like the root has the default shell as 'bash'. If you want to make bash your default shell, use the method that yuzh suggests.

If you want to make changes to the /etc/passwd file, you should know the path of the bash shell command. You can do a 'which bash' or 'whereis bash' to get the path of bash. It will mostly be /usr/bin/bash or /usr/local/bin/bash.

To change the prompt, refer http://networking.ringofsaturn.com/Unix/Bash-prompts.php
For e.g. The "[root@testserver] /systems >" prompt can be created by doing the following
PS1="[\u@\h] \w>"
only bash completes commands and filenames

use chsh to chenge your shell
/etc/shells hints you with valid shells.

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ops... I made a mistake above: when I say "press -> "Ctrl + k" -> Backward - "Ctrl + j" -> Forward", change the "Ctrl" to "ESC".

How I could do that? hahah

=0)
root_start, did you miss to tell us that your "set -o vi" is for ksh?

>  only bash completes commands and filenames
wrong
tcsh can do it also
csh completes directories and filenames too, but not commands
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

split between yuzh http:#16368394 and root_start http:#16651153

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

gheist
EE Cleanup Volunteer