I would like to list all commands available in $PATH
.
Any idea ?
I would like to list all commands available in $PATH
.
Any idea ?
Here is a quick onliner that will complete the task as long as you have the rights to view the folders.
for pathitem in $(echo $PATH | sed -e 's/:/ /g'); do echo $pathitem; ls -la $pathitem; echo ""; done
This code will also display the path above the listing and a space underneath it, similar to completing a ls -laR
printf '%s\n' ${PATH//:/\/* }
– Gilles Quénot Mar 02 '18 at 20:00dmenu_path
fromsuckless-tools
, a very nice little application – Cosine Jul 28 '18 at 16:25