- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: whats the purpose of using 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
Discussions
Discussions
Forums
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
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
тАО06-18-2010 12:43 AM
тАО06-18-2010 12:43 AM
whats the purpose of using links?
ans to X person: i asked this question here more bcoz to know purpose of using it..i did web search but some detail and understandable info abt links thats why askd here.. rather than discouraging people better focus on helpping people.......it wil be better for u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2010 03:51 AM
тАО06-18-2010 03:51 AM
Re: whats the purpose of using links?
But there are lots of other reasons too...
For instance: you have software installed with a version 8.11.0 in a directory called /distr/rubbish-8.11.0. If you now make a symlink to it called /distr/rubbish, you can access the software through that symlink. If a patch is installed, the new version installs in /distr/rubbish-8.11.5. By redirecting the symlink to that new version, you still access it through /distr/rubbish, but now run the new version.
Other trick is having an executable determine its default behaviour not through flags but be the name it is used by (for instance grep/egrep/fgrep/...).
So you see, it depends on the needs...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2010 04:13 AM
тАО06-18-2010 04:13 AM
Re: whats the purpose of using links?
U can get simple and well explained details wen u dig it in google
* Something like shortcut in windows...!
* Pointing one file to other location (same as above command :))
* U learn it better, once use the commna for the actual usage...
Good luck dued....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2010 06:16 AM
тАО06-18-2010 06:16 AM
Re: whats the purpose of using links?
This might make more sense in your earlier
thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1435294
Why start a new thread on the same subject?
> [...] it wil be better for u
> Jun 16, 2010 14:43:21 GMT 4 pts
Apparently not much better.
> whats the purpose of using links?
To let you use more than one name (or path)
to get to one file.
> in what situations one as to use
> links(hard/soft).
One uses them when they do what one wants.
What do you want to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2010 06:58 AM
тАО06-18-2010 06:58 AM
Re: whats the purpose of using links?
For instance:
Say you have a file whose complete path is:
/a/b/c/d/e/f/file.txt
And say your home directory is /home/beg.
You can create a link under /home/beg say named data.txt but it is actually a link to /a/b/c/d/e/f/file.txt using the command:
ln -s home/beg/data.txt /a/b/c/d/e/f/file.txt
So you need not navigate that deep directory path to view that file.
Other situations:
/oradata/SAPdata01.dbf -> /dev/vgSAPdata/lvSAPdata01
(So instead of referring the raw device path to Oracle, you use a link with simpler. shorter names).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2010 07:04 AM
тАО06-18-2010 07:04 AM
Re: whats the purpose of using links?
ln -s /a/b/c/d/e/f/file.txt /home/beg/data.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2010 12:19 AM
тАО06-21-2010 12:19 AM
Re: whats the purpose of using links?
you could do 2 things, copy prog.conf to all the users home. this works, but then you change the configuration and have to copy this file again to all users, what a waste of time.
instead you put links to this file in each users home dir, and when you have to make changes, you only do this once and the links will still point to your file and thus your changes.
imagine you have this program /opt/application, it keeps his logs in /opt/application/logs. you don't want this, because /opt should have a steady size and logs normally go into /var. unlucky for you, there is no option to change the log location for this app. what to do? allow /opt to run full? no, you create a link from /var/opt/application to /opt/application/logs and now your logs are in /var.
there are more uses and neat tricks to play with links, i'll leave it up to you to find others...