Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

too many levels of symbolic links

Status
Not open for further replies.

rcbac

IS-IT--Management
Apr 1, 2010
2
0
0
US
Hello,

I have a directory with alot of information that is linked to another directory. I want to remove the link and leave the original directory unharmed. Does anyone know how to do this?

This is how is looks right now.

ansys_inc -> /ansys_inc/v121 (remove the link to /ansys_inc/v121 and leave ansys_inc unharmed).

Thanks for any help.
 
Make sure it's a symbolic link first.

ls -la will give you a detail listing. The listing for your ansys_inc should indicate it is symbolic:

"l" as the first letter in the permissions list. If it is you simply "rm" the link. If ansys_inc has a size of 4096 it is a directory; do NOT remove it.

You show ansys_inc is a link to /ansys_inc/v121.

rm ansys_inc will remove your link. Removing a symbolic link does not affect the item it is linked to.

 
I'll try this... thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top