ln
The command that makes links: a hard link by default, a symbolic link with -s.
In more detail
ln target name adds a second name for the same inode; ln -s stores the target path in a new small file instead. -f replaces an existing link.
Example
ln -s conf/app.conf current.conf makes a symbolic link to the config.Related terms
- hard link — An additional directory entry that points to an existing inode, so one file has two or more equal names.
- symbolic link — A special file that points to another path, so opening the link opens the file it names.
- inode — The record a filesystem keeps for each file, holding its owner, mode, size, timestamps, link count and the location of its data blocks, but not its name.
Taught in
- Targets, Boot And Shutdown — Red Hat Certified System Administrator (EX200) Exam Prep