Re: symlink confusion
> > # ln -s /usr/X11R6 /home/steve/X11R6 > > > > Which put a new link from the original to the new location. > > > > If I # rm /home/steve/X11R6, will I be safe as to not delete the original > > directory? I'm sorry, the above line should have read: # rm /usr/X11R6 not the other way around. In essence, if I delete the link, the directory should remain right? Then I can just move the directory back to it's original location? Steve > > What does: > # ls -l /usr/X11R6 /home/steve/X11R6 > tell you? > I'm currently a bit confused. > > > > > If this is true, what could I have done in the past that would of seen an > > entire directory structure deleted by deleting the link? > > > > Tks for your input. > > > > Steve > > ___ > > [EMAIL PROTECTED] mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "[EMAIL PROTECTED]" > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: symlink confusion
On Wednesday 12 November 2003 19:48, Steve Bertrand wrote: > Could someone please briefly describe the reactions to the following > actions? Sometimes I delete the original directories by deleting links, > and hopefully someone can give me some insight. > > # ln -s /home/steve/directory /tmp/directory > # rm /tmp/directory > > In testing, the original directory (/home/steve/directory) did not get > removed, but in reality, I am dealing with my X11R6 directory which had to > be moved temporarily to make room for a port install. > > # ln -s /usr/X11R6 /home/steve/X11R6 > > Which put a new link from the original to the new location. > > If I # rm /home/steve/X11R6, will I be safe as to not delete the original > directory? What does: # ls -l /usr/X11R6 /home/steve/X11R6 tell you? I'm currently a bit confused. > If this is true, what could I have done in the past that would of seen an > entire directory structure deleted by deleting the link? > > Tks for your input. > > Steve > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: symlink confusion
On Wednesday 12 November 2003 20:38, Marty Landman wrote: > At 03:00 PM 11/12/2003, you wrote: > ># ln -s /home/steve/directory /tmp/directory > ># rm /tmp/directory > > > >In testing, the original directory (/home/steve/directory) did not get > > removed > > I'm a newbie Steve so maybe will be asking more than answering here. But > isn't it the case that with a soft link as you created in the first line in > the second line you'd only be deleting the link itself and not the actual > directory? But if you used a hard link You can't make hard links to directories. See ln(1) for more info. > # ln /home/steve/directory /tmp/directory > # rm /tmp/directory > > then the real directory would be deleted? > > > Marty Landman Face 2 Interface Inc 845-679-9387 > Sign On Required: Web membership software for your site > Make a Website: http://face2interface.com/Home/Demo.shtml > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
symlink confusion
At 03:00 PM 11/12/2003, you wrote: # ln -s /home/steve/directory /tmp/directory # rm /tmp/directory In testing, the original directory (/home/steve/directory) did not get removed I'm a newbie Steve so maybe will be asking more than answering here. But isn't it the case that with a soft link as you created in the first line in the second line you'd only be deleting the link itself and not the actual directory? But if you used a hard link # ln /home/steve/directory /tmp/directory # rm /tmp/directory then the real directory would be deleted? Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
symlink confusion
Could someone please briefly describe the reactions to the following actions? Sometimes I delete the original directories by deleting links, and hopefully someone can give me some insight. # ln -s /home/steve/directory /tmp/directory # rm /tmp/directory In testing, the original directory (/home/steve/directory) did not get removed, but in reality, I am dealing with my X11R6 directory which had to be moved temporarily to make room for a port install. # ln -s /usr/X11R6 /home/steve/X11R6 Which put a new link from the original to the new location. If I # rm /home/steve/X11R6, will I be safe as to not delete the original directory? If this is true, what could I have done in the past that would of seen an entire directory structure deleted by deleting the link? Tks for your input. Steve ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"