シェルで何を入力できますか(たまたまbash
) )認識されたすべてのコマンドが一覧表示されますか?
また、これはシェルによって異なりますか?または、すべてのシェルに、認識したコマンドの「ディレクトリ」があるだけですか?
第二に、別の質問ですが、どうすればそれらのいずれかをオーバーライドできますか?言い換えれば、どうすれば自分のview
を書くことができますか Ubuntuシステムに存在するものを置き換えるコマンド。vim
をロードするだけのようです。 。
承認された回答:
compgen
を使用できます
compgen -c # will list all the commands you could run.
参考:
compgen -a # will list all the aliases you could run.
compgen -b # will list all the built-ins you could run.
compgen -k # will list all the keywords you could run.
compgen -A function # will list all the functions you could run.
compgen -A function -abck # will list all the above in one go.