LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to remove the symlink ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-remove-the-symlink-4175436129/)

raulapati 11-07-2012 02:06 PM

how to remove the symlink ?
 
I have created a symlink of usb drive and exported via nfs and when i removed the pendrive i unmounted and unlinked the drive but still iam seeing that usb drive directory in my /nfs and when i try to access it iam getting a message as "no such file or directory"
how to solve this issue..I cant do it manually i haveto perform it in c code itself

regards

larvel 11-07-2012 04:02 PM

Try rm link without the forward slash that comes when/If you tab complete

raulapati 11-08-2012 12:55 AM

Quote:

Originally Posted by larvel (Post 4824503)
Try rm link without the forward slash that comes when/If you tab complete

Ya I did that but have no use..
For example:

I have a usb,When i insert it,i Do mount and create a symlink of it and export it via nfs.And when i eject it i will umount it and unlink and remove that linkpath.But iam not able to unlink it successfully...When i do unlink its creating the broken symlink..

regards

Wim Sturkenboom 11-08-2012 12:44 PM

First unlink and next unmount?


All times are GMT -5. The time now is 08:55 AM.