Created
November 17, 2014 22:22
-
-
Save mapyo/8d9746c34f3f263b2c8a to your computer and use it in GitHub Desktop.
シンボリックリンクで実フォルダは上書き出来なかった件 ref: http://qiita.com/mapyo/items/a8187c380e805eae2ba6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s [元のディレクトリ] [シンボリック名] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir -p test1/log_data test2/log_data | |
$ touch test2/log_data/hoge.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── test1 | |
│ └── log_data | |
└── test2 | |
└── log_data | |
└── hoge.txt | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -snf ./test2/log_data ./test1/log_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── test1 | |
│ └── log_data | |
│ └── log_data -> ./test2/log_data | |
└── test2 | |
└── log_data | |
└── hoge.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment