Skip to content

Instantly share code, notes, and snippets.

@mapyo
Created November 17, 2014 22:22
Show Gist options
  • Save mapyo/8d9746c34f3f263b2c8a to your computer and use it in GitHub Desktop.
Save mapyo/8d9746c34f3f263b2c8a to your computer and use it in GitHub Desktop.
シンボリックリンクで実フォルダは上書き出来なかった件 ref: http://qiita.com/mapyo/items/a8187c380e805eae2ba6
ln -s [元のディレクトリ] [シンボリック名]
$ mkdir -p test1/log_data test2/log_data
$ touch test2/log_data/hoge.txt
$ tree
.
├── test1
│ └── log_data
└── test2
└── log_data
└── hoge.txt
ln -snf ./test2/log_data ./test1/log_data
$ 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