>_ linuxcommand.dev
File system

ln

Create symbolic or hard links.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-09-09
Syntax
$ln [-s] TARGET LINKNAME
Examples
$ln -s /usr/bin/python3 /usr/bin/python
$ln file1 file2
Typical use cases
?
Standard usage
ln --help
Note The `-s` option creates symbolic links; without `-s`, hard links are created.
Export