Linux Commands Helper

💬 Your AI-powered Linux assistant

ln Command - Make Links Between Files

The ln command is used to create hard and symbolic links between files. Symbolic links (symlinks) are commonly used to create shortcuts or references to files and directories.

Syntax

ln [options] target [link_name]

Examples

ln file1 file2

Create a hard link named file2 to file1.

ln -s /path/to/original /path/to/link

Create a symbolic link at /path/to/link pointing to /path/to/original.

Notes

  • Use -s to create symbolic (soft) links; default is hard link.
  • Symbolic links can span filesystems; hard links cannot.
  • Use ls -l to view links and their targets.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame