{"id":1449,"date":"2019-11-16T17:44:24","date_gmt":"2019-11-16T08:44:24","guid":{"rendered":"https:\/\/www.computercare-ehime.com\/blog\/?p=1449"},"modified":"2020-03-20T18:13:50","modified_gmt":"2020-03-20T09:13:50","slug":"memo_direction-of-symlink","status":"publish","type":"post","link":"https:\/\/www.computercare-ehime.com\/blog\/memo_direction-of-symlink\/","title":{"rendered":"\u672c\u4eba\u5099\u5fd8\u9332\uff1a\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u5f15\u6570\u306e\u65b9\u5411"},"content":{"rendered":"<h2>UNIX\/Linux\u306e\u5834\u5408\uff1a\u65b9\u5411\u306f\u300c<i class=\"fas fa-arrow-right\"><\/i>\u300d<\/h2>\n<p><!-- \n\n<p class=\"f12em b black m0-b\">UNIX\/Linux\u306e\u5834\u5408\uff1a\u65b9\u5411\u306f\u300c<i class=\"fas fa-arrow-right\"><\/i>\u300d<\/p>\n\n --><\/p>\n<div class=\"p15-l bdr_black lh15 m10-b\">\n<pre><code>\u5f15\u6570\u78ba\u8a8d\r\n\r\n$ ln --help\r\nUsage: ln [OPTION]... [-T] TARGET LINK_NAME   (1st form)\r\n(\u7565)\r\n<\/code><\/pre>\n<\/div>\n<div class=\"p15-l bdr_black lh15 m10-b\">\n<pre><code>\u5b9f\u4f8b\r\n\r\n$ mkdir public_html\r\n$ ln -s public_html www <span class=\"m30-l red\">\uff08\u982d\u306e\u4e2d\u3067 ln -s public_html <i class=\"fas fa-arrow-right\"><\/i> www \u3068\u88dc\u3063\u3066\u3044\u307e\u3059\uff09<\/span>\r\n$ ll\r\nlrwxrwxrwx  1 kick kick       12 Nov 16 17:22 www -> public_html\r\n<\/code><\/pre>\n<\/div>\n<div class=\"box_style box_style_blue\">\n<div class=\"box_inner\">\n<div class=\"box_style_title\"><span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u4e0a\u66f8\u304d<\/span><\/div>\n<p class=\"m5-b\">\u30d5\u30a1\u30a4\u30eb\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u4e0a\u66f8\u304d\u306f ln -sf \u3067OK\u3067\u3059\u304c\u3001<br \/>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5834\u5408\u306f -n \u3082\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\uff08\u9014\u4e2d\u3067\u5909\u308f\u3063\u305f\uff1f\u305d\u308c\u3068\u3082\u5fd8\u308c\u3066\u3044\u308b\u3060\u3051\uff1f\uff09<\/p>\n<div class=\"bdr_black lh15 m5-b\">\n<pre><code>\uff08ln --help \u3088\u308a\u629c\u7c8b\uff09\r\n  -n, --no-dereference        treat LINK_NAME as a normal file if\r\n                                it is a symbolic link to a directory<\/code><\/pre>\n<\/div>\n<p class=\"m0-b\">\u306a\u306e\u3067 ln -sfn (\u5dee\u66ff\u5f8c\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d) (\u540c\u3058\u30ea\u30f3\u30af\u540d) \u3068\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<h2>Windows\u306e\u5834\u5408\uff1a\u65b9\u5411\u306f\u300c<i class=\"fas fa-arrow-left\"><\/i>\u300d<\/h2>\n<p><!-- \n\n<p class=\"f12em b black m20-t m0-b\">Windows\u306e\u5834\u5408\uff1a\u65b9\u5411\u306f\u300c<i class=\"fas fa-arrow-left\"><\/i>\u300d<\/p>\n\n --><\/p>\n<div class=\"p15-l bdr_black lh15 m10-b\">\n<pre><code>\u5f15\u6570\u78ba\u8a8d\r\n\r\nC:\\>help mklink\r\n\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n\r\nMKLINK [[\/D] | [\/H] | [\/J]] \u30ea\u30f3\u30af \u30bf\u30fc\u30b2\u30c3\u30c8\r\n\r\n        \/D          \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u65e2\u5b9a\u3067\u306f\u3001\r\n                    \u30d5\u30a1\u30a4\u30eb\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\r\n        \/H          \u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u3067\u306f\u306a\u304f\u3001\u30cf\u30fc\u30c9 \u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n        \/J          \u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u30b8\u30e3\u30f3\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\r\n        \u30ea\u30f3\u30af      \u65b0\u3057\u3044\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u540d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\r\n        \u30bf\u30fc\u30b2\u30c3\u30c8  \u65b0\u3057\u3044\u30ea\u30f3\u30af\u304c\u53c2\u7167\u3059\u308b\u30d1\u30b9 (\u76f8\u5bfe\u307e\u305f\u306f\u7d76\u5bfe)\r\n                    \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\r\n<\/code><\/pre>\n<\/div>\n<div class=\"p15-l bdr_black lh15 m10-b\">\n<pre><code>\u5b9f\u4f8b\r\n\r\nC:\\>md public_html\r\nC:\\>mklink \/d www public_html <span class=\"m30-l red\">\uff08\u982d\u306e\u4e2d\u3067 mklink \/d www <i class=\"fas fa-arrow-left\"><\/i> public_html \u3068\u88dc\u3063\u3066\u3044\u307e\u3059\uff09<\/span>\r\nwww <<===>> public_html \u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af \u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\r\nC:\\>dir\r\n2019\/11\/16  17:09    <SYMLINKD>     www [public_html]\r\n<\/code><\/pre>\n<\/div>\n<h2>\u304a\u554f\u3044\u5408\u308f\u305b\u30fb\u3054\u4f9d\u983c\u306f<\/h2>\n<div class=\"p10 bdr_blue m20-b\"><span class=\"b blue\">\u5f53\u793e\u3067\u306f <a href=\"https:\/\/www.computercare-ehime.com\/service\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30d1\u30bd\u30b3\u30f3\u30b5\u30dd\u30fc\u30c8<\/a> \u3092\uffe53,300 \u304b\u3089\u884c\u3063\u3066\u3044\u307e\u3059\u3002<span class=\"small\">\uff08\u51fa\u5f35\u6599\u307e\u305f\u306f\u5b85\u914d\u4fbf\u4ee3\u91d1\u5225\u9014\uff09<\/span><br \/>\n\u30d1\u30bd\u30b3\u30f3\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3067\u304a\u56f0\u308a\u306e\u65b9\u306f\u3001\u304a\u6c17\u8efd\u306b\u5f53\u793e\u307e\u3067\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/span><br \/>\n<span class=\"black small\">\u203b\u30d6\u30ed\u30b0\u8a18\u4e8b\u306b\u95a2\u3059\u308b\u7121\u6599\u30b5\u30dd\u30fc\u30c8\u306f\u884c\u3063\u3066\u304a\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u30b5\u30dd\u30fc\u30c8\u3092\u3054\u5e0c\u671b\u306e\u65b9\u306f\u6709\u511f\u30b5\u30dd\u30fc\u30c8\u3092\u3054\u5229\u7528\u304f\u3060\u3055\u3044\u307e\u305b\u3002<\/span><\/div>\n<div class=\"al-c m100-b\">\n<a href=\"\/contact\/\" class=\"btn dir-arw_r btn_orange\"><span class=\"icon_arrow_s_right\"><\/span>\u304a\u554f\u3044\u5408\u308f\u305b\u30fb\u3054\u4f9d\u983c\u306f\u3053\u3061\u3089\u3078<\/a>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>UNIX\/Linux\u306e\u5834\u5408\uff1a\u65b9\u5411\u306f\u300c\u300d \u5f15\u6570\u78ba\u8a8d $ ln &#8211;help Usage: ln [OPTION]&#8230; [-T] TARGET LINK_NAME (1st form) (\u7565) \u5b9f\u4f8b $ mkdir public_html $ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1451,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[55,56,57,58,59,60],"class_list":{"0":"post-1449","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-personal-note","8":"tag-55","9":"tag-56","10":"tag-57","11":"tag-58","12":"tag-linux","13":"tag-windows"},"_links":{"self":[{"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/posts\/1449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/comments?post=1449"}],"version-history":[{"count":7,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/posts\/1449\/revisions"}],"predecessor-version":[{"id":2914,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/posts\/1449\/revisions\/2914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/media\/1451"}],"wp:attachment":[{"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/media?parent=1449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/categories?post=1449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.computercare-ehime.com\/blog\/wp-json\/wp\/v2\/tags?post=1449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}