[sf-lug] Corrected symlink syntax

aaronco36 at sdf.org aaronco36 at sdf.org
Sun Feb 1 13:01:14 PST 2026


Previously wrote:
> --> After creating and partitioning /dev/mmcblk1p3 as /usr/local ....
> then create /usr/local/opt and symlink /opt to /usr/local/opt
> ( 'sudo cp -v /opt /usr/local/opt ; sudo ln -sf /opt /usr/local/opt' )

The symlink 'ln' syntax from its man page (e.g.,
https://www.man7.org/linux/man-pages/man1/ln.1.html ) is "ln [OPTION]...
TARGET... DIRECTORY"
Therefore, as /usr/local/opt is the [new but actual!] TARGET, 2nd half of
above should be corrected to ...

'sudo ln -sf /usr/local/opt /opt'

The directionality of the 'ln' command is different from the 'cp' command,
and that very fact sometimes messes me up... am sorry! :-(
-A




More information about the sf-lug mailing list