ã³ãã³ãã®ãã¹ãç¥ãããããããªããã³ãã³ãã®åå¨ããã§ãã¯ãããã ããªãwhichããhashã使ã£ãã»ããè¯ãããã£ã¦ãã話ãâ追è¨: typeãæå¼·ã£ã½ãã 追è¨: command -vãè¯ããããã°ã©ã ã®åå¨ãã§ãã¯orãã¹ãæ¢ãããã ããªãäºææ§ãèããã¨ä¸çªè¯ãããã æ¯è¼ãã¦ã¿ã whichããhashããtype=command -vãé«éâtypeã¾ãã¯command -vã®åã¡ whichã¯å®ãã¡ã¤ã«ã¨ããå®ä½ãããããã°ã©ã ã§ããhashã¨typeã¯bashã®çµã¿è¾¼ã¿ã³ãã³ãã§ãããªã®ã§å½ç¶ã§ããããã°ã©ã ã®èµ·åã³ã¹ãããªãåhashãtypeã®æ¹ãéãã§ãã $ time bash -c 'for((i=0;i<10000;i++));do which perl; done >/dev/null' real 0m7.739s user 0m2.928s sys 0m
{{#tags}}- {{label}}
{{/tags}}