{"id":1001,"date":"2023-06-22T15:00:42","date_gmt":"2023-06-22T06:00:42","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=1001"},"modified":"2025-08-18T16:58:40","modified_gmt":"2025-08-18T07:58:40","slug":"about_shell","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_shell\/","title":{"rendered":"Linux\u306e\u30b7\u30a7\u30eb\u3068\u306f\uff1f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd5\u3082\u89e3\u8aac\uff01"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4468 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6bd4\u8f03\uff01\u7279\u5fb4\u3084\u9055\u3044\u306f\uff1f.webp\" alt=\"\" width=\"900\" height=\"500\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6bd4\u8f03\uff01\u7279\u5fb4\u3084\u9055\u3044\u306f\uff1f.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6bd4\u8f03\uff01\u7279\u5fb4\u3084\u9055\u3044\u306f\uff1f-300x167.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6bd4\u8f03\uff01\u7279\u5fb4\u3084\u9055\u3044\u306f\uff1f-640x356.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/Linux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u6bd4\u8f03\uff01\u7279\u5fb4\u3084\u9055\u3044\u306f\uff1f-768x427.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/>\u672c\u8a18\u4e8b\u3067\u306f\u3001<span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">Unix\u3084Linux\u3092\u52b9\u7387\u3088\u304f\u904b\u7528\u3059\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044<strong>\u30b7\u30a7\u30eb\u306e\u6a5f\u80fd\u3084\u7a2e\u985e<\/strong>\u304a\u3088\u3073<strong>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd5<\/strong><\/span>\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u904b\u7528\u304c\u975e\u5e38\u306b\u697d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u3053\u308c\u304b\u3089Unix\/Linux\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3084\u30b5\u30fc\u30d0\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u4eba\u306f\u3001\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001\u30b7\u30a7\u30eb\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p><strong>Unix\/Linux<\/strong>\u3092<strong>VPS<\/strong>\u3067\u5229\u7528\u3059\u308b\u306a\u3089<strong style=\"font-size: 16px;\"><span style=\"color: #339966;\"><br \/>\n\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<br \/>\n<\/span><\/strong><strong><span style=\"color: #ff0000;\">\uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f<\/span><br \/>\n<a class=\"q_custom_button q_custom_button3 animation_type1 rounded\" style=\"width: 400px; height: 70px;\" href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-frame&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\">\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059<\/a><\/strong><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u30b7\u30a7\u30eb\u3068\u306f<\/a><ul><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u30b7\u30a7\u30eb\u3068\u306f\u4f55\u304b<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u30b7\u30a7\u30eb\u306e\u6a5f\u80fd<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">1.3<\/span> \u30b7\u30a7\u30eb\u306e\u7a2e\u985e<\/a><\/li><\/ul><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6d3b\u7528<\/a><ul><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f<\/a><\/li><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">2.2<\/span> \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd5<\/a><\/li><li><a href=\"#if\"><span class=\"toc_number toc_depth_2\">2.3<\/span> if\u6587\u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u306e\u65b9\u6cd5<\/a><\/li><li><a href=\"#forwhile\"><span class=\"toc_number toc_depth_2\">2.4<\/span> for\u6587\/while\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u65b9\u6cd5<\/a><\/li><\/ul><\/li><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_1\">3<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#UnixLinuxVPS\"><span class=\"toc_number toc_depth_1\">4<\/span> Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"i\">\u30b7\u30a7\u30eb\u3068\u306f<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u30b7\u30a7\u30eb\u3068\u306f\u4f55\u304b<\/span><\/h3>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>\u30b7\u30a7\u30eb(Shell)<\/strong>\u3068\u306f\u3001<strong>Linux\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/strong><\/span>\u3067\u3059\u3002<\/p>\n<p>\u5165\u529b\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u306f\u30b7\u30a7\u30eb\u3092\u4ecb\u3057\u3066Linux\u30ab\u30fc\u30cd\u30eb\u306b\u9001\u4fe1\u3055\u308c\u3001\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u305d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4e00\u584a\u306b\u3057\u305f\u3082\u306e\u304c<strong>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u3067\u3001<strong>\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4e00\u5ea6\u306b\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e<\/strong>\u3067\u3059<\/span>\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Unix\u3084Linux\u3092\u52b9\u7387\u3088\u304f\u904b\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7406\u89e3\u304c\u6b20\u304b\u305b\u307e\u305b\u3093<\/span>\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u74b0\u5883\u3068\u3057\u3066\u300c<strong>\u30b7\u30a7\u30eb<\/strong>\u300d\u306e\u307b\u304b\u306b\u3082\u300c<strong>\u30bf\u30fc\u30df\u30ca\u30eb<\/strong>\u300d\u3084\u300c<strong>\u30b3\u30f3\u30bd\u30fc\u30eb<\/strong>\u300d\u306a\u3069\u306e\u4f3c\u305f\u3088\u3046\u306a\u8a00\u8449\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/linux_terminal\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/Linux\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3068\u306f\u3002\u30b7\u30a7\u30eb\u3084\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u306e\u9055\u3044\u3082\u89e3\u8aac.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.03.02<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/linux_terminal\/\">Linux\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3068\u306f\u3002\u30b7\u30a7\u30eb\u3084\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u306e\u9055\u3044\u3082\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>Linux\u306b\u304a\u3051\u308b\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u3068\u306f\u3001GUI\u4e0a\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u305f\u3081\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u3053\u3068\u3067\u3059\u3002\r\n\r\n\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u74b0\u5883\u3068\u3057\u3066\u300c\u30b3...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u30b7\u30a7\u30eb\u306e\u6a5f\u80fd<\/span><\/h3>\n<p>\u30b7\u30a7\u30eb\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u4ee5\u5916\u306b\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u591a\u6570\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4e00\u90e8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u300c\uff5c\u300d\uff08\u30d1\u30a4\u30d7\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u30d1\u30a4\u30d7\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u3064\u306a\u3052\u308b\u5f79\u5272\u3092\u3082\u3061\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u4f8b\u3048\u3070\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u591a\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u300clog\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u3064\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\" style=\"padding-left: 40px;\"><strong>ls | grep log<\/strong><\/p>\n<p style=\"padding-left: 40px;\">\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u300cls\u300d\u306b\u3088\u3063\u3066\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u3060\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u300cgrep\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u3001grep\u30b3\u30de\u30f3\u30c9\u3067\u201dlog\u201d\u306e\u6587\u5b57\u5217\u304c\u3064\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u691c\u7d22\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u3053\u306e\u3088\u3046\u306b\u3001\u30d1\u30a4\u30d7\u3067\u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3064\u306a\u3052\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u8907\u96d1\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u300c\uff1e\u300d\uff08\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff09<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306e\u51fa\u529b\u5148\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u6a19\u6e96\u51fa\u529b\u3067\u3042\u308b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u4f8b\u3048\u3070\u3001\u300cls\u300d\u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u300ctest.txt\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\" style=\"padding-left: 40px;\"><strong>ls &gt; test.txt<\/strong><\/p>\n<p style=\"padding-left: 40px;\">\u3053\u306e\u3068\u304d\u3001\u300c&gt;\u300d\u304c1\u3064\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3001\u300c&gt;&gt;\u300d\u3068\uff12\u3064\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\"><div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_linux-redirect\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3068\u306f\uff1fLinux\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u3044\u3053\u306a\u305d\u3046.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2023.01.05<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_linux-redirect\/\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3068\u306f\uff1fLinux\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u4f7f\u3044\u3053\u306a\u305d\u3046<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>Linux\u3067\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u6a19\u6e96\u5165\u529b\u3001\u6a19\u6e96\u51fa\u529b\u3001\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3092\u4f7f\u3044\u307e\u3059\u3002\r\n\r\n\u3053\u308c\u3089\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: disc;\">\n<li>\u5165\u529b\u88dc\u52a9\u6a5f\u80fd<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 40px;\">Linux\u3067\u306f\u975e\u5e38\u306b\u591a\u304f\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u307e\u3059\u304c\u3001\u5168\u3066\u3092\u899a\u3048\u308b\u306e\u306f\u56f0\u96e3\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30b3\u30de\u30f3\u30c9\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9014\u4e2d\u307e\u3067\u5165\u529b\u3057\u305f\u5f8c\u306b\u300cTab\u300d\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001\u30b3\u30de\u30f3\u30c9\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u4f8b\u3048\u3070\u3001\u300csh\u300d\u306e\u5f8c\u306b\u7d9a\u304f\u30b3\u30de\u30f3\u30c9\u3092\u8abf\u3079\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\" style=\"padding-left: 40px;\"><strong>sh <\/strong>\u203b\u3053\u3053\u3067tab\u30ad\u30fc\u3092\u62bc\u3059<\/p>\n<p style=\"padding-left: 40px;\">\u4ee5\u4e0b\u3067\u306f\u3001\u53c2\u8003\u307e\u3067\u306bUbuntu\uff0822.04.2 LTS\uff09\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4470\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf2-2.webp\" alt=\"\" width=\"602\" height=\"63\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf2-2.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf2-2-300x31.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u3053\u308c\u3089\u4ee5\u5916\u306b\u3082\u3001\u30b7\u30a7\u30eb\u306b\u306f\u591a\u6570\u306e\u6a5f\u80fd\u304c\u3042\u308a\u3001Linux\u306e\u64cd\u4f5c\u3092\u52a9\u3051\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3088\u304f\u4f7f\u3046\u6a5f\u80fd\u306f\u899a\u3048\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-4\">\u30b7\u30a7\u30eb\u306e\u7a2e\u985e<\/span><\/h3>\n<p>\u30b7\u30a7\u30eb\u306b\u306f\u3001\u591a\u6570\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001\u305d\u306e\u4e00\u90e8\u306e\u30b7\u30a7\u30eb\u3068\u3001\u305d\u306e\u7279\u5fb4\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u304c\u7570\u306a\u308b\u3068\u3001\u4f7f\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u66f8\u304d\u65b9\u304c\u5909\u308f\u308b\u305f\u3081\u3001\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n<table id=\"tablepress-67\" class=\"tablepress tablepress-id-67\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">\u30b7\u30a7\u30eb<\/th><th class=\"column-2\">\u6982\u8981\u30fb\u7279\u5fb4<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">Bourne Shell\uff08sh\uff09<\/td><td class=\"column-2\">\u4e00\u822c\u7684\u306b\u30b7\u30a7\u30eb\u3068\u8a00\u3046\u3068Bourne Shell\u3092\u6307\u3059\u3002<br \/>\n\u6700\u3082\u53e4\u3044\u30b7\u30a7\u30eb\u3002<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">Bourne again Shell\uff08bash\uff09<\/td><td class=\"column-2\">sh\u3092\u57fa\u306b\u6a5f\u80fd\u62e1\u5f35\u3057\u305f\u30b7\u30a7\u30eb\u3002<br \/>\nRedhat\u7cfbLinux\u306e\u6a19\u6e96\u30b7\u30a7\u30eb\u3002<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">Korn Shell\uff08ksh\uff09<\/td><td class=\"column-2\">sh\u306e\u4e0a\u4f4d\u4e92\u63db\u3002<br \/>\nIBM\u793e\u306eUnix\u300cAIX\u300d\u306e\u6a19\u6e96\u30b7\u30a7\u30eb\u3002<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">C Shell\uff08csh\uff09<\/td><td class=\"column-2\">sh\u3092\u57fa\u306b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u69cb\u6587\u3092C\u8a00\u8a9e\u306e\u3088\u3046\u306b\u30a2\u30ec\u30f3\u30b8\u3055\u308c\u305f\u30b7\u30a7\u30eb\u3002<br \/>\n\u914d\u5217\u304c\u4f7f\u7528\u53ef\u80fd\u3002<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">TENEX C Shell\uff08tcsh\uff09<\/td><td class=\"column-2\">csh\u3092\u57fa\u306b\u3001\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u90e8\u5206\u304c\u62e1\u5f35\u3055\u308c\u305f\u30b7\u30a7\u30eb\u3002<br \/>\nFreeBSD\uff08Ver4\u4ee5\u964d\uff09\u306e\u6a19\u6e96\u30b7\u30a7\u30eb\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-67 from cache -->\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"i-5\">\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6d3b\u7528<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i-6\">\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f<\/span><\/h3>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8<\/strong>\u3068\u306f\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092\u307e\u3068\u3081\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308a\u3001<strong>Linux\u3084Unix\u30b7\u30b9\u30c6\u30e0\u3067\u81ea\u52d5\u5316\u3084\u30d0\u30c3\u30c1\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528<\/strong>\u3055\u308c\u307e\u3059<\/span>\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308a\u3001\u30b7\u30a7\u30eb\u304c\u89e3\u91c8\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30b3\u30de\u30f3\u30c9\u306b\u52a0\u3048\u6761\u4ef6\u5206\u5c90\u3084\u30eb\u30fc\u30d7\u306a\u3069\u306e\u51e6\u7406\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u8907\u96d1\u306a\u51e6\u7406\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059<\/span>\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-7\">\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd5<\/span><\/h3>\n<p>\u4eca\u56de\u3067\u306f\u4f8b\u3068\u3057\u3066\u300cBourne Shell\u300d\u3092\u4f7f\u3063\u305f\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u898f\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u6700\u521d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u8ff0\u306f\u300c\u5fc5\u305a1\u884c\u76ee\u306b\u8a18\u8f09\u3059\u308b\u300d\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"well2\"><strong>#!\/bin\/sh<\/strong><\/p>\n<p>\u306a\u304a\u3001\u4ed6\u306e\u30b7\u30a7\u30eb\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u300c#!\/bin\/bash\u300d\u3084\u300c#!\/bin\/ksh\u300d\u306a\u3069\u306e\u3088\u3046\u306b\u5ba3\u8a00\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3042\u3068\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u8f09\u3057\u3066\u3044\u304f\u3060\u3051\u3067\u3001\u30b7\u30a7\u30eb\u304c\u89e3\u91c8\u30fb\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u305f\u3081\u3057\u306b\u3001\u7c21\u5358\u306a\u30b7\u30a7\u30eb\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u300ctest.sh\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>#!\/bin.sh<\/strong><br \/>\n<strong>echo Hello World!<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4471\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf3-2.webp\" alt=\"\" width=\"465\" height=\"43\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf3-2.webp 465w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf3-2-300x28.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf3-2-460x43.webp 460w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/p>\n<p>\u5b9f\u884c\u3057\u3001\u300cHello World\uff01\u300d\u3068\u51fa\u529b\u3055\u308c\u305f\u3089\u3001\u6210\u529f\u3067\u3059\u3002<\/p>\n<p class=\"well2\"><strong>$ sh test.sh<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4472\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf4-2.webp\" alt=\"\" width=\"384\" height=\"40\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf4-2.webp 384w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf4-2-300x31.webp 300w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u524d\u8ff0\u306e\u3068\u304a\u308a\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u30b3\u30de\u30f3\u30c9\u306e\u7f85\u5217\u306a\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306a\u304f\u3068\u3082\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4473\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf5-2.webp\" alt=\"\" width=\"477\" height=\"40\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf5-2.webp 477w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf5-2-300x25.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf5-2-460x40.webp 460w\" sizes=\"(max-width: 477px) 100vw, 477px\" \/><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3060\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u591a\u304f\u306e\u51e6\u7406\u3092\u8a18\u8f09\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308c\u3070\u8a18\u8f09\u3055\u308c\u305f\u5185\u5bb9\u30921\u5ea6\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"if\">if\u6587\u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u306e\u65b9\u6cd5<\/span><\/h3>\n<p>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001\u72b6\u6cc1\u306b\u3088\u3063\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001if\u6587\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p>if\u6587\u306e\u66f8\u5f0f\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p class=\"well2\"><strong>if [\u6761\u4ef6\u5f0f]; then<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0 <\/strong><strong>\u51e6\u7406<\/strong><br \/>\n<strong>fi<\/strong><\/p>\n<p>\u4e0a\u8a18\u306e\u66f8\u5f0f\u3067\u306f\u3001\u6761\u4ef6\u5f0f\u306b\u5408\u81f4\u3057\u305f\u5834\u5408\u306e\u307f\u51e6\u7406\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6761\u4ef6\u5f0f\u306b\u5408\u81f4\u3057\u306a\u3044\u5834\u5408\u3001\u5225\u306e\u51e6\u7406\u3092\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>if [\u6761\u4ef6\u5f0f]; then<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0 \u51e6\u74061<\/strong><br \/>\n<strong>else<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0 <\/strong><strong>\u51e6\u7406<\/strong><strong>2<\/strong><br \/>\n<strong>fi<\/strong><\/p>\n<p>\u4e0a\u8a18\u306e\u66f8\u5f0f\u3067\u306f\u3001\u6761\u4ef6\u5f0f\u306b\u5408\u81f4\u3057\u305f\u5834\u5408\u306f\u51e6\u74061\u3001\u5408\u81f4\u3057\u306a\u3044\u5834\u5408\u306f\u51e6\u74062\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u3053\u308c\u3092\u4f8b\u306b\u7c21\u5358\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<table width=\"602\">\n<tbody>\n<tr>\n<td width=\"602\"><strong>#!\/bin.sh<\/strong><\/p>\n<p><strong>NUM_A=10<\/strong><\/p>\n<p><strong>NUM_B=20<\/strong><\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>if [ $NUM_A -gt $NUM_B ]; then<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 echo \u2018NUM_A &gt; NUM_B\u2019<\/strong><\/p>\n<p><strong>else<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 echo \u2018NUM_A &lt; NUM_B\u2019<\/strong><\/p>\n<p><strong>fi<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0a\u8a18\u306f\u6570\u5024\u300cNUM_A\u300d\u306b10\u3001\u300cNUM_B\u300d\u306b20\u3092\u4ee3\u5165\u3057\u3001\u305d\u308c\u305e\u308c\u306e\u5024\u3092\u6bd4\u8f03\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>NUM_B\u306e\u65b9\u304c\u5927\u304d\u3044\u306e\u3067\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u300cNUM_A &lt; NUM_B\u300d\u3068\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4474\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf6-2.webp\" alt=\"\" width=\"475\" height=\"236\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf6-2.webp 475w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf6-2-300x149.webp 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p>if\u6587\u306e\u6761\u4ef6\u5f0f\u306b\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u6761\u4ef6\u3092\u6307\u5b9a\u3057\u3066\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306f\u3001if\u6587\u306e\u6761\u4ef6\u5f0f\u3067\u4f7f\u7528\u3067\u304d\u308b\u6f14\u7b97\u5b50\u3067\u3059\u306e\u3067\u3001\u899a\u3048\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n<table id=\"tablepress-68\" class=\"tablepress tablepress-id-68\">\n<thead>\n<tr class=\"row-1 odd\">\n\t<th class=\"column-1\">\u6f14\u7b97\u5b50<\/th><th class=\"column-2\">\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-hover\">\n<tr class=\"row-2 even\">\n\t<td class=\"column-1\">\u6570\u5024A -eq \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A\uff1d\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-3 odd\">\n\t<td class=\"column-1\">\u6570\u5024A -ne \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A\u2260\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-4 even\">\n\t<td class=\"column-1\">\u6570\u5024A -ge \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A\u2267\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-5 odd\">\n\t<td class=\"column-1\">\u6570\u5024A -gt \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A>\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-6 even\">\n\t<td class=\"column-1\">\u6570\u5024A -le \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A\u2266\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-7 odd\">\n\t<td class=\"column-1\">\u6570\u5024A -lt \u6570\u5024B<\/td><td class=\"column-2\">\u6570\u5024A<\u6570\u5024B\u3000\u306e\u5834\u5408True<\/td>\n<\/tr>\n<tr class=\"row-8 even\">\n\t<td class=\"column-1\">-n \u6587\u5b57\u5217<\/td><td class=\"column-2\">\u6587\u5b57\u5217\u306e\u9577\u3055\u304c1\u4ee5\u4e0a\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-9 odd\">\n\t<td class=\"column-1\">-z \u6587\u5b57\u5217<\/td><td class=\"column-2\">\u6587\u5b57\u5217\u306e\u9577\u3055\u304c0\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-10 even\">\n\t<td class=\"column-1\">\u6587\u5b57\u5217A = \u6587\u5b57\u5217B<\/td><td class=\"column-2\">\u6587\u5b57\u5217A\u3068\u6587\u5b57\u5217B\u304c\u540c\u3058\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-11 odd\">\n\t<td class=\"column-1\">\u6587\u5b57\u5217A != \u6587\u5b57\u5217B<\/td><td class=\"column-2\">\u6587\u5b57\u5217A\u3068\u6587\u5b57\u5217B\u304c\u7570\u306a\u308b\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-12 even\">\n\t<td class=\"column-1\">-d \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d<\/td><td class=\"column-2\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-13 odd\">\n\t<td class=\"column-1\">-f \u30d5\u30a1\u30a4\u30eb\u540d<\/td><td class=\"column-2\">\u30d5\u30a1\u30a4\u30eb\u306a\u3089True<\/td>\n<\/tr>\n<tr class=\"row-14 even\">\n\t<td class=\"column-1\">-e \u30d5\u30a1\u30a4\u30eb\u540d<\/td><td class=\"column-2\">\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u305f\u3089True<\/td>\n<\/tr>\n<tr class=\"row-15 odd\">\n\t<td class=\"column-1\">-s \u30d5\u30a1\u30a4\u30eb\u540d<\/td><td class=\"column-2\">\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c0\u3067\u306a\u3051\u308c\u3070True<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-68 from cache -->\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h3 class=\"styled_h3\"><span id=\"forwhile\">for\u6587\/while\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u65b9\u6cd5<\/span><\/h3>\n<p>\u540c\u3058\u51e6\u7406\u3092\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3059\u5834\u5408\u306f\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3046\u3068\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u30011\u304b\u308910\u307e\u3067\u306e\u6570\u5b57\u3092\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\u3001\u300cecho 1\u300d\u300cecho 2\u300d\u2026\u3068\u30b3\u30de\u30f3\u30c9\u309210\u56de\u5b9f\u884c\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30eb\u30fc\u30d7\u6587\u3092\u4f7f\u7528\u3059\u308c\u3070\u7c21\u5358\u306b\u8a18\u8f09\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3042\u308b\u7a0b\u5ea6\u7e70\u308a\u8fd4\u3057\u56de\u6570\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<ul style=\"list-style-type: disc;\">\n<li>for\u6587<\/li>\n<\/ul>\n<p>for\u6587\u306e\u66f8\u5f0f\u306f\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p class=\"well2\"><strong>for \u5909\u6570\u540d in \u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u5024\u306e\u30ea\u30b9\u30c8<\/strong><br \/>\n<strong>do<\/strong><br \/>\n<strong>\u00a0\u00a0\u00a0 \u51e6\u7406<\/strong><br \/>\n<strong>done<\/strong><\/p>\n<p>\u5148\u307b\u3069\u306e\u3088\u3046\u306b\u30011\u301c10\u307e\u3067\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u305f\u3044\u5834\u5408\u3001for\u6587\u3092\u4f7f\u7528\u3059\u308b\u3068\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>#!\/bin.sh<\/strong><br \/>\n<strong>for i in 1 2 3 4 5 6 7 8 9 10<\/strong><br \/>\n<strong>do<\/strong><br \/>\n<strong>\u00a0 echo $i<\/strong><br \/>\n<strong>done<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4475\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf7-2.webp\" alt=\"\" width=\"483\" height=\"340\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf7-2.webp 483w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf7-2-300x211.webp 300w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/p>\n<p>\u540c\u3058\u304f\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u5b9f\u884c\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u3001while\u6587\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306f\u3001if\u6587\u3068\u540c\u69d8\u6761\u4ef6\u5f0f\u3092\u8a18\u8f09\u3057\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u307e\u3067\u51e6\u7406\u3092\u7e70\u308a\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<ul style=\"list-style-type: disc;\">\n<li>while\u6587<\/li>\n<\/ul>\n<p>while\u6587\u306e\u66f8\u5f0f\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p class=\"well2\"><strong>while \u6761\u4ef6\u5f0f<br \/>\ndo<br \/>\n\u51e6\u7406<br \/>\ndone<\/strong><\/p>\n<p>\u5148\u307b\u3069\u306efor\u6587\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u4f8b\u3092\u3001while\u6587\u3067\u5909\u63db\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>#!\/bin.sh<\/strong><br \/>\n<strong>i=1<br \/>\nwhile [ $i -le 10 ];<br \/>\ndo<br \/>\necho $i<br \/>\ni=`expr $i + 1`<br \/>\ndone<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4476\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf8-1-570x360.webp\" alt=\"\" width=\"570\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf8-1-570x360.webp 570w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf8-1-300x189.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2023\/06\/\u753b\u50cf8-1.webp 602w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><\/p>\n<p>\u6761\u4ef6\u5f0f\u3067\u306f\u300c\u5909\u6570i\u304c10\u4ee5\u4e0b\u306e\u5834\u5408\u306b\u51e6\u7406\u3092\u5b9f\u884c\u300d\u3068\u3057\u3001\u51e6\u7406\u5185\u3067\u5909\u6570\u306e\u5024\u3092\u300c\u30d7\u30e9\u30b91\u300d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u7d50\u679c\u300110\u3092\u8d85\u3048\u308b\u3068\u30eb\u30fc\u30d7\u3092\u629c\u3051\u3001\u51e6\u7406\u304c\u7d42\u4e86\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u3053\u307e\u3067\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7c21\u5358\u306a\u4f5c\u6210\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u975e\u5e38\u306b\u5965\u304c\u6df1\u304f\u3001\u305d\u308c\u3060\u3051\u30671\u518a\u306e\u66f8\u7c4d\u304c\u3067\u304d\u308b\u307b\u3069\u3067\u3059\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308c\u3070\u3001\u305d\u308c\u307e\u30671\u30641\u3064\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u5b9f\u884c\u3057\u3066\u304d\u305f\u4f5c\u696d\u3092\u9ad8\u901f\u304b\u3064\u81ea\u52d5\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Linux\u3092\u6271\u3046\u306b\u306f\u6b20\u304b\u305b\u306a\u3044\u30b9\u30ad\u30eb\u3067\u3059\u306e\u3067\u3001\u305c\u3072\u30de\u30b9\u30bf\u30fc\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-117 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"728\" height=\"90\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a.png 728w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-300x37.png 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_728x90_a-640x79.png 640w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"i-8\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><strong>\u30b7\u30a7\u30eb<\/strong>\u306f<strong>Linux\u30ab\u30fc\u30cd\u30eb\u3068\u30e6\u30fc\u30b6\u30fc\u3092\u3064\u306a\u3050\u6a4b\u6e21\u3057\u7684\u306a\u5f79\u5272\u3092\u3082\u3064\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/strong>\u3067\u3059<\/span>\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u904b\u7528\u304c\u975e\u5e38\u306b\u697d\u306b\u306a\u308a\u307e\u3059<\/span>\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089Unix\/Linux\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3084\u3001\u30b5\u30fc\u30d0\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u4eba\u306f\u3001\u30b7\u30a7\u30eb\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u3066\u307f\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2 class=\"styled_h2\"><span id=\"UnixLinuxVPS\">Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u672c\u8a18\u4e8b\u3067\u306f\u3001Unix\u3084Linux\u3092\u52b9\u7387\u3088\u304f\u904b\u7528\u3059\u308b\u305f\u3081\u306b\u6b20\u304b\u305b\u306a\u3044\u30b7\u30a7\u30eb\u306e\u6a5f\u80fd\u3084\u7a2e\u985e\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002 \u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u904b\u7528\u304c\u975e\u5e38\u306b\u697d\u306b\u306a\u308a\u307e\u3059\u3002 \u3053\u308c\u304b\u3089Unix\/Linux\u30b5\u30fc\u30d0\u30fc\u306e\u7ba1\u7406\u3084\u30b5\u30fc\u30d0\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u76ee\u6307\u3059\u4eba\u306f\u3001\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3001\u30b7\u30a7\u30eb\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 Unix\/Linux\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089 \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \uff3c2\u9031\u9593\u7121\u6599\u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\uff0f \u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u7121\u6599\u3067\u8a66\u3059 \u76ee\u6b211 \u30b7\u30a7\u30eb\u3068\u306f1.1 \u30b7\u30a7\u30eb\u3068\u306f\u4f55\u304b1.2 \u30b7\u30a7\u30eb\u306e\u6a5f\u80fd1.3 \u30b7\u30a7\u30eb\u306e\u7a2e\u985e2 \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u6d3b\u75282.1 \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f2.2 \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u65b9\u6cd52.3 if\u6587\u306b\u3088\u308b\u6761\u4ef6\u5206\u5c90\u306e\u65b9\u6cd52.4 for\u6587\/while\u6587\u306b\u3088\u308b\u30eb\u30fc\u30d7\u51e6\u7406\u306e\u65b9\u6cd53 \u307e\u3068\u30814 Unix\u3084Linux\u306eVPS\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc \u30b7\u30a7\u30eb\u3068\u306f \u30b7\u30a7\u30eb\u3068\u306f\u4f55\u304b \u30b7\u30a7\u30eb(Shell)\u3068\u306f\u3001Linux\u3092\u64cd\u4f5c\u3059\u308b\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3067\u3059\u3002 \u5165\u529b\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u306f\u30b7\u30a7\u30eb\u3092\u4ecb\u3057\u3066Linux\u30ab\u30fc\u30cd\u30eb\u306b\u9001\u4fe1\u3055\u308c\u3001\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002 \u305d\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4e00\u584a\u306b\u3057\u305f\u3082\u306e\u304c\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4e00\u5ea6\u306b\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u8a00\u8a9e\u3067\u3059\u3002 \u3053\u306e\u305f\u3081\u3001Unix\u3084Linux\u3092\u52b9\u7387\u3088\u304f\u904b\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b7\u30a7\u30eb\u304a\u3088\u3073\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u7406\u89e3\u304c\u6b20\u304b\u305b\u307e\u305b\u3093\u3002 \u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u74b0\u5883\u3068\u3057\u3066\u300c\u30b7\u30a7\u30eb\u300d\u306e\u307b\u304b\u306b\u3082\u300c\u30bf\u30fc\u30df\u30ca\u30eb\u300d\u3084\u300c\u30b3\u30f3\u30bd\u30fc\u30eb\u300d\u306a\u3069\u306e\u4f3c\u305f\u3088\u3046\u306a\u8a00\u8449\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002 \u30b7\u30a7\u30eb\u306e\u6a5f\u80fd \u30b7\u30a7\u30eb\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u4ee5\u5916\u306b\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u304c\u591a\u6570\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u305d\u306e\u4e00\u90e8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u300c\uff5c\u300d\uff08\u30d1\u30a4\u30d7\uff09 \u30d1\u30a4\u30d7\u306f\u3001\u30b3\u30de\u30f3\u30c9\u3092\u3064\u306a\u3052\u308b\u5f79\u5272\u3092\u3082\u3061\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u591a\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u300clog\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u3064\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 ls | grep log \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u300cls\u300d\u306b\u3088\u3063\u3066\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30b9\u30c8\u3092\u3060\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u300cgrep\u300d\u30b3\u30de\u30f3\u30c9\u306b\u6e21\u3057\u3001grep\u30b3\u30de\u30f3\u30c9\u3067\u201dlog\u201d\u306e\u6587\u5b57\u5217\u304c\u3064\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u691c\u7d22\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u306e\u3088\u3046\u306b\u3001\u30d1\u30a4\u30d7\u3067\u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306b\u3064\u306a\u3052\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u8907\u96d1\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u300c\uff1e\u300d\uff08\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\uff09 \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306e\u51fa\u529b\u5148\u3092\u5909\u66f4\u3057\u307e\u3059\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u6a19\u6e96\u51fa\u529b\u3067\u3042\u308b\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u3067\u3059\u3002 \u4f8b\u3048\u3070\u3001\u300cls\u300d\u30b3\u30de\u30f3\u30c9\u306e\u7d50\u679c\u3092\u300ctest.txt\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3059\u3002 ls &gt; test.txt \u3053\u306e\u3068\u304d\u3001\u300c&gt;\u300d\u304c1\u3064\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u3057\u3001\u300c&gt;&gt;\u300d\u3068\uff12\u3064\u306e\u5834\u5408\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002 \u5165\u529b\u88dc\u52a9\u6a5f\u80fd Linux\u3067\u306f\u975e\u5e38\u306b\u591a\u304f\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3067\u304d\u307e\u3059\u304c\u3001\u5168\u3066\u3092\u899a\u3048\u308b\u306e\u306f\u56f0\u96e3\u3067\u3059\u3002 \u30b3\u30de\u30f3\u30c9\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u9014\u4e2d\u307e\u3067\u5165\u529b\u3057\u305f\u5f8c\u306b\u300cTab\u300d\u30ad\u30fc\u3092\u62bc\u3059\u3068\u3001\u30b3\u30de\u30f3\u30c9\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5019\u88dc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u4f8b\u3048\u3070\u3001\u300csh\u300d\u306e\u5f8c\u306b\u7d9a\u304f\u30b3\u30de\u30f3\u30c9\u3092\u8abf\u3079\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002 sh \u203b\u3053\u3053\u3067tab\u30ad\u30fc\u3092\u62bc\u3059 \u4ee5\u4e0b\u3067\u306f\u3001\u53c2\u8003\u307e\u3067\u306bUbuntu\uff0822.04.2 LTS\uff09\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3067\u3059\u3002 [&hellip;]","protected":false},"author":1,"featured_media":4468,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,231],"tags":[22,27,153,187],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1001"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=1001"}],"version-history":[{"count":12,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1001\/revisions"}],"predecessor-version":[{"id":4477,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/1001\/revisions\/4477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4468"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=1001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=1001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=1001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}