View Single Post
Old 04-02-2014, 12:32 PM   #84
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can also begin the filename, then press TAB to autocomplete. (This works for all filepaths, as well as commands. If there is only one possible choice based on what you have filled in, it will fill in the rest. If there are multiple options, one TAB will fill in to the first point where you have a choice between 2 characters, then double TABbing will print a list of possible completion values, then bring you back to your in-progress command.)

http://whylovelinux.wordpress.com/20...auto-complete/

Example:

Spoiler:
Type "l" then TAB TAB will print out:
Code:
[kterm]# l<TAB><TAB>
ldconfig
ldd
less
light.sh
line
lipc-daemon
lipc-get-prop
lipc-hash-prop
lipc-probe
lipc-send-event
lipc-set-prop
lipc-wait-event
ln
locale
localedef
logger
login
loginfo
logname
logsave
look
losetup
lpd
lpq
lpr
ls
lsattr
lsmod
lsof
lspci
lsusb
lua
luac
lxinit
lzop
lzopcat
[kterm]# l
type "ls" then TAB TAB will result in
Code:
[kterm]# ls<TAB><TAB>
ls
lsattr
lsmod
lsof
lspci
lsusb
[kterm]# ls
type "ls " then TAB TAB will result in
And
Code:
[kterm]# ls<invisible space here><TAB><TAB>
bin/
config.xml
layouts/
menu.json
[kterm]# ls<invisible space here>
type "ls b" then TAB will result in
And
Code:
[kterm]# ls b<tab>
[kterm]# ls bin/

This would be from my jailbroken kindle terminal, since I am not at my linux computer right now. So I apologize for the funny autocomplete results.
eschwartz is offline   Reply With Quote