Linux Commands | File Management | ln Create Link Files/Directories
ln Command
The ln command creates link files, similar to shortcuts in Windows.
There are two types of links: symbolic links and hard links.
ln is short for “link”.
Syntax
ln (options) [file name] [link file name]
Parameters
-s: Creates a symbolic link.-sf: Forces creation of a symbolic link. When the link file is executed, the linked path is used.
Note
When you frequently open a hidden directory whose name starts with ., creating a shortcut can be convenient.
ln Command Example
Example
ln -s TestFile Test
More Information About the link Command
man ln