Enable Tab/up/down functional key in new user’s terminal

This post was written by admin on January 13, 2010
Posted Under: General

As we know,when we are operating in ubuntu command console terminal,we type first few letters of command-name or file-name and press tab key instead of type the whole word.We also press up/down arrow key to find out history command we just typed.But if you create a new user with adduser command and want to do some command things with this user,these tab and up/down functional keys won’t work.
Following shows how to enable these functional key:

First,type this command:

cat /etc/passwd

In the output,we can find out that this new user use /bin/sh rather than /bin/bash as its shell.And following command tells me /bin/sh point to dash:

ls -l /bin/sh

So,just edit /etc/passwd and change /bin/sh to /bin/bash in that line.In theory,make /bin/sh point to bash will also do this work.

Related posts:

  1. How to reset forgotten user/boot password in Ubuntu
  2. Enable Ctrl+Alt+BackSpace functional key in Ubuntu 10.04
  3. Enabel login your ubuntu as Root user
  4. Hide user-list at login screen,type username and password to login
  5. Completely delete a user including the home directory in ubuntu Linux

    Reader Comments

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address