There's probably a name for this. And everyone else probably knows about it.

Peter Rukavina

So I’m sitting there inside /usr/local/src. There’s a subdirectory called sox-12.17.7. I want to move into that subdirectory. Apparently — and I only found this today for the first time — I can simply type cd sox and then press the TAB key, and the OS automagically inserts the rest for me.

Comments

Submitted by al o'neill on

Permalink

When I first showed my ex-girlfriend how to run some command line game or other from my linux box and told her to press tab she exclaimed “ohhh NEEAT!!”. Most enthusiasm I’ve ever seen for a command-line.

Submitted by Chris on

Permalink

Windows XP Pro command line offers this feature as well. I discovered this after using the tab in a bash shell under bsd.

I’m not sure if XP Home is the same. Anyone?

Submitted by paul on

Permalink

we call it autocomplete. and to be pedantic, it’s not the OS, but the shell (bash, I assume) that’s doing it. not all of them do (the old Bourne shell, for one).

Submitted by Charles on

Permalink

Another neat tab trick (at least in bash) is to type in the start of a command or path, and then hit tab twice. It shows you a list of all the possible matches. IE, type joe /etc/host(tab, tab) and it gives you host.conf, hostname, hosts, etc… Type man(tab, tab) and it shows you man, man2dvi, man2html, etc… Very useful if you can’t remember the name of one of those programs with no vowels.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search