{"id":87,"date":"2016-02-25T14:31:14","date_gmt":"2016-02-25T05:31:14","guid":{"rendered":"https:\/\/iwako.pgw.jp\/?p=87"},"modified":"2019-03-28T12:42:10","modified_gmt":"2019-03-28T03:42:10","slug":"%e7%8e%96-%e8%a1%a8%e7%a4%ba%e4%b8%8a%e3%81%ae%e7%b4%b0%e3%81%8b%e3%81%84%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/iwako.pgw.jp\/?p=87","title":{"rendered":"\u7396-\u8868\u793a\u4e0a\u306e\u7d30\u304b\u3044\u8a2d\u5b9a"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-88\" src=\"https:\/\/iwako.pgw.jp\/wp-content\/uploads\/2016\/02\/lslall.png\" alt=\"lslall\" width=\"839\" height=\"564\" \/>\u3055\u3066\u3001\u8868\u793a\u4e0a\u306e\u3082\u3046\u5c11\u3057\u7d30\u304b\u3044\u8a2d\u5b9a\u3092\u3057\u3066\u3086\u304f\u4e0a\u3067\u3001\u6700\u521d\u306b\u826f\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u3092\u89ba\u3048\u3066\u304a\u304d\u305f\u3044\u3002<br \/>\n\u300c\u8868\u793a\u4e0a\u306e\u3082\u3046\u5c11\u3057\u7d30\u304b\u3044\u300d\u3068\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u8868\u793a\u3092\u898b\u3084\u3059\u304f\u3057\u3066\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3002<br \/>\n\u30fb\u30b3\u30de\u30f3\u30c9\u306e\u6a5f\u80fd<br \/>\n\u3044\uff1a\u30b3\u30de\u30f3\u30c9<br \/>\n\u308d\uff1a\u4f7f\u7528\u4f8b<br \/>\n\u306f\uff1a\u5099\u8003<br \/>\n\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u898b\u308b\u3002<br \/>\nls<br \/>\nls hoge\/<\/p>\n<p>\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u79fb\u52d5<br \/>\ncd<br \/>\ncd hoge<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<br \/>\ntouch<br \/>\ntouch index.php<\/p>\n<p>\u30fb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210<br \/>\nmkdir<br \/>\nmkdir piyo<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5<br \/>\nmv<br \/>\nmv index.html hoge\/<br \/>\n[\u79fb\u52d5\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u3000\u79fb\u52d5\u5148] \u306e\u9806\u306b\u8a18\u8ff0\uff08\u540d\u524d\u306e\u8b8a\u66f4\u306b\u3082\u4f7f\u3048\u308b\uff09<br \/>\n[\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3000\u8b8a\u66f4\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u540d]<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30eb\u3092\u95b2\u89bd<br \/>\ncat<br \/>\nless<br \/>\n\u4ed6\u306b\u3082\u3042\u308b\u3002\u305d\u308c\u305e\u308c\u64e7\u52d5\u304c\u9055\u3046\u3002\u8a73\u3057\u304f\u306fggrks<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc<br \/>\ncp<br \/>\ncp index.html index2.php<\/p>\n<p>\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u524a\u9664<br \/>\nrm<br \/>\nrm index.php<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u524a\u9664\u306f<br \/>\nrm -r .\/hoge\/<\/p>\n<p>\u30fbping\u3092\u98db\u3070\u3059<br \/>\nping<br \/>\nping www.yahoo.co.jp<br \/>\nping 192.168.1.1<br \/>\nctrl+c\u3067\u30ad\u30e3\u30f3\u30bb\u30eb\u3002<\/p>\n<p>\u30fbip\u30a2\u30c9\u30ec\u30b9\u306a\u3069\u3092\u78ba\u8a8d\u3059\u308b<br \/>\nifconfig<br \/>\n\u203bwindows\u306eipconfig\u3068\u307b\u307c\u540c\u3058\u3002<\/p>\n<p>\u3053\u308c\u304f\u3089\u3044\u304c\u826f\u304f\u4f7f\u3046\u6c23\u304c\u3059\u308b\u3002<br \/>\n\u304d\u308f\u3081\u3064\u3051\u306fman\u30b3\u30de\u30f3\u30c9<br \/>\n\u30fb\u30b3\u30de\u30f3\u30c9\u306e\u8aaa\u660e\u304c\u898b\u3089\u308c\u308b<br \/>\nman ls<br \/>\nls\u306e\u8aaa\u660e\u304c\u898b\u3089\u308c\u308b\u3002<br \/>\nman sl<br \/>\nsl\u306e\u8aaa\u660e\u304c\u898b\u3089\u308c\u308b\u3002<br \/>\n\u3066\u306a\u611f\u3058\u3002\u6c23\u306b\u306a\u308b\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308c\u3070\u3068\u308a\u3042\u3048\u305a\u3084\u3063\u3066\u307f\u308b\u3079\u3057\u3002<\/p>\n<p>\u3055\u3042\u9591\u8a71\u4f11\u984c\u3002<br \/>\n\u3053\u308c\u3089\u3092\u8e0f\u307e\u3048\u305f\u4e0a\u3067\u8868\u793a\u4e0a\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3086\u304f\u3002<\/p>\n<p>\u30fb.bash_profle(.bashrc)\u3092\u7de8\u96c6\u3059\u308b\u3002<br \/>\n$ cd ~\/<br \/>\n$ vim .bashrc<br \/>\n\u30ba\u30ba\u30ba\u30fc\u3068\u4e0b\u306b\u4e0b\u304c\u3063\u3066\u3044\u3063\u3066\u3001<br \/>\n# some more ls aliases<br \/>\n#alias ll=&#8217;ls -l&#8217;<br \/>\n#alias la=&#8217;ls -A&#8217;<br \/>\n#alias l=&#8217;ls -CF&#8217;<br \/>\n\u3068\u3044\u3046\u8a18\u8ff0\u3092\u63a2\u3059\u3002<br \/>\n\u3053\u3044\u3064\u306e\uff03\uff08\u30b3\u30e1\u30f3\u30c8\uff09\u3092\u5916\u3059\u3002<br \/>\n\u5fc5\u8981\u306b\u61c9\u3058\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3082\u8ffd\u8a18\u3002<br \/>\n# some more ls aliases<br \/>\nalias ll=&#8217;ls -laX&#8217;<br \/>\nalias la=&#8217;ls -A&#8217;<br \/>\n#alias l=&#8217;ls -CF&#8217;<br \/>\n\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n\u3067\u304d\u305f\u3089\u3001\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3002<br \/>\n$exec $SHELL -l<br \/>\n\u3068\u6253\u3061\u8fbc\u3093\u3067\u30b7\u30a7\u30eb\u3092\u518d\u8d77\u52d5\u3002<br \/>\n$ la<br \/>\n$ ll<br \/>\n\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u95b2\u89bd\u3067\u304d\u308c\u3070\u6210\u529f\u3002<\/p>\n<p>\u30fb\u6587\u5b57\u8868\u793a\u306e\u8272\u3092\u8b8a\u66f4\u3059\u308b\u3002<\/p>\n<p>\u3053\u308c\u3092\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-92\" src=\"https:\/\/iwako.pgw.jp\/wp-content\/uploads\/2016\/02\/lsA.png\" alt=\"lsA\" width=\"842\" height=\"565\" \/><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u3001<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-93\" src=\"https:\/\/iwako.pgw.jp\/wp-content\/uploads\/2016\/02\/lsB.png\" alt=\"lsB\" width=\"842\" height=\"565\" \/><br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8868\u793a\u8272\u304c\u9751\u304f\u3066\u898b\u3065\u3089\u3044\uff01<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u80cc\u666f\u8272\u3092\u9ed1\u7cfb\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3068\u986f\u8457\u611f\u3058\u308b\u3002<br \/>\nls\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6587\u5b57\u8272\u306f\u6c34\u8272\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8d64\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u73fe\u5728\u4f4d\u7f6e\u306f\u7da0\u306b\u3059\u308b\u3002<br \/>\n\u305d\u3053\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8272\u3092\u898b\u3084\u3059\u304f\u3059\u308b\u3002<br \/>\n\u307e\u305a\u306f $ \u306e\u624b\u524d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u8868\u793a\u3092\u8272\u8b8a\u3048\u3002<br \/>\n$ cd ~\/<br \/>\n$ vim .bashrc<br \/>\n\u3067\u3001<br \/>\nif [ &#8220;$color_prompt&#8221; = yes ]; then<br \/>\nPS1=&#8217;${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w \\$\\[\\033[00m\\] &#8216;<br \/>\nelse<br \/>\nPS1=&#8217;${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ &#8216;<br \/>\nfi<br \/>\nunset color_prompt force_color_prompt<br \/>\n\u3053\u3046\u3044\u3046\u8a18\u8ff0\u306e\u90e8\u5206\u3092\u3001<br \/>\nPS1=&#8217;${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;36m\\]\\w \\$\\[\\033[00m\\] &#8216;<br \/>\n\u306b\u8b8a\u66f4\u3059\u308b\u3002<br \/>\n\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3002<br \/>\n$exec $SHELL -l<br \/>\n\u3068\u6253\u3061\u8fbc\u3093\u3067\u30b7\u30a7\u30eb\u3092\u518d\u8d77\u52d5\u3002<\/p>\n<p>\u7de8\u96c6\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u51fa\u3059\u3002<br \/>\n$ dircolors -p &gt; ~\/.dircolors<br \/>\n\u7de8\u96c6\u3059\u308b\u3002<br \/>\n$ vim dircolors<br \/>\n\u30ba\u30ba\u30ba\u30fc\u3068\u4e0b\u306b\u4e0b\u304c\u3063\u3066\u3044\u304f\u3068<br \/>\nDIR 01;34; # directory<br \/>\n\u3068\u3044\u3046\u8a18\u8ff0\u304c\u3042\u308b\u306e\u3067<br \/>\nDIR 01;04;36 # directory<br \/>\n\u3053\u3093\u306a\u611f\u3058\u306b\u3057\u3066\u307f\u308b\u3002<br \/>\n\u3067\u304d\u305f\u3089\u3001\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3002<br \/>\n$exec $SHELL -l<br \/>\n\u3068\u6253\u3061\u8fbc\u3093\u3067\u30b7\u30a7\u30eb\u3092\u518d\u8d77\u52d5\u3002<br \/>\n$ ls<br \/>\n\u3068\u6253\u3063\u3066\u3001\u8272\u304c\u8b8a\u308f\u308c\u3070\u6210\u529f\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u307b\u3069\u3001DIR\u306e\u4e0a\u306e\u3078\u3093\u306b\u3053\u3093\u306a\u30b3\u30e1\u30f3\u30c8\u304c\u3042\u308b\u3002<br \/>\n# Below are the color init strings for the basic file types. A color init<br \/>\n# string consists of one or more of the following numeric codes:<br \/>\n# Attribute codes:<br \/>\n# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed<br \/>\n# Text color codes:<br \/>\n# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white<br \/>\n# Background color codes:<br \/>\n# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white<br \/>\n\u8272\u306e\u53c3\u8003\u306b\u3057\u3088\u3046\u3002<br \/>\nDIR 01;04;36 # directory<br \/>\n\u3060\u3068\u3001\u592a\u5b57\u3001\u4e0b\u7dda\u3001\u30b7\u30a2\u30f3\u306e\u8a2d\u5b9a\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n<p>\u30fbSSH\u30ed\u30b0\u30a4\u30f3\u306e\u7d30\u304b\u3044\u8a2d\u5b9a<br \/>\n\u73fe\u5728\u306eSSH\u30ed\u30b0\u30a4\u30f3\u306f\u9375\u8a8d\u8b49\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8b49\u3067\u53ef\u80fd\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br \/>\n\u9375\u8a8d\u8b49\u306f\u516c\u958b\u9375\u3092\u767b\u9304\u3057\u305fPC\u3067\u306e\u307f\u3057\u304b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u304c\u3001<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8b49\u306f\u3069\u306ePC\u304b\u3089\u3067\u3082\u53ef\u80fd\u3060\u3002<br \/>\n\u3053\u308c\u3092\u9375\u8a8d\u8b49\u306e\u307f\u306b\u8b8a\u66f4\u3057\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u308b\u3002<br \/>\n\u203b\u8a2d\u5b9a\u3092\u5931\u6557\u3057\u3066\u3069\u3053\u304b\u3089\u3082\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u308b\u6050\u308c\u304c\u3042\u308b\u306e\u3067\u624b\u5143\u306b\u30e9\u30ba\u30d1\u30a4\u3055\u3093\u3092\u7f6e\u3044\u3066\u4f5c\u696d\u3057\u305f\u3044\u3002<br \/>\n\u7de8\u96c6\u7b87\u6240\u306f\uff13\u7b87\u6240\u3002<br \/>\n\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u30ed\u30b0\u30a4\u30f3\u306e\u4e0d\u8a31\u53ef<br \/>\n\u30fb\u30eb\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u306e\u4e0d\u8a31\u53ef<br \/>\n$ cd \/etc\/ssh\/<br \/>\nssh\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3002<br \/>\n$ sudo vim sshd-conf<br \/>\nvim\u3067\u7de8\u96c6\u3059\u308b\u3002<br \/>\n\u30c7\u30ec\u30c7\u30ec\u30fc\u3068\u4e0b\u304c\u3063\u3066\u4e0b\u8a18\u306e\u8a18\u8ff0\u3001<br \/>\n# Authentication:<br \/>\nLoginGraceTime 120<br \/>\nPermitRootLogin without-password<br \/>\nStrictModes yes<br \/>\n\u306e\u90e8\u5206\u3092<br \/>\nPermitRootLogin no<br \/>\n\u3068\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\n\u7e8c\u3044\u3066\u3001<br \/>\n# Change to no to disable tunnelled clear text passwords<br \/>\n#PasswordAuthentication yes<br \/>\n\u3053\u308c\u3092 # \u3092\u5916\u3057\u3066yes \u3092 no \u306b\u66f8\u304d\u63db\u3048\u308b\u3002<br \/>\nPasswordAuthentication no<br \/>\n\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3002<br \/>\n\u9375\u8a8d\u8b49\u3057\u3066\u3044\u306a\u3044PC\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u308c\u3070\u6210\u529f\u3002<br \/>\n\u3082\u3057\u304f\u306froot\u3067\u30ed\u30b0\u30a4\u30f3\u3092\u8a66\u307f\u3066\u3001<br \/>\n$ ssh root@100.100.1.1<br \/>\n\u6b63\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u3001<br \/>\nPermission denied (publickey,password).<br \/>\n\u3068\u8868\u793a\u3055\u308c\u3066\u5931\u6557\u3057\u305f\u3089\u6210\u529f\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u51fa\u4f86\u305f\u3089\u4e00\u4f11\u307f\u3002<br \/>\n\u6b21\u56d8\u300c\u3084\u3063\u3068\u3053\u3055LAMP\u74b0\u5883\u306e\u69cb\u7bc9\u3092\u3057\u3088\u3046\u304b\u306a\u300d\u306b\u3054\u671f\u5f85\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3001\u8868\u793a\u4e0a\u306e\u3082\u3046\u5c11\u3057\u7d30\u304b\u3044\u8a2d\u5b9a\u3092\u3057\u3066\u3086\u304f\u4e0a\u3067\u3001\u6700\u521d\u306b\u826f\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u3092\u89ba\u3048\u3066\u304a\u304d\u305f\u3044\u3002 \u300c\u8868\u793a\u4e0a\u306e\u3082\u3046\u5c11\u3057\u7d30\u304b\u3044\u300d\u3068\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306e\u8868\u793a\u3092\u898b\u3084\u3059\u304f\u3057\u3066\u4f7f\u3044\u3084\u3059\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3044\u3046\u3053\u3068\u3002 \u30fb\u30b3\u30de\u30f3\u30c9\u306e\u6a5f\u80fd \u3044\uff1a\u30b3\u30de\u30f3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":5,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":97,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/97"}],"wp:attachment":[{"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iwako.pgw.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}