Create a gist now

Instantly share code, notes, and snippets.

シンボリックリンクの作成と削除 ref: http://qiita.com/mugyuu/items/2e99304bd92201261c60
hoge# ln -s /hoge/fuga/watshi ./watashi
もしくは
hoge# ln -s /hoge/fuga/watshi watashi
また、もし同じ名前でいいのなら、
hoge# ln -s /hoge/fuga/watshi
lrwxrwxrwx 1 hoge hoge 24 Feb 5 16:20 watashi -> /hoge/fuga/watshi
hoge# ln -s /hoge/fuga/watshi/ ./watashi/
ln: target `./watashi/' is not a directory: No such file or directory
hoge# ln -s /hoge/fuga/watshi/ ./watashi
hoge# ll
lrwxrwxrwx 1 hoge hoge 24 Feb 5 16:20 watashi -> /hoge/fuga/watshi//
hog# unlink ./watashi
hoge# rm ./watashi
rm: remove symbolic link `watashi'? y
hoge# rm watashi/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment