ln -sf /new/target linkname

Category: File Operations

ln -sf /new/target linkname

Force update an existing symlink to new target

Updates an existing symbolic link to point to a new target. -s makes it symbolic, -f forces the update even if a link already exists.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.