Default editor

Smoot Carl-Mitchell smoot at tic.com
Sat Sep 13 20:13:09 UTC 2008


On Sat, 2008-09-13 at 13:37 -0600, Karl Larsen wrote:

>     Well for some reason it does not work for me at all. In a terminal I 
> write sudo vim /etc/X11 and then a Tab and it looks like /etc/X11\ and 
> it does not work. What have I done wrong?

Typing

vi /etc/X11<tab>

will complete the directory name with a trailing "/".

At this point typing <tab><tab> will show you the list of files in
the /etc/X11 directory.  What the shell is doing when you type the first
<tab> is returning the common prefix of all the files in the /etc/X11
directory which in this case is the <null> string.  The 2nd <tab>
enumerates all the choices of files in the /etc/X11 directory with the
common prefix.  In this case since the common prefix is the null string,
it enumerates all the files in /etc/X11/.

-- 
Smoot Carl-Mitchell
System/Network Architect
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list