Skip to content

Instantly share code, notes, and snippets.

@satomixx
Created February 5, 2014 07:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satomixx/8818832 to your computer and use it in GitHub Desktop.
Save satomixx/8818832 to your computer and use it in GitHub Desktop.
シンボリックリンクの作成と削除 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