ASE Labs
Welcome Guest. Please register or log in now. There are 1222 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login

Symlinks

There are 2 messages in this topic Watch this topic for replies Subscribe to this topic
Add Reply Back to forum "Software Discussion" Back to Index
Aron Schatz Avatar 2014: Year of change. Joined: August 3, 2001 Status: Offline Posts: 10753 Rep: PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 3 (332767)PIP Level 1 (332767)
Thumbs up Symlinks Old Fri May 20, 2005 8:41:44 PM #11493 Perm Link
I just figured out how symlinks work and boy am I impressed. It just made my coding a hell of alot easier. I just created symlinks from each 'site' here at my test server and keep one folder with the function files in it. Before, I had seperated each sites functions even though they all used the same ones.

Symlinks are shortcuts, basically. I still don't know the different between a hard link and a symbolic link though...

2014 is going to be a good year. More content, more streamlining. Be a part of history!
Reply Quote Multi-Quote-Off Send PM Profile
Chris Reid Avatar Joined: August 1, 2005 Status: Offline Posts: 51 Rep: PIP Level 2 (1386)PIP Level 1 (1386)PIP Level 1 (1386)PIP Level 1 (1386)PIP Level 1 (1386)
Re: Symlinks Old Sat Aug 6, 2005 8:55:50 AM #12553 Perm Link
In response to Aron Schatz #11493
Someone needs to learn to RTFM Wink

DESCRIPTION
There are two concepts of `link' in Unix, usually called hard link and soft link. A hard link is just a name
for a file. (And a file can have several names. It is deleted from disk only when the last name is removed.
The number of names is given by ls(1). There is no such thing as an `original' name: all names have the same
status. Usually, but not necessarily, all names of a file are found in the filesystem that also contains its
data.)

A soft link (or symbolic link, or symlink) is an entirely different animal: it is a small special file that
contains a pathname. Thus, soft links can point at files on different filesystems (possibly NFS mounted from
different machines), and need not point to actually existing files. When accessed (with the open(2) or stat(2)
system calls), a reference to a symlink is replaced by the operating system kernel with a reference to the file
named by the path name. (However, with rm(1) and unlink(2) the link itself is removed, not the file it points
to. There are special system calls lstat(2) and readlink(2) that read the status of a symlink and the filename
it points to. For various other system calls there is some uncertainty and variation between operating systems
as to whether the operation acts on the symlink itself, or on the file pointed to.)

ln makes links between files. By default, it makes hard links; with the -s option, it makes symbolic (or
`soft') links.

If only one file is given, it links that file into the current directory, that is, creates a link to that file
in the current directory, with name equal to (the last component of) the name of that file. (This is a GNU
extension.) Otherwise, if the last argument names an existing directory, ln will create links to each men-
tioned source file in that directory, with a name equal to (the last component of) the name of that source
file. (But see the description of the --no-dereference option below.) Otherwise, if only two files are given,
it creates a link named dest to the file source. It is an error if the last argument is not a directory and
more than two files are given.

By default, ln does not remove existing files or existing symbolic links. (Thus, it can be used for locking
purposes: it will succeed only if dest did not exist already.) But it can be forced to do so with the option
-f.

On existing implementations, if it is at all possible to make a hard link to a directory, this may be done by
the superuser only. POSIX forbids the system call link(2) and the utility ln to make hard links to directories
(but does not forbid hard links to cross filesystem boundaries).
Reply Quote Multi-Quote-Off Send PM Profile
Page: [1]
Add Reply Back to forum "Software Discussion" Back to Index

Quick Reply

Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Kingston HyperX Cloud 2 Pro Gaming Headset Unboxing
  • Synology DS415+ Unboxing
  • D-Link DCS-5020L Wireless IP Pan/Tilt IP Camera
  • Actiontec WiFi Powerline Network Extender Kit Unboxing
  • Durovis Dive Unboxing
  • Bass Egg Verb Unboxing
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
Latest Articles
  • D-Link Exo AC2600 Smart Mesh Wi-Fi Router DIR-2660-US
  • HyperX Double Shot PBT Keys
  • Avantree ANC032 Wireless Active Noise Cancelling Headphones
  • ScharkSpark Beginner Drones
  • HyperX Alloy FPS RGB Mechanical Gaming Keyboard
  • D-Link DCS-8300LH Full HD 2-Way Audio Camera
  • Contour Unimouse Wireless Ergonomic Mouse
  • HyperX Cloud Alpha Pro Gaming Headset
  • Linksys Wemo Smart Home Suite
  • Fully Jarvis Adjustable Standing Desk
Latest Topics
  • Hello
  • Welcome to the new server at ASE Labs
  • Evercool Royal NP-901 Notebook Cooler at ASE Labs
  • HyperX Double Shot PBT Keys at ASE Labs
  • Avantree ANC032 Wireless Active Noise Cancelling Headphones at ASE Labs
  • ScharkSpark Beginner Drones at ASE Labs
  • HyperX Alloy FPS RGB Mechanical Gaming Keyboard at ASE Labs
  • D-Link DCS-8300LH Full HD 2-Way Audio Camera at ASE Labs
  • Kingston SDX10V/128GB SDXC Memory at ASE Labs
  • What are you listening to now?
  • Antec Six Hundred v2 Gaming Case at HardwareLogic
  • Sans Digital TR5UTP 5-Bay RAID Tower at HardwareLogic
  • Crucial Ballistix Smart Tracer 6GB PC3-12800 BL3KIT25664ST1608OB at HardwareLogic
  • Cooler Master Storm Enforcer Mid-Tower Gaming Case at HardwareLogic
  • Arctic M571-L Gaming Laser Mouse at ASE Labs
  • Contour Unimouse Wireless Ergonomic Mouse at ASE Labs
Press Release
  • Huntkey Has Launched Its New Power Strips with USB Chargers on Amazon US
  • Inspur Releases TensorFlow-Supported FPGA Compute Acceleration Engine TF2
  • Hot Pepper Introduces Spicy New Smartphones in US Markets
  • Sharp Introduces New Desktop Printers For The Advanced Office
  • DJI Introduces Mavic 2 Pro And Mavic 2 Zoom: A New Era For Camera Drones
  • DJI Introduces Mavic 2 Pro And Mavic 2 Zoom: A New Era For Camera Drones
  • Fujifilm launches "instax SQUARE SQ6 Taylor Swift Edition", designed by instax global partner Taylor Swift
  • Huawei nova 3 With Best-in-class AI Capabilities Goes on Sale Today
  • Rand McNally Introduces Its Most Advanced Dashboard Camera
  • =?UTF-8?Q?My_Size_to_Showcase_Its_MySizeId=E2=84=A2_Mobil?= =?UTF-8?Q?e_Measurement_Technology_at_CurvyCon_NYC?=
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 17 (9 Cached)] [Rows: 362 Fetched: 57] [Page Generation time: 0.018316984176636]