Operating System - HP-UX
1838576 Members
4272 Online
110128 Solutions
New Discussion

Re: Link file or directory question

 
Kenn Chen
Advisor

Link file or directory question

How to unlink the symbolic link file or directory ?
Cyber Zen
2 REPLIES 2
Kofi ARTHIABAH
Honored Contributor

Re: Link file or directory question

Use the rm command to remove the link (not the original) so use:

rm symlinkfile

or rm -rf symlinkdir
nothing wrong with me that a few lines of code cannot fix!
Richard Mertz
Regular Advisor

Re: Link file or directory question

To be more explicit, if you:

>RegularFile
ln -s RebularFile LinkedFile

As you know, you will now have the following from an ls:

RegularFile
LinkedFile

To remove the link:

rm LinkedFile

Richard
What anybody thinks of me is none of my business.