- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Symbolic links
 
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2001 03:08 PM
11-02-2001 03:08 PM
Thanks
DKD
Solved! Go to Solution.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2001 03:55 PM
11-02-2001 03:55 PM
			
				
					
						
							Re: Symbolic links
						
					
					
				
			
		
	
			
	
	
	
	
	
cd to the directory with the bad name. Enter
rm ./--\>restofname
This will delete the file.
\> prevents the > to mean send output to.
-- Rod Hills
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2001 03:55 PM
11-02-2001 03:55 PM
			
				
					
						
							Re: Symbolic links
						
					
					
				
			
		
	
			
	
	
	
	
	
# mkdir /var/dest
# cd /var/source
# find . |cpio -pvdumx /var/dest
hope it helps a little ..
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2001 05:04 PM
11-02-2001 05:04 PM
SolutionI'm not sure I follow but here goes (pardon me if this is too elementary):
fileA exists in dirA
you want to move fileA to dirB
you want a symlink in dirB to fileA
cd /dirA
mv fileA /dirB/fileA
ln -s /dirB/fileA symlnkA
Now you should have a symlink (/dirA/symlnkA) pointing to /dirB/fileA
You can rm /dirA/symlnkA just as though it's a normal file.
You can rm /dirB/fileA and /dirA/symlnkA will still exist - it just points to a file that doesn't exist.
It sounds like from your post that the filename for the symlink you are trying to remove actually has --> in it's name. Try rm -i *filename.
Darrell
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2001 05:27 PM
11-02-2001 05:27 PM
			
				
					
						
							Re: Symbolic links
						
					
					
				
			
		
	
			
	
	
	
	
	
Do this:
ls -li *partofthefilename*
go to the other directory and do the same. then post the results.
thanks
live free or die
harry
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-04-2001 04:18 AM
11-04-2001 04:18 AM
			
				
					
						
							Re: Symbolic links
						
					
					
				
			
		
	
			
	
	
	
	
	
cd to the directory with theat name. Enter
rm ./--\>restofname
This will delete the bad file.
If you want to symbolically link a file
file y exists in dir x
You like to move file y to dir z
you want a symbolic link in dir z to file y
cd /dir x
mv file y /dir z/file y
ln -s /dirz/filey linkY
Now you will be having a symlink (/dirX/lnkA) pointing to /dirz/filey
You can rm /dirx/lnky just as though it's a normal file.
You can rm /dirz/filey and /dirz/lnky will still exist. It just points to a file that doesn't exist.
Hope this helps
Ramesh
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-06-2001 11:18 AM
11-06-2001 11:18 AM