Go Back   Hardware Forums > Software Support Forums > Linux and Other OSes

Reply
 
LinkBack Thread Tools
Old 31-05-2006, 09:40 PM   #1 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

Default symbolic link ?

hiya all, is a symbolic link the same or similar to a shortcut in windows - yes i am thick when it comes to linux lol

  Reply With Quote
Whats this? diNovo Edge Bluetooth Wireless Keyboard
diNovo Edge Bluetooth Wireless Keyboard
Seller Price (inc. VAT) Delivery Total Price Availability Seller Rating
Dell £114.33 Free £114.33 In Stock Rated: 0 out of 5 - Number of votes: 0
IT247.com £102.94 Free £102.94 In Stock Rated: 4 out of 5 - Number of votes: 38
Dell Business £104.65 £8.23 £112.88 In Stock Rated: 0 out of 5 - Number of votes:
Old 31-05-2006, 09:51 PM   #2 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

Similar, but not quite the same.

When you follow a symbolic link in linux, it takes you to its destination like in windows. But it is more flexible than a shortcut.

A symlink from /usr/local/example to /home/user would point to the /home/user directory. A program that writes to /usr/local/example directory would actually write to /home/user. In windows, the shortcut does not have that feature. A symlink is "transparent" in that it is not actually a file like .lnk shortcuts in windows, but a pointer instead.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
The Following 2 Users Say Thank You to Addis For This Useful Post: Show me >>
Old 01-06-2006, 02:39 PM   #3 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

Quote:
Originally Posted by Addis
Similar, but not quite the same.

When you follow a symbolic link in linux, it takes you to its destination like in windows. But it is more flexible than a shortcut.

A symlink from /usr/local/example to /home/user would point to the /home/user directory. A program that writes to /usr/local/example directory would actually write to /home/user. In windows, the shortcut does not have that feature. A symlink is "transparent" in that it is not actually a file like .lnk shortcuts in windows, but a pointer instead.
so a symbolic link stores both the source & destinations within it, but does it write the data to both locations of just to /user/local/example or /home/user
  Reply With Quote
Old 01-06-2006, 02:48 PM   #4 (permalink) Top
The King

 
Addis's Avatar
 
Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline

My Computer

In my example, /usr/local/example is the symlink. It doesn't write data itself. If I program tries to write to /usr/local/example, it seems to the program that it is writing to the directory. But in actual fact the data is being "redirected" to /home/user.

Another example of use:

Writing a file to the directory /usr/local/example/mydocs/ actually writes to /home/user/mydocs. the user/programs can write to directories contained within a symlink to some extent.

A symbolic link is just in fact, a link. It doesn't make a copy of the file, but simply "redirects" attempts to read/write to it to the actual destination.
__________________
Never trust a program you don't have the source code for.

My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers
Send a message via MSN to Addis   Reply With Quote
The Following User Says Thank You to Addis For This Useful Post: Show me >>
Old 01-06-2006, 03:05 PM   #5 (permalink) Top
Paranoid Geeky Geek
 
donkey42's Avatar
 
Join Date: Mar 2006
Age: 34 Male
Posts: 5,826
Times Helpful: 309
My Mood: Paranoid
Status: Offline

My Computer

oh right thanx
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gadget Forums link? Exfoliate Suggestions and Feedback 4 20-03-2005 05:56 PM
D-link requirements Jecht Networking and Computer Security 2 25-01-2005 11:56 PM


All times are GMT +1. The time now is 08:37 AM.


Copyright © 2000 - 2008 · HARDWAREFORUMS.COM · All rights reserved