Linux command to list all available commands and aliases

前端 未结 20 2314
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-29 14:11

Is there a Linux command that will list all available commands and aliases for this terminal session?

As if you typed \'a\' and pressed tab, but for every letter of

20条回答
  •  清酒与你
    2020-11-29 14:46

    For Mac users (find doesn't have -executable and xargs doesn't have -d):

    echo $PATH | tr ':' '\n' | xargs -I {} find {} -maxdepth 1 -type f -perm '++x'
    

提交回复
热议问题