🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Ln Tool

by @dinghaibin

Create hard and symbolic links between files. Use for file referencing, shortcuts, and directory organization.

Versionv1.0.0
Downloads442
TERMINAL
clawhub install ln-tool

πŸ“– About This Skill


name: ln-tool description: Create hard and symbolic links between files. Use for file referencing, shortcuts, and directory organization.

Ln - Link Creation Utility

Create links between files. Supports hard links (same inode, same data) and symbolic links (reference to target path). Essential for file organization and shared resources.

Usage

ln-tool [options]  

Link Types

  • Hard links: Direct reference to file data (same inode)
  • Symbolic links: Path reference (can cross filesystems)
  • Options

  • -s: Create symbolic link (default is hard link)
  • -f: Force creation (remove existing destination)
  • -n: Treat destination as normal file
  • Examples

    # Hard link
    ln-tool original.txt link.txt

    Symbolic link

    ln-tool -s /usr/bin/python3 ./python

    Force replace existing link

    ln-tool -sf /usr/bin/python3 ./python

    πŸ’‘ Examples

    # Hard link
    ln-tool original.txt link.txt

    Symbolic link

    ln-tool -s /usr/bin/python3 ./python

    Force replace existing link

    ln-tool -sf /usr/bin/python3 ./python

    βš™οΈ Configuration

  • -s: Create symbolic link (default is hard link)
  • -f: Force creation (remove existing destination)
  • -n: Treat destination as normal file