link
file_managementLinux/Unix
The link command is one of the most frequently used commands in Linux/Unix-like operating systems. link Create a hard link to a file
Quick Reference
Command Name:
link
Category:
file_management
Platform:
Linux/Unix
Basic Usage:
link [options] [arguments]
Common Use Cases
Syntax
link source_file target_file
Options
Option | Description |
---|---|
--help |
Display help information and exit |
--version |
Display version information and exit |
Note: The link command in most systems has few or no options, with just the source and target arguments being required. |
Examples
How to Use These Examples
The examples below show common ways to use the link
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
link file1.txt file2.txt