unlink a directory

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Nov 28 09:15:01 UTC 2013


On 11/28/13 09:04, Darrel wrote:
> I can not recall how to unlink a directory.  Installed a FreeBSD10
> system from memory and when making the kernel link went to /root/kernels
> and linked rather than /usr/src/sys/amd64.
> 
> Now I have this:
> 
> (120) @ 4:01:40> ls -L conf
> conf
> (121) @ 4:01:43> ls -P conf
> conf
> (122) @ 4:01:56> ll conf
> lrwxr-xr-x  1 root  wheel    24B Nov 24 22:57 conf@ ->
> /usr/src/sys/amd64/conf/
> (123) @ 4:02:09> pwd
> /usr/src/sys/amd64
> (124) @ 4:04:22> cd conf
> conf: Too many levels of symbolic links.

It's a symbolic link, not a directory.

# cd /usr/src/sys/amd64
# rm conf

... but /usr/src/sys/amd64/conf should be a real directory with useful
contents.  I'd advise you to recover that part of the system sources by
use of svn or freebsd-update or whatever.

	Cheers,

	Matthew



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1029 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20131128/d6b03bb7/attachment.sig>


More information about the freebsd-questions mailing list