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