Find the answer to your Linux question:
Results 1 to 9 of 9
On ms dos pressing the tab key will complete words based on contents in directory. Is there an equivalent button in ubuntu? I am using the gnome terminal 2.28.1....
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4

    gnome terminal automatic word completion

    On ms dos pressing the tab key will complete words based on contents in directory. Is there an equivalent button in ubuntu? I am using the gnome terminal 2.28.1.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    did you try pressing tab? it works for me

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    No I downloaded a new version of ubuntu today with wubi and tab doesn't automatically generate/cycle through a file or directory in the current directory. I have discovered though that pressing tab twice does display a list of the contents whilst useful one must still type out a choice.

  4. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    Quote Originally Posted by johndb View Post
    On ms dos pressing the tab key will complete words based on contents in directory. Is there an equivalent button in ubuntu? I am using the gnome terminal 2.28.1.
    no, gnome terminal doesn't do that, but that isn't what you asked in your original question

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    4
    Okay I am still new to the linux and ubuntu environment.

    I assumed gnome terminal was the only default terminal/command-line in this particular ubuntu install environment similar to MS DOS command-line in say windows vista.

    I am looking for a function in the command-line GNOME terminal not on an address field in the GUI/or another particular terminal. I am curious how you interpreted my question.

    Nevertheless does GNOME have a similar keyboard shortcut?

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you asked if gnome has tab complete, which it does, but in your second post you asked if it had tab rotate like msdos

    I'm not sure if it can do what you are thinking of though

  7. #7
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    tab will just do the charm!!!
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

  8. #8
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Put this in ~/.bashrc
    Code:
    bind 'set show-all-if-ambiguous On'
    bind 'TAB:menu-complete'

  9. #9
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    FYI, just to clear up some terminology. Gnome-terminal is one of a number of terminal emulators. But it is the shell that determines the behavior of things like tab completion. In the vast majority of distros, the default shell is bash.

    Other shells include csh, ksh, or zsh. (The last being what I use.)

    You can very easily have an advanced, awesomely useful z-shell by using the grml .zshrc available here:
    grml.org - Zsh

    Should you decide to experiment with different shells, you can change your user's default shell as so
    Code:
    chsh -s /bin/zsh <username>
    Replacing /bin/zsh with the shell of your choice. (That you have installed of course.)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...