在Freebsd下创建一个软链接的时候出现的问题以及解决办法

[zx@FreeBSD8 ~]$ sudo cat vimrc_example.vim

cat: vimrc_example.vim: Too many levels of symbolic link

问题:在建立软链接的时候不能用相对路劲,一定要用绝对路径。

解决办法:

[zx@FreeBSD8 /usr/local/share/vim/vim73]$ ln -s /usr/local/share/vim/vim73/vimrc_example.vim /home/zx

[zx@FreeBSD8 /usr/local/share/vim/vim73]$ cd ~

[zx@FreeBSD8 ~]$ ls

hello.txt               temp.txt                vimrc_example.vim

[zx@FreeBSD8 ~]$ cat vimrc_example.vim

" An example for a vimrc file.

"

" Maintainer:   Bram Moolenaar <[email protected]>

" Last change:  2008 Dec 17

"

" To use it, copy it to

"     for Unix and OS/2:  ~/.vimrc

"             for Amiga:  s:.vimrc

"  for MS-DOS and Win32:  $VIM\_vimrc

"           for OpenVMS:  sys$login:.vimrc

问题解决!

你可能感兴趣的:(FreeBSD,软链接)