{"id":3875,"date":"2021-12-08T14:09:16","date_gmt":"2021-12-08T05:09:16","guid":{"rendered":"https:\/\/www.nblog09.com\/w\/?p=3875"},"modified":"2022-01-19T16:03:57","modified_gmt":"2022-01-19T07:03:57","slug":"linux-commands","status":"publish","type":"post","link":"https:\/\/www.nblog09.com\/w\/2021\/12\/08\/linux-commands\/","title":{"rendered":"\u899a\u3048\u3066\u304a\u304f\u3079\u304dLinux\u30b3\u30de\u30f3\u30c9\uff15\uff10\u9078"},"content":{"rendered":"<p>[rtoc_mokuji title=\"\" title_display=\"\" heading=\"h3\" list_h2_type=\"\" list_h3_type=\"\" display=\"\" frame_design=\"\" animation=\"\"]<\/p>\n<h2 class=\"title-border\"><strong>Linux\u3068\u306f\uff1f<\/strong><\/h2>\n<p>Linux\u3068\u306f\u3001Windows\u3084Mac\u3068\u540c\u3058OS\u306e1\u3064\u3067\u3042\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30b5\u30fc\u30d0\u30fc\u306e<span class=\"pink_span\">OS\u3068\u3057\u3066\u306e\u30b7\u30a7\u30a2\u306f\u6700\u3082\u591a\u3044\u3002<\/span><\/p>\n<p>\u307e\u305f\u3001OSS\u3067\u3042\u308b\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u3001\u57fa\u672c\u7684\u306b\u306f\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u305f\u3081\u3001<span class=\"pink_span\">AWS\u306a\u3069\u306e\u30af\u30e9\u30a6\u30c9\u74b0\u5883\u3067\u3082\u4eba\u6c17<\/span>\u306eOS\u3067\u3042\u308b\u3002<\/p>\n<p>Linux\u306f\u3069\u3093\u306a\u5834\u9762\u3067\u3082\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u3001Linux\u3092\u6271\u3046\u3053\u3068\u306f<span class=\"pink_span\">\u30a8\u30f3\u30b8\u30cb\u30a2\u5fc5\u9808\u306e\u30b9\u30ad\u30eb<\/span>\u3067\u3042\u308b\u305f\u3081\u3001\u305d\u306e\u5229\u7528\u65b9\u6cd5\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u975e\u5e38\u306b\u91cd\u8981\u3067\u3042\u308b\u3002<\/p>\n<p><strong><br \/>\nLinux\u306b\u306f\u5927\u304d\u304f\uff12\u3064\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b<\/strong><\/p>\n<p>Linux\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8aac\u660e\u3059\u308b\u524d\u306b\u3001Linux\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\uff08\u6d41\u901a\uff09\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3088\u3046\u3002<\/p>\n<p>\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3068\u306f\u3001\u7a2e\u985e\u306e\u3053\u3068\u3067\u3001\u7ba1\u7406\u3059\u308b\u56e3\u4f53\u306b\u5fdc\u3058\u3066\u3001<span class=\"pink_span\">Linux\u306f\u69d8\u3005\u306a\u7a2e\u985e\u306b\u5206\u304b\u308c\u3066\u3044\u308b\u3002<\/span><\/p>\n<p>\u7279\u306b\u5927\u304d\u306a\u3082\u306e\u304c\u3001Redhat\u7cfb\u3068Debian\u7cfb\u3067\u3042\u308b\u3002<\/p>\n<p><span class=\"red_span\">Redhat\u7cfb\u306eLinux\u306e\u7279\u5fb4<\/span>\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u4e0a\u3052\u3089\u308c\u308b\u3002<\/p>\n<div class=\"pink_box\">\n<ul>\n<li>\u4ee3\u8868\u7684\u306aOS\u306f\u3001Redhat Enterprise Linux(RHEL), CentOS, Amazon Linux<\/li>\n<li>\u5b89\u5b9a\u6027\u304c\u9ad8\u304f\u3001\u6709\u511f\u306e\u30b5\u30dd\u30fc\u30c8\u3082\u3042\u308b\u305f\u3081\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u5229\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044<\/li>\n<li>GUI\u306f\u82e5\u5e72\u4f7f\u3044\u3065\u3089\u304f\u3001CUI\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u3044<\/li>\n<li>RPM\u3068\u547c\u3070\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u65b9\u5f0f\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6570\u306f\u5c11\u306a\u3044\u3002yum\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<\/ul>\n<\/div>\n<p>\u307e\u305f\u3001<span class=\"red_span\">Debian\u7cfb\u306eLinux\u306e\u7279\u5fb4<\/span>\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u4e0a\u3052\u3089\u308c\u308b\u3002<\/p>\n<div class=\"pink_box\">\n<ul>\n<li>\u4ee3\u8868\u7684\u306aOS\u306f\u3001Ubuntu, Linux Mint<\/li>\n<li>Redhat\u7cfb\u3088\u308a\u3082\u5b89\u5b9a\u3057\u306a\u3044\u5370\u8c61\u304c\u3042\u308b<\/li>\n<li>GUI\u304c\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3001\u521d\u5fc3\u8005\u3067\u3082\u6271\u3044\u3084\u3059\u3044<\/li>\n<li>DEB\u3068\u547c\u3070\u308c\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u65b9\u5f0f\u3067\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u6570\u306f\u591a\u3044\u3002apt\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/li>\n<\/ul>\n<\/div>\n<p>\u3067\u306f\u3001Linux\u30b3\u30de\u30f3\u30c9\u3068\u306f\u4f55\u306a\u306e\u304b\u6b21\u306b\u305d\u306e\u3053\u3068\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3057\u3088\u3046\u3002<\/p>\n<h2 class=\"title-border\"><strong>Linux\u30b3\u30de\u30f3\u30c9\u3068\u306f\uff1f<\/strong><\/h2>\n<p>\u4e0a\u3067\u3001Linux\u306b\u306f\u3001\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308b\u3053\u3068\u3092\u7d39\u4ecb\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u5168\u304f\u7570\u306a\u308bOS\u306a\u306e\u304b\u3068\u8a00\u308f\u308c\u308b\u3068\u7b54\u3048\u306f\u5426\u3067\u3042\u308b\u3002<\/p>\n<p>\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306b\u5fdc\u3058\u3066\u3001UI\u3082\u9055\u3046\u3057\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7ba1\u7406\u65b9\u5f0f\u3082\u7570\u306a\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u5171\u901a\u306e\u90e8\u5206\u3082\u5b58\u5728\u3059\u308b\u3002\u305d\u308c\u304c\u3001<span class=\"pink_span\">Linux\u30ab\u30fc\u30cd\u30eb<\/span>\u3067\u3042\u308b\u3002<\/p>\n<p>Linux\u306f\u3053\u306eLinux\u30ab\u30fc\u30cd\u30eb\u3092\u901a\u3057\u3066\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u8fbc\u307f\u3001\u8aad\u307f\u8fbc\u307f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u5229\u7528\u306a\u3069\u3092\u3057\u3066\u3044\u308b\u306e\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30ab\u30fc\u30cd\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3001\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u304c<span class=\"pink_span\">Linux\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u56f3\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b3\u30de\u30f3\u30c9\u3084\u5404\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u74b0\u5883\u304c\u30b7\u30a7\u30eb\u3002\u30b7\u30a7\u30eb\u304b\u3089\u5b9f\u884c\u3055\u308c\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30ab\u30fc\u30cd\u30eb\u3092\u901a\u3058\u3066\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3896\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2021\/12\/1.png\" alt=\"\" width=\"294\" height=\"408\" \/><\/p>\n<h2 class=\"title-border\"><strong>\u5fc5\u9808\u30b3\u30de\u30f3\u30c9\uff12\uff15\u9078<\/strong><\/h2>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>1. man<\/strong><\/h3>\n<p>\u4e00\u756a\u6700\u521d\u306b\u7d39\u4ecb\u3059\u308b\u306e\u3067\u306f\u3001man\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nman\u30b3\u30de\u30f3\u30c9\u306f\u3001\u5404\u30b3\u30de\u30f3\u30c9\u306e<span class=\"pink_span\">\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3001\u300cman \u30b3\u30de\u30f3\u30c9\u540d\u300d\u3068\u8a00\u3046\u3075\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<div class=\"terminal_box\">\n<pre class=\"white-span\"># man less \u5b9f\u884c\u7d50\u679c\nLESS(1)                     General Commands Manual                    LESS(1)\n\nNAME\n       less - opposite of more\n\nSYNOPSIS\n       less -?\n       less --help\n       less -V\n:\n<\/pre>\n<\/div>\n<p>\u753b\u9762\u64cd\u4f5c\u306fless\u30b3\u30de\u30f3\u30c9\u306a\u3069\u3068\u540c\u3058\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u7d42\u4e86\u3059\u308b\u306b\u306f\u3001q\u3092\u5b9f\u884c\u3002<br \/>\nd\u3092\u62bc\u4e0b\u3059\u308b\u3068\u753b\u9762\u306e\u4e0b\u306b\u79fb\u52d5\u3001u\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001\u753b\u9762\u306e\u4e0a\u90e8\u306b\u79fb\u52d5\u3059\u308b\u3002<\/p>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>2. pwd<\/strong><\/h3>\n<p>\u6b21\u306b\u3001\u7d39\u4ecb\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306fpwd\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4eca\u3069\u3053\u306b\u3044\u308b\u306e\u304b\u3001<span class=\"pink_span\">\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001\u7d76\u5bfe\u30d1\u30b9\u3067\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u4f59\u8ac7\u3060\u304c\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u672c\u756a\u4f5c\u696d\u306a\u3069\u3067\u3001cd\u30b3\u30de\u30f3\u30c9\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3057\u305f\u5f8c\u306b\u4eca\u3069\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3044\u308b\u306e\u304b\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306b\u7528\u3044\u3089\u308c\u308b\u3053\u3068\u3082\u591a\u3044\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ pwd<br \/>\n<span class=\"white-span\">\/home\/test<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>3. date<\/strong><\/h3>\n<p>\u3053\u308c\u306f\u3001<span class=\"pink_span\">\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3059\u308b<\/span>\u969b\u306b\u7528\u3044\u3089\u308c\u308b\u30b3\u30de\u30f3\u3067\u3042\u308b\u3002<br \/>\n\u307e\u305f\u3001\u73fe\u5728\u6642\u523b\u3060\u3051\u3067\u306a\u304f\u3001<span class=\"pink_span\">\u69d8\u3005\u306a\u6642\u523b\u3092\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u4ed8\u304d\u3067\u8868\u793a\u3059\u308b<\/span>\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>\u305d\u308c\u305e\u308c\u3001\u4ee5\u4e0b\u306b\u793a\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u73fe\u5728\u6642\u523b\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# date<br \/>\n<span class=\"white-span\">2021\u5e74 12\u6708 7\u65e5 \u706b\u66dc\u65e5 14:23:40 JST<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u4ed8\u304d\u3067\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# date \"+%Y%m%d-%H%M%S\" # \u5e74\u6708\u65e5-\u6642\u5206\u79d2<br \/>\n<span class=\"white-span\">20211207-143010<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u524d\u65e5\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# date -d '1 day ago'<br \/>\n<span class=\"white-span\">2021\u5e74 12\u6708 6\u65e5 \u6708\u66dc\u65e5 14:31:34 JST<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>4. echo<\/strong><\/h3>\n<p>\u3053\u308c\u306f\u3001\u5f15\u6570\u3068\u3057\u3066\u6e21\u3057\u305f\u5024\u3092<span class=\"pink_span\">\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u6a19\u6e96\u51fa\u529b\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u307e\u305f\u306f\u3001&gt;, &gt;&gt;\u3068\u3059\u308b\u3053\u3068\u3067<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u4e0a\u306b\u66f8\u304d\u8fbc\u3080<\/span>\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u5229\u7528\u65b9\u6cd5\u3092\u793a\u3059\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u753b\u9762\u4e0a\u306b\u6a19\u6e96\u51fa\u529b\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# echo 'Hello World'<br \/>\n<span class=\"white-span\">Hello World<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\uff08\u8ffd\u8a18\uff09<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# echo 'Hello World' &gt;&gt; file.txt<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>5. cd<\/strong><\/h3>\n<p>\u3053\u308c\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u4f5c\u696d\u3057\u3066\u3044\u308b<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5909\u66f4\uff08\u79fb\u52d5\uff09\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\ncd \u25cb\u25cb\u3068\u3057\u3066\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u5165\u3063\u305f\u308a\u3001\u7d76\u5bfe\u30d1\u30b9\u3067root\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u6307\u5b9a\u3057\u3066\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306b\u5165\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# cd dir1 # dir1\u306e\u4e2d\u306b\u5165\u308b<br \/>\n[root@localhost dir1]# pwd<br \/>\n<span class=\"white-span\">\/root\/dir1<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u308b(..\/)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ pwd<br \/>\n<span class=\"white-span\">\/home\/test<\/span><br \/>\n[test@localhost ~]$ cd ..\/<br \/>\n[test@localhost home]$ pwd<br \/>\n<span class=\"white-span\">\/home<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u6307\u5b9a\u3057\u3066\u79fb\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ pwd<br \/>\n[test@localhost home]$ cd \/tmp\/dir1\/<br \/>\n[test@localhost dir1]$ pwd<br \/>\n<span class=\"white-span\">\/tmp\/dir1<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>6. ls<\/strong><\/h3>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u5b58\u5728\u3059\u308b<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u73fe\u5728\u30e6\u30fc\u30b6\u30fc\u306e\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u306e\u3082\u306e\u3092\u8868\u793a\u3057\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u4eca\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e00\u89a7\u3092\u8868\u793a<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 dir2 test.sh tmp.log<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7d76\u5bfe\u30d1\u30b9\u3067\u6307\u5b9a\u3057\u3066\u8868\u793a<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls \/tmp<br \/>\n<span class=\"white-span\">dir1<br \/>\nks-script-9lctosou<br \/>\nks-script-en8dv8d2<br \/>\nsystemd-private-e5681e2e8f8847e6bd724b80220182f1-chronyd.service-3o0QZf<\/span><\/div>\n<p>ls\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u899a\u3048\u308b\u3053\u3068\u3082\u91cd\u8981<\/span>\u3067\u3042\u308b\u3002<\/p>\n<ul>\n<li><strong>ls -R<\/strong> \u8868\u793a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u8868\u793a<\/li>\n<li><strong>ls -a<\/strong> \u96a0\u3057\u30d5\u30a1\u30a4\u30eb\uff08.\u3067\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\uff09\u3082\u5408\u308f\u305b\u3066\u8868\u793a<\/li>\n<li><strong>ls -l<\/strong> \u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u60c5\u5831(\u6240\u6709\u8005\u3001\u5b9f\u884c\u6a29\u9650\u7b49)\u3082\u8868\u793a<\/li>\n<\/ul>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>7. mkdir<\/strong><\/h3>\n<p><span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b<\/span>(make directory)\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u307e\u305f\u3001-p\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3059\u308b\u3068\u3001<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mkdir\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u4f8b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mkdir dir1<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 test.sh tmp.log<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mkdir -p\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u4f8b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mkdir -p dir1\/dir2\/dir3<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>8. touch<\/strong><\/h3>\n<p>touch\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u7a7a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\ntouch \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ touch test.txt<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">test.txt<\/span><\/div>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>9. rmdir<\/strong><\/h3>\n<p>rmdir\u306f\u3001<span class=\"pink_span\">\u7a7a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u5f8c\u8ff0\u3059\u308brm\u30b3\u30de\u30f3\u30c9\u3067\u306f\u7a7a\u3067\u306a\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3082\u524a\u9664\u3067\u304d\u308b\u305f\u3081\u3001\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u3060\u3051\u3092\u524a\u9664\u3057\u305f\u3044\u3068\u3044\u3046\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ rmdir dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>10. rm<\/strong><\/h3>\n<p>rm\u306fremove\u306e\u610f\u5473\u3067\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b<\/span>\u3002<br \/>\n\u524a\u9664\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u623b\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4f7f\u7528\u3059\u308b\u969b\u306f<span class=\"red_span\">\u5341\u5206\u306a\u6ce8\u610f\uff08\u30c0\u30d6\u30eb\u30c1\u30a7\u30c3\u30af\uff09<\/span>\u304c\u5fc5\u8981\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ touch file.txt<br \/>\n[test@localhost ~]$ rm file.txt<br \/>\n[test@localhost ~]$ ls # \u30d5\u30a1\u30a4\u30eb\u304c\u306a\u304f\u306a\u308b<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm -r \u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ rm -r dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm -rf \u3060\u3068\u3001\u3069\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u5f37\u5236\u7684\u306b\u524a\u9664\u3067\u304d\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ rm -rf dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>11. mv<\/strong><\/h3>\n<p>mv\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5909\u66f4<\/span>\u306b\u7528\u3044\u3089\u308c\u308b<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u79fb\u52d5\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001mv \u30d5\u30a1\u30a4\u30eb \u79fb\u52d5\u5148\u3001\u3068\u3057\u3066\u5b9f\u884c\u3057\u3066<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5909\u66f4\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001mv \u30d5\u30a1\u30a4\u30eb \u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mv\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mv file.txt dir1\/<br \/>\n[test@localhost ~]$ ls dir1<br \/>\n<span class=\"white-span\">file.txt<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mv\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mv file.txt file_new.txt<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">file_new.txt<\/span><\/div>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>12. cp<\/strong><\/h3>\n<p>cp\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b3\u30d4\u30fc\u3092\u3059\u308b\u969b\u306b\u7528\u3044\u3089\u308c\u308b\u3002<br \/>\n\u307e\u305f\u3001-p\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3059\u308b\u3068\u3001<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u540c\u6642\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mkdir\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u4f8b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mkdir dir1<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 test.sh tmp.log<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mkdir -p\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u4f8b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mkdir -p dir1\/dir2\/dir3<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>8. touch<\/strong><\/h3>\n<p>touch\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u7a7a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\ntouch \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ touch test.txt<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">test.txt<\/span><\/div>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>9. rmdir<\/strong><\/h3>\n<p>rmdir\u306f\u3001<span class=\"pink_span\">\u7a7a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u5f8c\u8ff0\u3059\u308brm\u30b3\u30de\u30f3\u30c9\u3067\u306f\u7a7a\u3067\u306a\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3082\u524a\u9664\u3067\u304d\u308b\u305f\u3081\u3001\u7a7a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u3060\u3051\u3092\u524a\u9664\u3057\u305f\u3044\u3068\u3044\u3046\u3068\u304d\u306b\u4f7f\u7528\u3059\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ rmdir dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>10. rm<\/strong><\/h3>\n<p>rm\u306fremove\u306e\u610f\u5473\u3067\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u30b3\u30de\u30f3\u30c9<\/span>\u3067\u3042\u308b\u3002<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u3001<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b<\/span>\u3002<br \/>\n\u524a\u9664\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u623b\u3059\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u4f7f\u7528\u3059\u308b\u969b\u306f<span class=\"red_span\">\u5341\u5206\u306a\u6ce8\u610f\uff08\u30c0\u30d6\u30eb\u30c1\u30a7\u30c3\u30af\uff09<\/span>\u304c\u5fc5\u8981\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ touch file.txt<br \/>\n[test@localhost ~]$ rm file.txt<br \/>\n[test@localhost ~]$ ls # \u30d5\u30a1\u30a4\u30eb\u304c\u306a\u304f\u306a\u308b<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm -r \u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u524a\u9664<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ rm -r dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>rm -rf \u3060\u3068\u3001\u3069\u3093\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u5f37\u5236\u7684\u306b\u524a\u9664\u3067\u304d\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ rm -rf dir1\/<br \/>\n[test@localhost ~]$ ls<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>11. mv<\/strong><\/h3>\n<p>mv\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\u3068\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5909\u66f4<\/span>\u306b\u7528\u3044\u3089\u308c\u308b<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u79fb\u52d5\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001mv \u30d5\u30a1\u30a4\u30eb \u79fb\u52d5\u5148\u3001\u3068\u3057\u3066\u5b9f\u884c\u3057\u3066<br \/>\n\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u5909\u66f4\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001mv \u30d5\u30a1\u30a4\u30eb \u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u3001\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mv\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u79fb\u52d5<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mv file.txt dir1\/<br \/>\n[test@localhost ~]$ ls dir1<br \/>\n<span class=\"white-span\">file.txt<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>mv\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ mv file.txt file_new.txt<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">file_new.txt<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>12. cp<\/strong><\/h3>\n<p>cp\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b3\u30d4\u30fc\u3092\u3059\u308b<\/span>\u969b\u306b\u7528\u3044\u3089\u308c\u308b\u3002<br \/>\n<span class=\"pink_span\">-r\u3092\u3064\u3051\u308b\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b3\u30d4\u30fc<\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>cp\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ cp file1 file2<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">file1 file2<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>-r\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30b3\u30d4\u30fc\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ cp -r dir1 dir1_new<br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 dir1_new<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>13. cat<\/strong><\/h3>\n<p>cat\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u306b\u8868\u793a\u3059\u308b\uff08\u6a19\u6e96\u51fa\u529b\u3059\u308b\uff09<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\ncat\u3068\u306f\u3001concatenate(\u9023\u7d50\u3059\u308b)\u306e\u610f\u5473\u3067\u3001\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3059\u308c\u3070\u3001<span class=\"pink_span\">\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u9023\u7d50\u3057\u3066\u8868\u793a<\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>cat\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u8868\u793a<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ cat a.txt<br \/>\n<span class=\"white-span\">a<br \/>\nb<br \/>\nc<br \/>\nd<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>cat\u3067a.txt, b.txt\u3092\u9023\u7d50\u3057\u3066c.txt\u306b\u51fa\u529b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ cat a.txt b.txt &gt; c.txt<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>14. chmod<\/strong><\/h3>\n<p>chmod\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u6a29\u9650\u306b\u306f\u3001read(\u8aad\u8fbc\u307f)\u3001write(\u66f8\u304d\u8fbc\u307f)\u3001execute(\u5b9f\u884c)\u306e\u6a29\u9650\u304c\u3042\u308a\u3001<br \/>\nchmod \u25cb\u25cb\u25cb \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u3001\u30b0\u30eb\u30fc\u30d7\u3001\u305d\u306e\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3059\u308b\u6a29\u9650\u3092\u5909\u66f4\u3067\u304d\u308b\u3002<br \/>\n-R\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3068<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u305d\u306e\u4e2d\u8eab\u306b\u5bfe\u3057\u3066<\/span>\u3082\u6a29\u9650\u304c\u5909\u66f4\u3055\u308c\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>chmod\u3067file.txt\u306b\u5bfe\u3057\u3066\u3001\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ chmod 755 a.txt<br \/>\n[test@localhost ~]$ ls -l<br \/>\n\u5408\u8a08 0<br \/>\n<span class=\"white-span\">-rwxr-xr-x. 1 test test 0 12\u6708 8 14:25 a.txt <strong># \u6a29\u9650\u304crwx(\u30e6\u30fc\u30b6\u30fc)\u3001rx(\u30b0\u30eb\u30fc\u30d7)\u3001rx(\u305d\u306e\u4ed6)\u306b\u306a\u308b<\/strong><\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>chmod\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u3001\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ chmod -R 755 dir1\/<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>15. chown<\/strong><\/h3>\n<p>chown\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e<span class=\"pink_span\">\u6240\u6709\u8005\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092\u6307\u5b9a\u3057\u305f\u3082\u306e\u306b\u5909\u66f4\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nchown \u30e6\u30fc\u30b6\u30fc:\u30b0\u30eb\u30fc\u30d7 \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<br \/>\n-R\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u4e0e\u3059\u308b\u3068<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u305d\u306e\u4e2d\u8eab<\/span>\u3082\u540c\u3058\u3088\u3046\u306b\u6240\u6709\u8005\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>chown\u3067file.txt\u306b\u5bfe\u3057\u3066\u3001\u6240\u6709\u8005\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# chown test2:test2 \/home\/test\/a.txt<br \/>\n[root@localhost ~]# ls -l \/home\/test\/a.txt<br \/>\n<span class=\"white-span\">-rwxr-xr-x. 1 test2 test2 0 12\u6708 8 14:25 \/home\/test\/a.txt <strong># \u6240\u6709\u8005\u304ctest2\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u304ctest2\u306b\u306a\u308b<\/strong><\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>chown\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u3001\u6240\u6709\u8005\u3001\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# chown -R test2:test2 \/home\/test\/dir1<br \/>\n[root@localhost ~]# ls -l \/home\/test\/<br \/>\n<span class=\"white-span\">drwxr-xr-x. 2 test2 test2 6 12\u6708 8 14:27 dir1<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>16. su<\/strong><\/h3>\n<p>su\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u3092<span class=\"pink_span\">\u5225\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5909\u66f4\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nsu\u306b\u3001\u30cf\u30a4\u30d5\u30f3(-)\u3092\u3064\u3051\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001root\u30e6\u30fc\u30b6\u30fc\u306b<span class=\"pink_span\">\u30ed\u30b0\u30a4\u30f3\u3057<\/span>\u3001<br \/>\n\u30cf\u30a4\u30d5\u30f3(-)\u306a\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001<span class=\"pink_span\">\u30ed\u30b0\u30a4\u30f3\u306a\u3057\u3067<\/span>root\u30e6\u30fc\u30b6\u30fc\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u307e\u305f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u6307\u5b9a\u306a\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001<span class=\"pink_span\">root\u30e6\u30fc\u30b6\u30fc\uff08\u7ba1\u7406\u8005\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\uff09\u306b\u5909\u66f4\u3055\u308c\u308b\u3002<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>root\u30e6\u30fc\u30b6\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b(su -)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ su -<br \/>\n<span class=\"white-span\">\u30d1\u30b9\u30ef\u30fc\u30c9:<br \/>\n\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2021\/12\/09 (\u6728) 07:57:23 JST\u65e5\u6642 pts\/0<\/span><br \/>\n[root@localhost ~]#<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>test\u30e6\u30fc\u30b6\u30fc\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b(su - test)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# su - test<br \/>\n<span class=\"white-span\">\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2021\/12\/09 (\u6728) 16:03:44 JST 10.0.2.2\u304b\u3089\u958b\u59cb\u65e5\u6642 pts\/0<\/span><br \/>\n[test@localhost ~]$<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>17. sudo<\/strong><\/h3>\n<p>sudo\u306f\u3001root\u6a29\u9650(\u7ba1\u7406\u8005\u6a29\u9650)\u304c\u5fc5\u8981\u3067\u30b3\u30de\u30f3\u30c9\u3084\u30bf\u30b9\u30af\u3092<span class=\"pink_span\">\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u4e00\u822c\u30e6\u30fc\u30b6\u30fc\u3067\u3082\u7ba1\u7406\u8005\u6a29\u9650\u3067\u51e6\u7406\u3092\u5b9f\u884c\u3059\u308b\u306e\u3067\u3001\u53d6\u308a\u6271\u3044\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ sudo useradd test3<br \/>\n<span class=\"white-span\">[sudo] test \u306e\u30d1\u30b9\u30ef\u30fc\u30c9:<\/span><br \/>\n[test@localhost ~]$<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>18. less<\/strong><\/h3>\n<p>less\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u30b5\u30a4\u30ba\u306e\u5927\u304d\u306a\u30d5\u30a1\u30a4\u30eb\u3067\u3082\u4e2d\u8eab\u3092\u78ba\u8a8d\u3067\u304d\u308b\u3002<br \/>\nd\u30dc\u30bf\u30f3\u3067<span class=\"pink_span\">\u4e0b\u306b<\/span>\u3001u\u30dc\u30bf\u30f3\u3067<span class=\"pink_span\">\u4e0a\u306b<\/span>\u79fb\u52d5\u3057\u3066\u3001q\u3067\u753b\u9762\u64cd\u4f5c\u3092<span class=\"pink_span\">\u7d42\u4e86\u3059\u308b<\/span>\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ less file.txt<br \/>\na<br \/>\nb<br \/>\nc<br \/>\nd<br \/>\nefile.txt (END)<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>19. head<\/strong><\/h3>\n<p>head\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e<span class=\"pink_span\">\u6700\u521d\u306e\u4f55\u884c\u304b\u3092\u8868\u793a\u3057\u305f\u3044<\/span>\u5834\u5408\u306b\u7528\u3044\u308b\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001<span class=\"pink_span\">\u6700\u521d\u306e10\u884c<\/span>\u3092\u8868\u793a\u3057\u3066\u3001head -n \u25cb\u25cb\u3068\u3059\u308b\u3068\u8868\u793a\u3059\u308b<span class=\"pink_span\">\u884c\u6570\u3092\u5909\u66f4\u3067\u304d\u308b<\/span>\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>head\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u521d\u306e10\u884c\u3092\u8868\u793a\u3059\u308b(\u30c7\u30d5\u30a9\u30eb\u30c8)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ head file.txt<br \/>\n<span class=\"white-span\">1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\n5<br \/>\n6<br \/>\n7<br \/>\n8<br \/>\n9<br \/>\n10<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>head\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u521d\u306e5\u884c\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ head -n 5 file.txt<br \/>\n<span class=\"white-span\">1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\n5<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>20. tail<\/strong><\/h3>\n<p>\u3053\u308c\u306f\u3001head\u3068\u5bfe\u306b\u306a\u3063\u305f\u30b3\u30de\u30f3\u30c9\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306e<span class=\"pink_span\">\u672b\u5c3e\u304b\u3089\u306e\u4f55\u884c\u304b\u3092\u8868\u793a\u3057\u305f\u3044<\/span>\u5834\u5408\u306b\u7528\u3044\u308b\u3002<br \/>\n\u884c\u6570\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306b\u306f\u3001<span class=\"pink_span\">\u672b\u5c3e\u306e10\u884c<\/span>\u304c\u8868\u793a\u3055\u308c\u3001<br \/>\ntail -n 5\u3068\u3059\u308b\u3068\u3001<span class=\"pink_span\">\u672b\u5c3e\u306e5\u884c<\/span>\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>tail\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306e10\u884c\u3092\u8868\u793a(\u30c7\u30d5\u30a9\u30eb\u30c8)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ tail file.txt<br \/>\n<span class=\"white-span\">6<br \/>\n7<br \/>\n8<br \/>\n9<br \/>\n10<br \/>\n11<br \/>\n12<br \/>\n13<br \/>\n14<br \/>\n15<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>tail\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306e5\u884c\u3092\u8868\u793a(tail -n 5)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ tail -n 5 file.txt<br \/>\n<span class=\"white-span\">11<br \/>\n12<br \/>\n13<br \/>\n14<br \/>\n15<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>21. vi<\/strong><\/h3>\n<p>vi\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u8868\u793a\u3057\u3066\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u4fdd\u5b58\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3068\u5165\u529b\u30e2\u30fc\u30c9\u306b\u5206\u304b\u308c\u308b\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u3067\u306f\u3001<span class=\"pink_span\">\u884c\u3084\u6587\u5b57\u306e\u524a\u9664\u3084\u30da\u30fc\u30b9\u30c8<\/span><br \/>\n\u5165\u529b\u30e2\u30fc\u30c9\u3067\u306f\u3001<span class=\"pink_span\">\u6587\u5b57\u306e\u5165\u529b<\/span>\u3092\u4e3b\u306b\u884c\u3046\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u304b\u3089\u5165\u529b\u30e2\u30fc\u30c9\u306b\u79fb\u308b\u306b\u306f\u3001<span class=\"pink_span\">i\u30dc\u30bf\u30f3<\/span>\u3092\u62bc\u4e0b\u3059\u308b\u3002<br \/>\n\u5165\u529b\u30e2\u30fc\u30c9\u304b\u3089\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u306b\u79fb\u308b\u306b\u306f\u3001<span class=\"pink_span\">Esc\u30dc\u30bf\u30f3<\/span>\u3092\u62bc\u4e0b\u3059\u308b\u3002<br \/>\n\u7de8\u96c6\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3059\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u304b\u3089<span class=\"pink_span\">:wq\u3068\u3057\u3066Enter<\/span>\u3002<br \/>\n\u7de8\u96c6\u3057\u305f\u5185\u5bb9\u3092\u7834\u68c4\u3057\u3066\u7d42\u4e86\u3059\u308b\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u304b\u3089<span class=\"pink_span\">:q!\u3068\u3057\u3066Enter\u3092\u62bc\u4e0b\u3059\u308b<\/span>\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>vi\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ vi file.txt<br \/>\n<span class=\"white-span\">~<br \/>\n~<br \/>\n\"file.txt\" [\u65b0\u30d5\u30a1\u30a4\u30eb] <span style=\"float: right; color: white;\">0,0-1 \u5168\u3066<\/span><\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>i\u30dc\u30bf\u30f3\u3067\u7de8\u96c6\u30e2\u30fc\u30c9\u306b\u79fb\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\"><span class=\"white-span\">abc<br \/>\n~<br \/>\n~<br \/>\n-- \u633f\u5165 -- <span style=\"float: right; color: white;\">1,4 \u5168\u3066<\/span><\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>Esc\u3067\u30b3\u30de\u30f3\u30c9\u30e2\u30fc\u30c9\u306b\u79fb\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\"><span class=\"white-span\">abc<br \/>\n~<br \/>\n~<br \/>\n<span style=\"float: right; color: white;\">1,2 \u5168\u3066<\/span><\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>:wq\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u7d42\u4e86<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\"><span class=\"white-span\">abc<br \/>\n~<br \/>\n~<br \/>\n:wq<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>22. grep<\/strong><\/h3>\n<p>grep\u306f\u3001\u5165\u529b\u304b\u3089\u3001<span class=\"pink_span\">\u7279\u5b9a\u306e\u6587\u5b57\u3092\u542b\u3080\u884c\uff08\u3042\u308b\u3044\u306f\u542b\u307e\u306a\u3044\u884c\uff09\u3092\u53d6\u308a\u51fa\u3059<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\ngrep blue notepad.txt\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001notepad.txt\u30d5\u30a1\u30a4\u30eb\u304b\u3089blue\u3092\u542b\u3080\u884c\u3060\u3051\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u306e-v\u3092\u3064\u3051\u308b\u3068\u3001<span class=\"pink_span\">\u7279\u5b9a\u306e\u6587\u5b57\u3092\u542b\u307e\u306a\u3044\u884c\u3060\u3051<\/span>\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u7279\u5b9a\u306e\u6587\u5b57\u3092\u542b\u3080\u884c\u3092\u53d6\u308a\u51fa\u3059<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ grep apple file.txt<br \/>\n<span class=\"white-span\">apple<br \/>\napple pie<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u7279\u5b9a\u306e\u6587\u5b57\u3092\u542b\u3080\u884c\u4ee5\u5916\u3092\u53d6\u308a\u51fa\u3059<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ grep -v apple file.txt<br \/>\n<span class=\"white-span\">grape<br \/>\nlemon<br \/>\nbanana<br \/>\nmelon<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>23. find<\/strong><\/h3>\n<p>find\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u691c\u7d22\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nfind \u691c\u7d22\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u30aa\u30d7\u30b7\u30e7\u30f3 \u691c\u7d22\u5185\u5bb9<br \/>\n\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u6700\u3082\u3001\u591a\u3044\u306e\u306f\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u691c\u7d22\u3059\u308b\u3053\u3068\u3067\u3001<span class=\"pink_span\">-name<\/span>\u3092\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3002<br \/>\n\u307e\u305f\u3001\u524d\u65b9\u4e00\u81f4\u3001\u5f8c\u65b9\u4e00\u81f4\u3067\u691c\u7d22\u3057\u305f\u3044\u5834\u5408\u306b\u306f\u3001<span class=\"pink_span\">*(\u30a2\u30b9\u30bf\u30ea\u30b9\u30af)\u3092\u7528\u3044\u308b<\/span><\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ find . -name file1* # file1\u3067\u540d\u524d\u304c\u59cb\u307e\u308b\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u73fe\u5728\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u304b\u3089\u898b\u3064\u3051\u308b\u3002<br \/>\n<span class=\"white-span\">.\/dir1\/file1.txt<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>24. history<\/strong><\/h3>\n<p>history\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u904e\u53bb\u306b\u5229\u7528\u3057\u305f<span class=\"pink_span\">\u30b3\u30de\u30f3\u30c9\u306e\u5c65\u6b74\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u4f5c\u696d\u306e\u7279\u6027\u4e0a\u3001\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3057\u3066\u306f\u3001\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001history\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u904e\u53bb\u306b\u5b9f\u884c\u3055\u308c\u305f\u30b3\u30de\u30f3\u30c9\u3092\u53c2\u8003\u306b\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3042\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ history<br \/>\n<span class=\"white-span\">283 vi file.txt<br \/>\n284 vim file.txt<br \/>\n285 grep apple file.txt<br \/>\n286 grep -v apple file.txt<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>25. top<\/strong><\/h3>\n<p>top\u306f\u3001<span class=\"pink_span\">\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u4e00\u89a7\u3068\u305d\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u3069\u308c\u307b\u3069CPU\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u304b<\/span>\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u30ea\u30bd\u30fc\u30b9\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u3066\u3001\u3069\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u524a\u9664\u3059\u308c\u3070\u30ea\u30bd\u30fc\u30b9\u3092\u78ba\u4fdd\u3067\u304d\u308b\u306e\u304b\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306b\u7528\u3044\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ top<br \/>\n<span class=\"white-span\"><span class=\"white-span\">top - 17:06:18 up 2:46, 1 user, load average: 0.00, 0.00, 0.00<br \/>\nTasks: 101 total, 3 running, 98 sleeping, 0 stopped, 0 zombie<br \/>\n%Cpu(s): 5.6 us, 5.6 sy, 0.0 ni, 83.3 id, 0.0 wa, 5.6 hi, 0.0 si, 0.0<br \/>\nMiB Mem : 809.2 total, 318.2 free, 161.3 used, 329.7 buff\/cache<br \/>\nMiB Swap: 820.0 total, 820.0 free, 0.0 used. 519.5 avail Mem<\/span><\/span>PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+<br \/>\n1 root 20 0 174668 13264 8444 S 0.0 1.6 0:01.83<\/div>\n<h2 class=\"title-border\"><strong>\u899a\u3048\u3066\u304a\u304d\u305f\u3044\u30b3\u30de\u30f3\u30c9\uff12\uff15\u9078<\/strong><\/h2>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u5fc5\u9808\u3067\u306f\u306a\u3044\u304c\u899a\u3048\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u3044\u3044\u30b3\u30de\u30f3\u30c9\u3092\uff12\uff15\u500b\u7d39\u4ecb\u3059\u308b\u3002<\/p>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>26. useradd, userdel, usermod<\/strong><\/h3>\n<p>useradd, userdel, usermod\u306f\u3001<span class=\"pink_span\">\u30e6\u30fc\u30b6\u30fc\u306e\u8ffd\u52a0\u3001\u524a\u9664\u3001\u60c5\u5831\u306e\u5909\u66f4\u3092\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nroot\u30e6\u30fc\u30b6\u30fc\u3067\u306a\u3044\u3068\u5b9f\u884c\u3067\u304d\u306a\u3044\u3002<br \/>\n\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\/etc\/passwd\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>useradd\u30b3\u30de\u30f3\u30c9\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u8ffd\u52a0\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# useradd my_user<br \/>\n[root@localhost ~]# cat \/etc\/passwd | grep my_user<br \/>\n<span class=\"white-span\">my_user:x:1004:1004::\/home\/my_user:\/bin\/bash<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>usermod\u30b3\u30de\u30f3\u30c9\u3067\u30e6\u30fc\u30b6\u30fc\u306b\u30b3\u30e1\u30f3\u30c8\u3092\u8ffd\u52a0\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# usermod -c \"Add Comment\" my_user<br \/>\n[root@localhost ~]# cat \/etc\/passwd | grep my_user<br \/>\n<span class=\"white-span\">my_user:x:1004:1004:Add Comment:\/home\/my_user:\/bin\/bash<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>userdel\u30b3\u30de\u30f3\u30c9\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u524a\u9664\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# userdel my_user<br \/>\n[root@localhost ~]# cat \/etc\/passwd | grep my_user<br \/>\n[root@localhost ~]#<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>27. passwd<\/strong><\/h3>\n<p>passwd\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30ed\u30b0\u30a4\u30f3\u306b\u4f7f\u7528\u3059\u308b<span class=\"pink_span\">\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nroot\u30e6\u30fc\u30b6\u30fc\u3067\u3001passwd \u30e6\u30fc\u30b6\u30fc\u540d\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3001<br \/>\n\u30e6\u30fc\u30b6\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001passwd\u3092\u5b9f\u884c\u3059\u308b\u3068\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>root\u304b\u3089passwd\u30b3\u30de\u30f3\u30c9\u3067\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# passwd test<br \/>\n<span class=\"white-span\">\u30e6\u30fc\u30b6\u30fc test \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3002<br \/>\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9:<br \/>\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044:<br \/>\npasswd: \u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u304c\u6b63\u3057\u304f\u66f4\u65b0\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001passwd\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost ~]# su - test<br \/>\n<span class=\"white-span\">\u6700\u7d42\u30ed\u30b0\u30a4\u30f3: 2021\/12\/14 (\u706b) 19:23:33 JST 10.0.2.2\u304b\u3089\u958b\u59cb\u65e5\u6642 pts\/0<\/span><br \/>\n[test@localhost ~]$ passwd<br \/>\n<span class=\"white-span\">\u30e6\u30fc\u30b6\u30fc test \u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3002<br \/>\nCurrent password:<br \/>\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9:<br \/>\n\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u518d\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044:<br \/>\npasswd: \u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c8\u30fc\u30af\u30f3\u304c\u6b63\u3057\u304f\u66f4\u65b0\u3067\u304d\u307e\u3057\u305f\u3002<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>28. alias, unalias<\/strong><\/h3>\n<p>alias\u306f<span class=\"pink_span\">\u30b3\u30de\u30f3\u30c9\u306b\u5225\u540d\u3092\u3064\u3051\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3001unalias\u306f<span class=\"pink_span\">\u3064\u3051\u305f\u5225\u540d\u3092\u524a\u9664\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nalias \u25cb\u25cb=\"\u30b3\u30de\u30f3\u30c9\"\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u5b9a\u306e\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u3057\u3066\u5f15\u6570\u3064\u304d\u3067\u5225\u540d\u3092\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\nunalias \u25cb\u25cb\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u5225\u540d\u3092\u524a\u9664\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>alias\u3060\u3051\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u5225\u540d\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ alias<br \/>\n<span class=\"white-span\">alias egrep='egrep --color=auto'<br \/>\nalias fgrep='fgrep --color=auto'<br \/>\n:<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>alias\u3067\u5225\u540d\u3092\u4ed8\u4e0e\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ alias la=\"ls -a\"<br \/>\n[test@localhost ~]$ la<br \/>\n<span class=\"white-span\">. .bash_history .bash_profile .config .viminfo dir1 tmp.log<br \/>\n.. .bash_logout .bashrc .lesshst day7_exam file.txt<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>unalias\u3067\u5225\u540d\u3092\u524a\u9664\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ unalias la<br \/>\n[test@localhost ~]$ la<br \/>\n<span class=\"white-span\">-bash: la: \u30b3\u30de\u30f3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>29. export, unset<\/strong><\/h3>\n<p>export\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u4f5c\u6210\u3057\u305f\u30b7\u30a7\u30eb\u5909\u6570\u3092\u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nunset\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30b7\u30a7\u30eb\u5909\u6570\u3084\u74b0\u5883\u5909\u6570\u3092\u524a\u9664\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>export\u3067\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ user=\"Taro\"<br \/>\n[test@localhost ~]$ export user<br \/>\n[test@localhost ~]$ export user=\"Taro\" # \u30b7\u30a7\u30eb\u5909\u6570\u306e\u5ba3\u8a00\u3092\u3057\u3066\u305d\u306e\u307e\u307e\u4e00\u5ea6\u306b\u8a2d\u5b9a\u3059\u308b<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>30. which<\/strong><\/h3>\n<p>which\u306f\u3001<span class=\"pink_span\">\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u4f53\u304c\u3069\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b58\u5728\u3059\u308b\u306e\u304b\u3001\u305d\u306e\u30d1\u30b9\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nwhich \u30b3\u30de\u30f3\u30c9\u540d\u3068\u3057\u3066\u3001\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>which\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ which echo<br \/>\n<span class=\"white-span\">\/usr\/bin\/echo<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>31. uname<\/strong><\/h3>\n<p>uname\u306f\u3001<span class=\"pink_span\">OS\u306e\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nuname -a\u3092\u7528\u3044\u308b\u3068\u3001\u3088\u308a\u8a73\u7d30\u306a\u60c5\u5831\u3092\u8868\u793a\u3067\u304d\u3001\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u5229\u7528\u3055\u308c\u3084\u3059\u3044<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>uname\u3067OS\u60c5\u5831\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ uname<br \/>\n<span class=\"white-span\">Linux<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>uname -a\u3067\u8a73\u7d30\u3092\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ uname -a<br \/>\n<span class=\"white-span\">Linux localhost.localdomain 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64 x86_64 x86_64 GNU\/Linux<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>32. wget<\/strong><\/h3>\n<p>wget\u306f\u3001world wide web get\u306e\u3053\u3068\u3067\u3001<span class=\"pink_span\">\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3092\u7d4c\u7531\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<\/p>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ wget https:\/\/www.example.com\/\u25cb\u25cb # \u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>33. df<\/strong><\/h3>\n<p>df\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u4f7f\u7528\u3057\u3066\u3044\u308b<span class=\"pink_span\">\u30c7\u30a3\u30b9\u30af\u306e\u5bb9\u91cf\u3084\u4f7f\u7528\u7387\u3068\u4f7f\u7528\u53ef\u80fd\u9818\u57df\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b<br \/>\ndf -h \u3092\u3064\u3051\u308b\u3068\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3067\u304d\u308b<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>df\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ df<br \/>\n<span class=\"white-span\" style=\"font-family: monospace;\">\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9 1K-\u30d6\u30ed\u30c3\u30af \u4f7f\u7528 \u4f7f\u7528\u53ef \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e<br \/>\ndevtmpfs 395172 0 395172 0% \/dev<br \/>\ntmpfs 414296 0 414296 0% \/dev\/shm<br \/>\ntmpfs 414296 5612 408684 2% \/run<br \/>\ntmpfs 414296 0 414296 0% \/sys\/fs\/cgroup<br \/>\n\/dev\/mapper\/cl-root 6486016 1625280 4860736 26% \/<br \/>\n\/dev\/sda1 1038336 217920 820416 21% \/boot<br \/>\ntmpfs 82856 0 82856 0% \/run\/user\/1005<\/span><\/div>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ df -h<br \/>\n<span class=\"white-span\" style=\"font-family: monospace;\">\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9 \u30b5\u30a4\u30ba \u4f7f\u7528 \u6b8b\u308a \u4f7f\u7528% \u30de\u30a6\u30f3\u30c8\u4f4d\u7f6e<br \/>\ndevtmpfs 386M 0 386M 0% \/dev<br \/>\ntmpfs 405M 0 405M 0% \/dev\/shm<br \/>\ntmpfs 405M 5.5M 400M 2% \/run<br \/>\ntmpfs 405M 0 405M 0% \/sys\/fs\/cgroup<br \/>\n\/dev\/mapper\/cl-root 6.2G 1.6G 4.7G 26% \/<br \/>\n\/dev\/sda1 1014M 213M 802M 21% \/boot<br \/>\ntmpfs 81M 0 81M 0% \/run\/user\/1005<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>34. du<\/strong><\/h3>\n<p>du\u306f\u3001disu usage\u306e\u610f\u5473\u3067\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f7f\u7528\u91cf\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n-h\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4eba\u9593\u304c\u8aad\u307f\u3084\u3059\u3044\u5f62\u5f0f\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\ndu -sh .\/*\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001<span class=\"pink_span\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5bb9\u91cf\u306f\u5408\u8a08\u304c\u8868\u793a\u3055\u308c<\/span>\u3001\u975e\u5e38\u306b\u898b\u3084\u3059\u304f\u306a\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>du -h\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost usr]# du -h | head -7<br \/>\n<span class=\"white-span\">54M .\/bin<br \/>\n38M .\/sbin<br \/>\n0 .\/lib\/debug\/usr\/bin<br \/>\n0 .\/lib\/debug\/usr\/sbin<br \/>\n0 .\/lib\/debug\/usr\/lib<br \/>\n0 .\/lib\/debug\/usr\/lib64<br \/>\n0 .\/lib\/debug\/usr<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>du -sh\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[root@localhost usr]# du -sh .\/*<br \/>\n<span class=\"white-span\">54M .\/bin<br \/>\n0 .\/games<br \/>\n44K .\/include<br \/>\n800M .\/lib<br \/>\n161M .\/lib64<br \/>\n7.1M .\/libexec<br \/>\n0 .\/local<br \/>\n38M .\/sbin<br \/>\n230M .\/share<br \/>\n0 .\/src<br \/>\n0 .\/tmp<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>35. jobs<\/strong><\/h3>\n<p>jobs\u306f\u3001<span class=\"pink_span\">\u73fe\u5728\u30e6\u30fc\u30b6\u30fc\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u30b7\u30a7\u30eb\u306e\u52d5\u304b\u3057\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<\/p>\n<div class=\"terminal_box\">[root@localhost usr]# jobs<br \/>\n<span class=\"white-span\">[1]+ \u505c\u6b62 sleep 100<\/span><\/div>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>36. ps<\/strong><\/h3>\n<p>ps\u306f\u3001<span class=\"pink_span\">\u30d7\u30ed\u30bb\u30b9\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n-e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\u3001\u63a5\u7d9a\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u6301\u3063\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u3060\u3051\u3067\u306a\u304f\u3001\u5168\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u793a\u3067\u304d\u308b\u3002<br \/>\n-f\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3068\u3001\u8a73\u7d30\u306a\u60c5\u5831\u3082\u8868\u793a\u3067\u304d\u308b\u3002<br \/>\n<span class=\"pink_span\">ps -ef\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>ps\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost tmp]$ ps<br \/>\n<span class=\"white-span\" style=\"font-family: monospace;\"> PID TTY TIME CMD<br \/>\n1466 pts\/0 00:00:00 bash<br \/>\n1620 pts\/0 00:00:00 ps<\/span><\/div>\n<div class=\"terminal_box\">[ec2-user@localhost tmp]$ ps -ef<br \/>\n<span class=\"white-span\" style=\"font-family: monospace;\">UID PID PPID C STIME TTY TIME CMD<br \/>\nroot 1 0 0 18:34 ? 00:00:03 \/usr\/lib\/systemd\/systemd -<br \/>\nroot 2 0 0 18:34 ? 00:00:00 [kthreadd]<br \/>\nroot 3 2 0 18:34 ? 00:00:00 [rcu_gp]<br \/>\nroot 4 2 0 18:34 ? 00:00:00 [rcu_par_gp]<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>37. kill<\/strong><\/h3>\n<p>kill\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u30d7\u30ed\u30bb\u30b9\u306b\u4fe1\u53f7\u3092\u9001\u3063\u3066\u505c\u6b62\u3084\u518d\u8d77\u52d5\u3092\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u305a\u306b\u5b9f\u884c\u3057\u305f\u5834\u5408\u306f\u3001\u30b7\u30b0\u30ca\u30eb\u756a\u53f715\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u5b89\u5168\u306b\u7d42\u4e86\u3055\u305b\u308b\u3002<br \/>\nkill -9(-SIGKILL)\u3068\u3057\u305f\u5834\u5408\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u5f37\u5236\u505c\u6b62\u3059\u308b\u3002<br \/>\nkill -19(-STOP)\u3068\u3057\u305f\u5834\u5408\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u3092\u4e00\u6642\u505c\u6b62\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>kill\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ kill 1773 # \u30d7\u30ed\u30bb\u30b9ID1773\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3059\u308b<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>kil -9\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u7d50\u679c<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ kill -9 1776 # \u30d7\u30ed\u30bb\u30b9ID1776\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u5f37\u5236\u7d42\u4e86\u3059\u308b<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>38. wc<\/strong><\/h3>\n<p>wc\u306f\u3001word count\u306e\u3053\u3068\u3067\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u6570\u3001\u8a18\u8ff0\u3055\u308c\u3066\u3044\u308b\u5358\u8a9e\u306e\u6570\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nwc -l \u3067\u3001\u884c\u6570<br \/>\nwc -w \u3067\u3001\u5358\u8a9e\u6570<br \/>\nwc -m \u3067\u3001\u6587\u5b57\u6570<br \/>\n\u3092\u53d6\u5f97\u3059\u308b\u3002<\/p>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ wc long.txt<br \/>\n<span class=\"white-span\">37 207 1000 long.txt # 37\u884c\u3001\u5358\u8a9e\u6570207\u30011000\u30d0\u30a4\u30c8<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>39. awk<\/strong><\/h3>\n<p>awk\u30b3\u30de\u30f3\u30c9\u306f\u3001<span class=\"pink_span\">\u6570\u884c\u3067\u30c6\u30ad\u30b9\u30c8\u51e6\u7406\u3092\u3057\u305f\u3044\u5834\u5408\u306b\u7528\u3044\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u6a19\u6e96\u51fa\u529b\u3084\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u3066\u3001\u305d\u306e\u4e00\u90e8\u3092\u53d6\u308a\u51fa\u3059\u969b\u306b\u7528\u3044\u3089\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u7a7a\u767d\u3067\u533a\u5207\u3089\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u306e1\u5217\u76ee\u30683\u5217\u76ee\u3060\u3051\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u7528\u3044\u3089\u308c\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>awk\u3067\u53d6\u308a\u51fa\u3059\u30d5\u30a1\u30a4\u30eb<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ cat sample.txt<br \/>\n<span class=\"white-span\">1 apple 100\u5186<br \/>\n2 banana 200\u5186<br \/>\n3 lemon 300\u5186<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>awk\u3067\u30d5\u30a1\u30a4\u30eb\u306e1\u5217\u76ee\u30682\u5217\u76ee\u3092\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u3066\u53d6\u308a\u51fa\u3059\uff08'print $1 \" \" $2'\uff09<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ awk '{print $1 \" \" $2}' sample.txt<br \/>\n<span class=\"white-span\">1 apple<br \/>\n2 banana<br \/>\n3 lemon<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>40. cut<\/strong><\/h3>\n<p>cut\u306f\u3001\u6a19\u6e96\u51fa\u529b\u3084\u30d5\u30a1\u30a4\u30eb\u304b\u3089<span class=\"pink_span\">\u4e00\u90e8\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u5834\u5408<\/span>\u306b\u7528\u3044\u308b\u3002<br \/>\ncut -c\u3067\u3001\u4f55\u6587\u5b57\u76ee\u3092\u53d6\u308a\u51fa\u3059\u306e\u304b\u6307\u5b9a\u3059\u308b\u3002<br \/>\ncut -f -d\u3067\u3001\u3069\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u53d6\u308a\u51fa\u3059\u306e\u304b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>cut -c\u3067\u4f55\u6587\u5b57\u76ee\u304b\u6307\u5b9a\u3057\u3066\u53d6\u308a\u51fa\u3059\uff08\u4f8b\u306e\u5834\u54081\u6587\u5b57\u76ee\u30686\u6587\u5b57\u76ee\uff09<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ echo '?foobar' | cut -c 1,6<br \/>\n<span class=\"white-span\">?a<\/span><br \/>\n[ec2-user@localhost ~]$ echo '?foobar' | cut -c 1-6<br \/>\n<span class=\"white-span\">?fooba<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>cut -d -f\u3067\u30ab\u30f3\u30de\u533a\u5207\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u4e00\u90e8\u306e\u5217\u3092\u53d6\u308a\u51fa\u3059<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ cat sample.txt<br \/>\n<span class=\"white-span\">1,apple,100\u5186<br \/>\n2,banana,200\u5186<br \/>\n3,lemon,300\u5186<\/span><br \/>\n[ec2-user@localhost ~]$ cut -d ',' -f 2,3 sample.txt<br \/>\n<span class=\"white-span\">apple,100\u5186<br \/>\nbanana,200\u5186<br \/>\nlemon,300\u5186<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>41. diff<\/strong><\/h3>\n<p>diff\u306f\u30012\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6bd4\u8f03\u3057\u3066\u3001<span class=\"pink_span\">\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u884c\u3092\u62bd\u51fa\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\ndiff \u30d5\u30a1\u30a4\u30eb1 \u30d5\u30a1\u30a4\u30eb2\u306e\u3088\u3046\u306a\u5f62\u3067\u3001<br \/>\n\u30d5\u30a1\u30a4\u30eb\u30922\u3064\u5f15\u6570\u306b\u3068\u3063\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>diff\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c(3,4\u884c\u76ee\u304c\u7570\u306a\u308b\u3053\u3068\u304c\u308f\u304b\u308b)<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ cat sample1.txt<br \/>\n<span class=\"white-span\">Tokyo<br \/>\nOsaka<br \/>\nNagoya<br \/>\nSendai<br \/>\nSapporo<\/span><br \/>\n[ec2-user@localhost ~]$ cat sample2.txt<br \/>\n<span class=\"white-span\">Tokyo<br \/>\nOsaka<br \/>\nFukuoka<br \/>\nYokohama<br \/>\nSapporo<\/span><br \/>\n[ec2-user@localhost ~]$ diff sample1.txt sample2.txt<br \/>\n<span class=\"white-span\">3,4c3,4<br \/>\n&lt; Nagoya<br \/>\n&lt; Sendai --- &gt; Fukuoka<br \/>\n&gt; Yokohama<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>42. ssh<\/strong><\/h3>\n<p>ssh\u306f\u3001\u5916\u90e8\u306e\u30b5\u30fc\u30d0\u30fc\u306b<span class=\"pink_span\">ssh\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u63a5\u7d9a\u3092\u3059\u308b<\/span>\u5834\u5408\u306b\u7528\u3044\u308b\u3002<br \/>\n-p: \u30dd\u30fc\u30c8\u756a\u53f7\u306e\u6307\u5b9a<br \/>\n-i: \u79d8\u5bc6\u9375\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a<br \/>\n\u3092\u884c\u3046<\/p>\n<div class=\"terminal_box\">ssh \u2013p 11000 test@192.111.11.11 # 192.111.11.11\u306e\u30a2\u30c9\u30ec\u30b9\u306btest\u30e6\u30fc\u30b6\u306711000\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u7528\u3044\u3066ssh\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u63a5\u7d9a\u3059\u308b<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>43. scp<\/strong><\/h3>\n<p>scp\u306f\u3001SSH\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u306e\u9001\u4fe1\u3092\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n-p: \u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u4fdd\u6301\u3057\u305f\u307e\u307e\u30b3\u30d4\u30fc<br \/>\n-r: \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u3092\u518d\u5e30\u7684\u306b\u30b3\u30d4\u30fc<br \/>\n-P: \u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a<\/p>\n<div class=\"terminal_box\">scp \u30b3\u30d4\u30fc\u5143\u30d5\u30a1\u30a4\u30eb [\u30e6\u30fc\u30b6\u540d@]\u30b3\u30d4\u30fc\u5148\u30db\u30b9\u30c8:[\u30b3\u30d4\u30fc\u5148\u30d5\u30a1\u30a4\u30eb\u540d]<br \/>\n\u4f8b) scp \/etc\/file sample.com:\/tmp\/file<\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>44. sed<\/strong><\/h3>\n<p>sed\u306f\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u3053\u3068\u3067\u3001<span class=\"pink_span\">\u30c6\u30ad\u30b9\u30c8\u3092\u4e00\u62ec\u3067\u7de8\u96c6\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n\u4e00\u90e8\u306e\u884c\u3092\u524a\u9664\u3057\u305f\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u6587\u5b57\u5217\u3092\u5225\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u5834\u5408\u306a\u3069\u306b\u7528\u3044\u3089\u308c\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306e2\u884c\u76ee\u30683\u884c\u76ee\u3092\u524a\u9664\u3057\u3066\u6a19\u6e96\u51fa\u529b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ sed \"2,3d\" file.txt<br \/>\n<span class=\"white-span\">1<br \/>\n4<br \/>\n5<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u306eabc\u3092ABC\u306b\u5909\u63db\u3057\u3066\u6a19\u6e96\u51fa\u529b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[ec2-user@localhost ~]$ sed \"s\/abc\/ABC\/g\" file.txt<br \/>\n<span class=\"white-span\">ABC<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>45. xargs<\/strong><\/h3>\n<p>xargs\u30b3\u30de\u30f3\u30c9\u306f\u3001\u4ed6\u306e\u30b3\u30de\u30f3\u30c9\u306e\u6a19\u6e96\u51fa\u529b\u7d50\u679c\u3092<span class=\"pink_span\">\u5225\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5f15\u6570\u306b\u6e21\u3059<\/span>\u5834\u5408\u306b\u7528\u3044\u308b\u3002<br \/>\n|(\u30d1\u30a4\u30d7)\u306e\u5f8c\u306b\u3001xargs\u3092\u7528\u3044\u3066\u3001\u5229\u7528\u3059\u308b\u3002<br \/>\n<span class=\"pink_span\">-I\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7528\u3044\u308b\u3068\u3001\u6a19\u6e96\u51fa\u529b\u306b\u5225\u540d\u3092\u4e0e\u3048<\/span>\u3001\u5909\u6570\u5316\u3057\u3066\u5b9f\u884c\u3067\u304d\u308b\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>xargs\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">file1 file2 file3<\/span><br \/>\n[test@localhost ~]$ ls | xargs rm # ls\u306e\u7d50\u679c\u304crm\u306e\u5f15\u6570\u3068\u3057\u3066\u6e21\u3055\u308c\u3001rm file1 file2 file3 \u304c\u5b9f\u884c\u3055\u308c\u308b<br \/>\n[test@localhost ~]$ ls<\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li><strong>-I\u3067\u5f15\u6570\u306b\u5225\u540d\u3092\u4e0e\u3048\u308b<\/strong><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ date \"+%Y\/%m\/%d %H:%M:%S\" -d \"1 years ago\"<br \/>\n<span class=\"white-span\">2021\/01\/07 15:18:11<\/span><br \/>\n[test@localhost ~]$ date \"+%Y\/%m\/%d %H:%M:%S\" -d \"1 years ago\" | xargs -I @ touch -d \"@\" tmp.txt<br \/>\n[test@localhost ~]$ ls -l tmp.txt<br \/>\n<span class=\"white-span\">-rw-rw-r--. 1 test test 0 1\u6708 7 2021 tmp.txt<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>46. ping<\/strong><\/h3>\n<p>ping\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u3084\u30db\u30b9\u30c8\u540d\u3092\u6307\u5b9a\u3057\u3066\u3001ICMP\u30d7\u30ed\u30c8\u30b3\u30eb\u3067<span class=\"pink_span\">\u6307\u5b9a\u5148\u306b\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u304c\u758e\u901a\u3059\u308b\u306e\u304b\u78ba\u8a8d\u3092\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nping6\u306f\u3001IPv6\u306e\u30a2\u30c9\u30ec\u30b9\u3078\u306e\u758e\u901a\u78ba\u8a8d\u3092\u884c\u3046<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ ping google.com<br \/>\n<span class=\"white-span\">PING google.com (172.217.26.238) 56(84) bytes of data.<br \/>\n64 bytes from nrt12s51-in-f14.1e100.net (172.217.26.238): icmp_seq=1 ttl=114 time=10.9 ms<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>47. tracepath<\/strong><\/h3>\n<p>tracepath\u306f\u3001IP\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30db\u30b9\u30c8\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9b\u5148\u307e\u3067<span class=\"pink_span\">UDP\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u901a\u3063\u305f\u30eb\u30fc\u30c8\uff08\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\uff09\u306e\u30a2\u30c9\u30ec\u30b9<\/span>\u3092\u8868\u793a\u3059\u308b<br \/>\n\u7d4c\u8def\u4e0a\u306e\u3069\u3053\u307e\u3067\u5230\u9054\u3057\u3066\u3069\u3053\u306b\u554f\u984c\u304c\u3042\u308b\u306e\u304b\u8abf\u3079\u305f\u3044\u5834\u5408\u306b\u7528\u3044\u308b\u3002<br \/>\n-n\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001\u30db\u30b9\u30c8\u540d\u3092IP\u30a2\u30c9\u30ec\u30b9\u306b\u3057\u3066\u8868\u793a\u3059\u308b<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ tracepath -n google.com<br \/>\n<span class=\"white-span\"> 1?: [LOCALHOST] pmtu 1500<br \/>\n1: 10.0.2.2 0.315ms<br \/>\n1: 10.0.2.2 0.470ms<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>48. tar<\/strong><\/h3>\n<p>tar(\u30bf\u30fc)\u306f\u3001<span class=\"pink_span\">\u30d5\u30a1\u30a4\u30eb\u3092\u5727\u7e2e\u30fb\u89e3\u7b54\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n-f: \u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a<br \/>\n-c: \u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e<br \/>\n-x: \u30d5\u30a1\u30a4\u30eb\u306e\u89e3\u51cd<br \/>\n-v: \u51e6\u7406\u306e\u8a73\u7d30\u3092\u8868\u793a<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>\u30d5\u30a1\u30a4\u30eb\u306e\u5727\u7e2e<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ tar -cvf tmp.txt.tar tmp.txt<br \/>\n<span class=\"white-span\">tmp.txt<\/span><br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">tmp.txt tmp.txt.tar<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>\u30d5\u30a1\u30a4\u30eb\u306e\u89e3\u51cd<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">tmp.txt.tar<\/span><br \/>\n[test@localhost ~]$ tar -xvf tmp.txt.tar<br \/>\n<span class=\"white-span\">tmp.txt<\/span><br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">tmp.txt tmp.txt.tar<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>49. zip, unzip<\/strong><\/h3>\n<p>zip, unzip\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092<span class=\"pink_span\">zip\u5f62\u5f0f\u3067\u5727\u7e2e\u30fb\u89e3\u51cd\u3059\u308b<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\nzip\u306fwindows\u3067\u7279\u306b\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u3001\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u3042\u308b\u3002<br \/>\n-r\u3092\u7528\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u8eab\u3092\u307e\u3068\u3081\u3066\u5727\u7e2e\u3067\u304d\u308b<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>zip\u5f62\u5f0f\u306b\u5727\u7e2e<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1<\/span><br \/>\n[test@localhost ~]$ zip -r dir1.zip dir1\/<br \/>\n<span class=\"white-span\"> adding: dir1\/ (stored 0%)<br \/>\nadding: dir1\/file1 (stored 0%)<br \/>\nadding: dir1\/file2 (stored 0%)<br \/>\nadding: dir1\/file3 (stored 0%)<\/span><br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 dir1.zip<\/span><\/div>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>zip\u5f62\u5f0f\u3092\u89e3\u51cd<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<div class=\"terminal_box\">[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1.zip<\/span><br \/>\n[test@localhost ~]$ unzip dir1.zip<br \/>\n<span class=\"white-span\">Archive: dir1.zip<br \/>\ncreating: dir1\/<br \/>\nextracting: dir1\/file1<br \/>\nextracting: dir1\/file2<br \/>\nextracting: dir1\/file3<\/span><br \/>\n[test@localhost ~]$ ls<br \/>\n<span class=\"white-span\">dir1 dir1.zip<\/span><\/div>\n<hr \/>\n<h3 class=\"ranking-linux\" style=\"font-size: 1.3em;\"><strong>50. shutdown<\/strong><\/h3>\n<p>shutdown \u306f\u3001OS\u306e<span class=\"pink_span\">\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3084\u518d\u8d77\u52d5\u3092\u884c\u3046<\/span>\u30b3\u30de\u30f3\u30c9\u3067\u3042\u308b\u3002<br \/>\n-h\u3067\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3092\u884c\u3044\u3001-r\u3067\u518d\u8d77\u52d5\u3092\u3059\u308b<br \/>\nshutdown -h now\u3068\u3059\u308b\u3068\u3001\u3059\u3050\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3055\u308c\u308b\u3002<\/p>\n<div class=\"terminal_box\">[test@localhost ~]$ shtudown -h now # \u3059\u3050\u306b\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3055\u308c\u308b<br \/>\n[test@localhost ~]$ shtudown -r now # \u3059\u3050\u306b\u518d\u8d77\u52d5\u3055\u308c\u308b<\/div>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>[rtoc_mokuji title=\"\" title_display=\"\" heading=\"h3\" list_h2_type=\"\" list_h3_type=\"\" display=\"\" frame_design=\"\" [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1154,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[228,219],"tags":[],"class_list":{"0":"post-3875","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"category-it-programming","9":"entry"},"uagb_featured_image_src":{"full":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",1000,667,false],"thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1-150x150.jpg",150,150,true],"medium":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1-300x200.jpg",300,200,true],"medium_large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1-768x512.jpg",768,512,true],"large":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",1000,667,false],"1536x1536":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",1000,667,false],"2048x2048":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",1000,667,false],"home-middle":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",525,350,false],"home-top":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",630,420,false],"sidebar-thumbnail":["https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2019\/08\/shutterstock_634316555-1.jpg",100,67,false]},"uagb_author_info":{"display_name":"9nmatsumoto","author_link":"https:\/\/www.nblog09.com\/w\/author\/9nmatsumoto\/"},"uagb_comment_info":2,"uagb_excerpt":"[rtoc_mokuji title=\"\" title_display=\"\" heading=\"h3\" lis&hellip;","_links":{"self":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/3875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/comments?post=3875"}],"version-history":[{"count":107,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/3875\/revisions"}],"predecessor-version":[{"id":4222,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/3875\/revisions\/4222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media\/1154"}],"wp:attachment":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media?parent=3875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/categories?post=3875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/tags?post=3875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}