[ALUG] Online command line info pages?
Brett Parker
iDunno at sommitrealweird.co.uk
Mon Jan 4 11:03:27 GMT 2010
On 31 Dec 11:42, simon ransome wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Anthony Anson wrote:
> | I'd be grateful if someone could point me at a page/pages which give the
> | scripts for commands I can type into a 'terminal', so I can make things
> | happen in this awful Kenvironment.
>
> If you're just after "commands that do stuff" in a terminal, then just
> press "tab" (maybe a couple of times). The Tab key is the command line's
> "auto-complete" key (at least assuming you're using a shell called Bash,
> which is now pretty standard).
>
> It should respond with something like "Display all 2712 possibilities?
> (y or n)". If you type "y", you'll get a complete list of everything
> that can be invoked. You can make it more manageable by typing a letter
> or two (e.g. "a" or "net") and then a tab, which will give you a subset
> of available commands, scripts or programs starting with whatever you
> entered.
Or more generally...
find $PATH -maxdepth 1 -mindepth 1 -type f -executable
Which should probably work in other shells too, if you just want the
command names...
find $PATH -maxdepth 1 -mindepth 1 -executable -type f -printf "%f\n"
... Just thought I'd add that in late to the round just for the hell of
it ;)
Thanks,
--
Brett Parker
More information about the main
mailing list