Linux command to list all available commands and aliases

前端 未结 20 2371
佛祖请我去吃肉
佛祖请我去吃肉 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:44

    Why don't you just type:

    seachstr
    

    In the terminal.

    The shell will say somehing like

    seacrhstr: command not found 
    

    EDIT:

    Ok, I take the downvote, because the answer is stupid, I just want to know: What's wrong with this answer!!! The asker said:

    and see if a command is available.

    Typing the command will tell you if it is available!.

    Probably he/she meant "with out executing the command" or "to include it in a script" but I cannot read his mind ( is not that I can't regularly it is just that he's wearing a mind reading deflector )

提交回复
热议问题