{"id":394,"date":"2024-12-15T02:15:21","date_gmt":"2024-12-14T17:15:21","guid":{"rendered":"https:\/\/shugomatsuzawa.com\/techblog\/?p=394"},"modified":"2024-12-15T02:15:22","modified_gmt":"2024-12-14T17:15:22","slug":"mac%e3%81%a7%e5%b7%a8%e5%a4%a7%e3%81%aa%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e9%96%8b%e3%81%8f","status":"publish","type":"post","link":"https:\/\/shugomatsuzawa.com\/techblog\/2024\/12\/15\/394\/","title":{"rendered":"Mac\u3067\u5de8\u5927\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f"},"content":{"rendered":"\n<p>\u8d85\u5de8\u5927\u306aSQL\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u3068\u304b\u3001\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3044\u6642\u306bVS Code\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u306f\u307e\u3068\u3082\u306b\u958b\u3051\u306a\u3044\u6642\u3082\u3042\u308b\u3002<br>\u3053\u3093\u306a\u6642\u306b\u4f7f\u3048\u305d\u3046\u306a\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u8abf\u3079\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><code>cat<\/code><\/h2>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30de\u30f3\u30c9\u3002<br>\u304a\u305d\u3089\u304f\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3060\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30ed\u30b0\u4e0a\u9650\u3067\u5168\u3066\u8868\u793a\u3067\u304d\u306a\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat &#91;-belnstuv] &#91;file ...]<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><code>head<\/code> \/ <code>tail<\/code><\/h2>\n\n\n\n<p><code>head<\/code>\u306f\u5148\u982d\u304b\u3089\u597d\u304d\u306a\u884c\u6570\u3001<code>tail<\/code>\u306f\u672b\u7aef\u304b\u3089\u597d\u304d\u306a\u884c\u6570\u3092\u8868\u793a\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>head &#91;-n lines | -c bytes] &#91;file ...]<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>tail &#91;-F | -f | -r] &#91;-q] &#91;-b # | -c # | -n #] &#91;file ...]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p>\u4f8b\u3048\u3070\u9577\u3044\u30ed\u30b0\u306e\u6700\u5f8c\u304b\u30891,000\u884c\u3060\u3051\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306f\u3053\u3046\u306a\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail -n 1000 debug.log<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><code>less<\/code><\/h2>\n\n\n\n<p><code>less<\/code>\u30da\u30fc\u30b8\u30e3\u3092\u4f7f\u3048\u3070\u9577\u3044\u30d5\u30a1\u30a4\u30eb\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u306a\u304c\u3089\u898b\u3089\u308c\u308b\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u691c\u7d22\u3082\u3067\u304d\u308b\u3002<br>\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u8272\u3005\u3042\u308b\u306e\u3067\u3001<code>less --help<\/code>\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>less &#91;option...] &#91;file ...]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u3044\u65b9<\/h3>\n\n\n\n<p><code>less<\/code>\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30ad\u30fc\u30b3\u30de\u30f3\u30c9\u3067\u64cd\u4f5c\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><code>\/[\u691c\u7d22\u8a9e\u53e5]<\/code><\/td><td><code>\/<\/code>\u306b\u7d9a\u3051\u3066\u691c\u7d22\u8a9e\u53e5\u3092\u5165\u529b\u3059\u308b\u3068\u691c\u7d22<\/td><\/tr><tr><td><code>N<\/code><\/td><td>\u6b21\u306e\u691c\u7d22\u7d50\u679c<\/td><\/tr><tr><td><code>P<\/code><\/td><td>\u524d\u306e\u691c\u7d22\u7d50\u679c<\/td><\/tr><tr><td><code>Q<\/code><\/td><td>less\u3092\u7d42\u4e86<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">GUI\u3067\u958b\u304f<\/h2>\n\n\n\n<p>GUI\u3067\u30b5\u30af\u30c3\u3068\u95b2\u89a7\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u304c\u4e00\u756a\u8efd\u3044\u6c17\u304c\u3059\u308b\u3002<br>command + F \u3067\u691c\u7d22\u3082\u3067\u304d\u308b\u304c\u3001\u305d\u308c\u3067\u3082\u3082\u306e\u3059\u3054\u304f\u91cd\u3044\u30d5\u30a1\u30a4\u30eb\u3060\u3068\u843d\u3061\u308b\u6642\u3082\u3042\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"389\" src=\"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/041924e3e126bbbf233b0e7d81d8322b-1024x389.png\" alt=\"\u30b3\u30f3\u30bd\u30fc\u30eb\" class=\"wp-image-407\" srcset=\"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/041924e3e126bbbf233b0e7d81d8322b-1024x389.png 1024w, https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/041924e3e126bbbf233b0e7d81d8322b-300x114.png 300w, https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/041924e3e126bbbf233b0e7d81d8322b-768x292.png 768w, https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/041924e3e126bbbf233b0e7d81d8322b.png 1052w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/support.apple.com\/ja-jp\/guide\/terminal\/apdbc6514eb-e106-4415-94e6-e71192085bc5\/mac\" data-type=\"link\" data-id=\"https:\/\/support.apple.com\/ja-jp\/guide\/terminal\/apdbc6514eb-e106-4415-94e6-e71192085bc5\/mac\" target=\"_blank\" rel=\"noreferrer noopener\">Mac\u306e\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b &#8211; Apple \u30b5\u30dd\u30fc\u30c8 (\u65e5\u672c)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"\u8d85\u5de8\u5927\u306aSQL\u30c0\u30f3\u30d7\u30d5\u30a1\u30a4\u30eb\u3068\u304b\u3001\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u3044\u6642\u306bVS Code\u306a\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u306f\u307e\u3068\u3082\u306b\u958b\u3051\u306a\u3044\u6642\u3082\u3042\u308b\u3002\u3053\u3093\u306a\u6642\u306b\u4f7f\u3048\u305d\u3046\u306a\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u8abf\u3079\u305f\u3002 cat \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30de\u30f3\u30c9\u3002\u304a\u305d [&hellip;]","protected":false},"author":1,"featured_media":409,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federate","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[75,8,39],"tags":[9,36,76,10],"class_list":["post-394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-development","category-system-management","category-backend","tag-linux","tag-macos","tag-unix","tag-memo"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/shugomatsuzawa.com\/techblog\/wp-content\/uploads\/sites\/3\/2024\/12\/elephant-4650435_1920.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":2,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/posts\/394\/revisions\/408"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media\/409"}],"wp:attachment":[{"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shugomatsuzawa.com\/techblog\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}