Re: [SLUG] How can I ...

From: Bill Triplett (btt@nethouse.com)
Date: Fri Nov 23 2001 - 10:50:07 EST


On Fri, Nov 23, 2001 at 05:01:01AM -0500, Bill wrote:
> Sluggers ...
>
> When I hit the tab key at the command line, Linux offers to feed me a
> list of 2320 command possibilities. Is there some way to re-direct
> this list to a file? If not, is there another way to get the list
> that CAN be sent to a file?

IFS=':' ; find $PATH ! -type d | sed -e "s@^.*\/@@g" > file-list

There will probably not be 2320 files listed because this just lists
items in your path and not shell built-ins. This will show dupes too,
like stuff in /usr/bin that is duplicated in /usr/local/bin. Don't
pipe it through sed if you want to keep full path names.

> It would be a big help to me to know exactly what my choices are on
> this box so I could try out new stuff a little more often.

for a descriptive list of many programs (stuff in sections 1,6 and 8)
try:

man -k '.' | grep -E "\((1|6|8).?\)"



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:45:31 EDT