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. Enable Ctrl+Alt+BackSpace functional key in Ubuntu 10.04
  2. Change Gnome-terminal default startup size in Ubuntu
  3. CLIcompanion-Run and Store terminal commands from a GUI
  4. How to enable sound in Ubuntu 11.04 While login as root
  5. Enable remote desktop in Virtual machine(Virtualbox guest)

    Reader Comments

    hey, this helped me save time. I am a newbie to ubuntu. I have been using Fedora since 4 years but never had such a problem. Anyway, thanks a lot!

    [Reply]

    #1 
    Written By Kiran on May 25th, 2011 @ 8:49 pm

    Add a Comment

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