3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドがシェルの内部組み込みコマンドか確認する

Last updated at Posted at 2016-07-05

すぐ忘れるのでメモ。
環境はCentOS7.2およびAmazonLinux

内部組み込みコマンドのほうが早いはず…
外部コマンドだとそれをインストールすればどこでも
使える利点はあるけど。

そのコマンドが組み込みコマンドか調べるときは
typeコマンドを使う。

$ type pwd pwd is a shell builtin

$ type jq jq is /usr/bin/jq

内部組み込みコマンドが何か調べるには
$ help

helpコマンド自体も内部組み込みコマンド
$ type help help is a shell builtin

$ type cat cat is hashed (/usr/bin/cat)

is hashedがよく分からないので後で調査。

(参考
atmarkit

3
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?