Reputation: 2220
I have a virtual server with ubuntu in AWS. I have created multiple users on my server. When I ssh into the server as the root user (ubuntu), I am able to use the bash auto complete for basic commands and bash history. But when I login as a different user it does not work? Is there anything I need to do to fix this?
Upvotes: 0
Views: 2478
Reputation: 183612
According to the Bash Reference Manual, §9.1: Bash History Facilities:
When the
-o history
option to theset
builtin is enabled (see The Set Builtin), the shell provides access to the command history, the list of commands previously typed.
So, I'd try running
set -o history
and seeing if that fixes it. If it does, then you'll probably want to add that to the other users' log-in scripts.
(Note that set -o history
primarily controls whether commands are added to the history, so to test it adequately, you'll want to run:
set -o history
echo foo
echo !!
to confirm that it prints echo foo
.)
Upvotes: 1