Need help with hardlink?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

selkhateeb
455 Stars 48 Forks 44 Commits 15 Opened issues

Description

a simple command-line utility that implements hardlinks on Mac OsX

Services available

!
?

Need anything else?

Contributors list

# 516,055
C
3 commits
# 511,640
C
3 commits
# 506,148
Dart
Shell
C
2 commits
# 554,615
C
2 commits
# 550,719
C
2 commits
# 49,936
Svelte
opam
vscode
kwin
1 commit
# 292,006
Shell
hanami
C
CSS
1 commit
# 128,131
lerna
npm
CSS
Electro...
1 commit
# 221,593
CSS
stubbin...
test-fr...
node-js
1 commit
# 9,874
autohot...
ahk
bitwise...
Nette
1 commit
# 97,768
mjml
circlec...
travis-...
c-sharp
1 commit

hardlink-osx

A simple command-line utility that implements directory hardlinks on Mac OSX

to link:

hln source destination
to unlink:
hln -u destination

Motivation

I was trying to patch a third-party library and make the files available in our code directory without having to copy the files every time I patch it.

I got the idea from the stackoverflow question here and decided to create a lib out if it that anybody can use.

A note about the the
hln
binary name:

The binary is named

hln
due to a naming conflict. It's also just easier to type and does not conflict with any other system I have checked.

Requirements

  • You will need xCode command line tools installed to use
    make
    command

Installation

Using Homebrew

After installing homebrew, you can simply issue this command in your terminal and hardlink will automatically install with:

  • brew install hardlink-osx

Manually compiling

  • git clone https://github.com/selkhateeb/hardlink.git
  • cd hardlink
  • make
  • [sudo] make install

Note: If you get the error

directory /usr/local/bin does not exist
, just copy hardlink app into
/usr/bin
instead.

Usage

To create a hard link: -

hln source destination

To remove the link: -

hln -u destination

Limitations

Hardlink can not be created under the same directory root. If you try to

hln
source directory to target directory under the same root you will get an error.
operation not permitted
to avoid that you should create additonal directory level
- /directory_root/
   |-  /source_directory
   |-  /parent_directory/
         |- target_directory

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.