1

I've created a user using

sudo useradd -m peris

but when I log in the terminal, I use the tab to autocomplete, but its not working, and it is working in the root user

For instace I am in a folder where there are more folders like:

menus-can-peris

I type me and press Tab but menus-can-peris is not autocompleted

$ echo $SHELL
/bin/sh
  • 1
    What shell is the peris user using? – Kusalananda Jul 20 '18 at 9:31
2

The /bin/sh shell in Ubuntu is dash, which does not support tab completion.

I suggest that you change the login shell for the peris user to a shell that does support tab completion of filenames, for example bash.

You change the login shell using the chsh command whilst logged in as the user, or with chsh peris as root. The new shell will be used for the next and subsequent logins.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.