Sunday, December 6, 2009

List all available commands

Here's a shortcut to list all available commands in your Linux distribution.


$ IFS=':' i=($PATH); printf '%s\n' ${i[*]/%//*}

No comments:

Post a Comment