Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

nx

nx (from Latin nexus — binding/link) creates hard links or symbolic links between files. It is the core Vesper Linux replacement for GNU ln.

Usage

nx [-s] [-f] [-v] [-T] FILE LINK

Flags

  • -s — create a symbolic link instead of a hard link.
  • -f — remove existing destination files before linking.
  • -v — verbose mode; print created link targets.
  • -T — treat destination link name as a normal file.

Examples

Create a hard link:

nx original.txt hardlink.txt

Create a symbolic link:

nx -s /opt/bin/app /usr/local/bin/app

Force-overwrite an existing symlink with verbose output:

nx -s -f -v target.conf current.conf