{"id":19642,"date":"2014-05-15T22:37:13","date_gmt":"2014-05-15T13:37:13","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=19642"},"modified":"2014-05-15T22:37:13","modified_gmt":"2014-05-15T13:37:13","slug":"os-x-terminal-command","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/os-x-terminal-command\/","title":{"rendered":"Mac\u30e6\u30fc\u30b6\u30fc\u306a\u3089\u77e5\u3063\u3066\u304a\u304d\u305f\u3044OS X\u306e\u4fbf\u5229\u30b3\u30de\u30f3\u30c98\u3064"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/05\/blog1.-zsh.jpg\" alt=\"1 zsh\" title=\"1. zsh.jpg\" border=\"0\" width=\"546\" height=\"321\" \/><\/p>\n<p>Mac OS X\u306fUnix\u30d9\u30fc\u30b9\u306eOS\u306a\u306e\u3067\u3001Linux\u3084Unix\u306e\u4f7f\u7528\u7d4c\u9a13\u304c\u3042\u308b\u306a\u3089\u3070\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u306a\u3059\u3053\u3068\u306f\u3001\u3055\u307b\u3069\u96e3\u3057\u304f\u306a\u3044\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001OS X\u306a\u3089\u3067\u306f\u306e\u30e6\u30cb\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u304c\u3044\u304f\u3064\u304b\u5b58\u5728\u3057\u3066\u3044\u308b\u3053\u3068\u3082\u78ba\u304b\u3002\u4f8b\u3048\u3070\u300c<a href=\"http:\/\/www.mitchchn.me\/2014\/os-x-terminal\/\">Eight Terminal Utilities Every OS X Command Line User Should Know<\/a>\u300d\u7d39\u4ecb\u3055\u308c\u3066\u3044\u308b\u3001OS X\u7279\u6709\u306e\u30b3\u30de\u30f3\u30c9\u3092\u899a\u3048\u3066\u304a\u3051\u3070\u3001\u30e9\u30a4\u30d0\u30eb(\u3063\u3066\u8ab0)\u306b\u30b0\u30c3\u3068\u5dee\u3092\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u662f\u975e\u30de\u30b9\u30bf\u30fc\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><!--more--><\/p>\n<h3>8\u3064\u306e\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>\u4e0a\u8a18\u30d6\u30ed\u30b0\u3067\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3055\u308c\u3066\u3044\u305f\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e8\u3064\u3002<\/p>\n<ol>\n<li>open: \u30a2\u30d7\u30ea\u3092\u958b\u304f\u3002URL\u3092\u958b\u304f\u306a\u3069\u3002\n<li>pbcopy, pbpaste: \u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u3068\u306e\u3084\u308a\u3068\u308a\u3002\n<li>mdfind: locate\u306e\u304b\u308f\u308a\u306bSpotlight\u306e\u60c5\u5831\u3092\u4f7f\u3063\u3066\u9ad8\u901f\u691c\u7d22\u3002\n<li>screencapture: \u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u53d6\u308b\u3002\n<li>launchctl: \u3044\u308d\u3044\u308d\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u5834\u5408\u306b\u4f7f\u3046\u3002\n<li>say: \u8a00\u8449\u3092\u558b\u3089\u305b\u308b\u3002\n<li>diskutil: Disk Utility\u30a2\u30d7\u30ea\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3002\n<li>brew: \u4eca\u5927\u4eba\u6c17\u306eHombrew\u3002\n<\/ol>\n<p>\u6700\u5f8c\u306ebrew\u306f\u3061\u3087\u3063\u3068\u53cd\u5247\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c(\u6c57\u3002<\/p>\n<p>\u4ee5\u4e0b\u500b\u4eba\u7684\u306b\u6c17\u306b\u5165\u3063\u3066\u3044\u308bmdfind\u3068say\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>mdfind<\/h3>\n<p>Linux\u306b\u306fupdatedb\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u66f4\u65b0\u3057\u3001locate\u3067\u691c\u7d22\u3059\u308b\u3068\u3044\u3046\u5b9a\u77f3\u304c\u3042\u308a\u307e\u3059\u304c\u3001OS X\u306e\u5834\u5408mdfind\u3067\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3082Spotlight\u306e\u60c5\u5831\u3092\u5229\u7528\u3059\u308b\u306e\u3067\u660e\u793a\u7684\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre>\n$ mdfind libxml\n<\/pre>\n<p>\u2191\u3053\u3093\u306a\u611f\u3058\u3067\u691c\u7d22\u3067\u304d\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u306a\u3069\u3092\u3069\u3046\u305e\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/news.mynavi.jp\/column\/osxhack\/112\/\">\u77e5\u3063\u3066\u3044\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u304c\u5909\u308f\u308b\u300cmdfind\u300d | \u30de\u30a4\u30ca\u30d3\u30cb\u30e5\u30fc\u30b9<\/a>\n<\/ul>\n<h3>say<\/h3>\n<p>\u305d\u306e\u540d\u306e\u901a\u308a\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4f7f\u3063\u3066\u558b\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<pre>\nsay \"\u3055\u3093\u3092\u3064\u3051\u308d\u3088\u30c7\u30b3\u52a9\u91ce\u90ce\uff01\" \n<\/pre>\n<p>\u2191\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u97f3\u58f0\u558b\u308a\u307e\u3059\u3002<\/p>\n<pre>\nsay -v Otoya \"\u3055\u3093\u3092\u3064\u3051\u308d\u3088\u30c7\u30b3\u52a9\u91ce\u90ce\uff01\" \n<\/pre>\n<p>\u2191\u97f3\u58f0\u300cOtoya\u300d\u3067\u558b\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3057\u4e8b\u524d\u306b\u97f3\u58f0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/05\/9d45ac84900b13cad0f81a712ae1084d.jpg\" alt=\"\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u8a2d\u5b9a\" title=\"\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u8a2d\u5b9a.jpg\" border=\"0\" width=\"546\" height=\"384\" \/><\/p>\n<p>\u300c\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u8a2d\u5b9a > \u97f3\u58f0\u5165\u529b\u3068\u8aad\u307f\u4e0a\u3052 > \u30b7\u30b9\u30c6\u30e0\u306e\u58f0 > \u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u300d\u304b\u3089\u65e5\u672c\u8a9e\u306e\u97f3\u58f0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002say\u306b\u95a2\u3057\u3066\u306f\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u304c\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/qiita.com\/manuluu\/items\/0c17acb21f119647c205\">Mac\u306esay\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9 - Qiita<\/a>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/pcmaster\/20120215\/p1\">Mac OS X Lion\u306esay\u30b3\u30de\u30f3\u30c9\u306b\u611f\u52d5\u3057\u305f - \u7406\u60f3\u672a\u6765\u306f\u3069\u3046\u306a\u3063\u305f\uff1f<\/a>\n<\/ul>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>OS X\u306e\u30e2\u30c0\u30f3\u306a\u6a5f\u80fd\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u64cd\u4f5c\u3067\u304d\u308b\u3068\u3053\u308d\u304c\u697d\u3057\u3044\u3067\u3059\u3002\u4ed6\u306b\u3082\u304a\u3082\u3057\u308d\u3044\u30b3\u30de\u30f3\u30c9\u304c\u3044\u308d\u3044\u308d\u3042\u308a\u305d\u3046\u3067\u3059\u306d(\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u300c<a href=\"http:\/\/macwiki.sourceforge.jp\/wiki\/index.php\/OSX%E3%81%AE%E5%9B%BA%E6%9C%89%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89\">MacWiki - OSX\u306e\u56fa\u6709\u30b3\u30de\u30f3\u30c9<\/a>\u3068\u3044\u3046\u307e\u3068\u3081\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u3059\u3054\u3044)\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac OS X\u306fUnix\u30d9\u30fc\u30b9\u306eOS\u306a\u306e\u3067\u3001Linux\u3084Unix\u306e\u4f7f\u7528\u7d4c\u9a13\u304c\u3042\u308b\u306a\u3089\u3070\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u306a\u3059\u3053\u3068\u306f\u3001\u3055\u307b\u3069\u96e3\u3057\u304f\u306a\u3044\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002 \u3068\u306f\u3044\u3048\u3001OS X\u306a\u3089\u3067\u306f\u306e\u30e6\u30cb\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u304c\u3044\u304f\u3064\u304b\u5b58\u5728 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":19640,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[4,75],"tags":[3299,176],"class_list":["post-19642","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac","category-software","tag-mac","tag-os-x"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/19642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=19642"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/19642\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/19640"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=19642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=19642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=19642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}