- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Editing linked files
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
02-12-2001 02:19 PM
02-12-2001 02:19 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 02:43 PM
02-12-2001 02:43 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 02:51 PM
02-12-2001 02:51 PM
Re: Editing linked files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 03:29 PM
02-12-2001 03:29 PM
Re: Editing linked files
In my opinion,links are meant to be readable than writeable.
If you want to lock management when the link and the file is concurrently accessed, you can either use CVS or, write a script to always follow the link to its regular file and load the regular file in the editor eg. "vilink file", and subsequently pass the control to vi.
vilink:
======
#/sbin/sh
if [ -L $1 ] # if argument is a link
then
vi `ls -l $1 | cut -d\> -f2`
else
vi $1
fi
======
Hope this helps. Regards.
Steven Sim Kok Leong.
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 03:59 PM
02-12-2001 03:59 PM
Re: Editing linked files
As to links, they have several uses. Soft links are often used to provide transitional links when the location of files has changed (after version upgrades, for instance). Soft links can also be used to ease space demands on small filesystems by "shifting" the data load elsewhere. Hard links can be used to protect access to data from being accidently lost by a careless rm. So long as one hard link remains, the data is still available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2001 04:20 PM
02-12-2001 04:20 PM
Re: Editing linked files
...some more useful information on soft (symbolic) links.
When a 'chown' is executed, by default, the owner or group of the target file that a symbolic link points to is changed. If the '-h' chown option is used, the target file that the symbolic link points to is not affected.
By default, a 'find' does not follow symbolic links. The '-follow' option of find can be used to change this behavior.
...JRF...