$ compgen -c | sort -u > commands

When you press TAB twice in your prompt, bash tells you something like

"Display all 4113 possibilities? (y or n)"

But when you press "y" you only get the list in the terminal output and, if
you want to save it to a file, you have to copy it by hand from the vterm
screen. With this utility you save the list to a file or pipe it to another
command at will

You can use the file saved list to grep for a particular pattern, useful if
you are searching for a command but you only remember a few letters

-- 
Warm Regards,
Tha.Suresh


My experiences with Linux:  http://thasulinux.wordpress.com
Cooool Linux Tips & Tricks: http://gnutips.wordpress.com
Free/Open Source Jobs:      http://fossjobs.in

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to