GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SWITCH-LINK(1) FreeBSD General Commands Manual SWITCH-LINK(1)

switch-link
retarget symlinks based on the extension of their targets

switch-link [Nv] oldext newext

switch-link -h | -V

The switch-link utility examines all the symlinks in the current directory and its subdirectories, looking for those whose targets end in the .oldext extension as specified on the command line. If any of those are found, they are changed to point to a target with the same base name and a .newext extension as specified on the command line. This is useful in some setups when such symlinks are used to provide different images for different situations, e.g. holiday decoration.

Options:

Display a usage message and exit.
No-operation mode; just display what would have been done.
Display program version information and exit.
Verbose operation; display diagnostic messages.

The switch-link utility exits 0 on success, and >0 if an error occurs.

The switch-link utility's operation is currently not directly affected by its environment.

The switch-link utility examines the current directory and all its subdirectories, and its operation is not further affected by any files.

Change all the symlinks pointing to *.nonch to point to the same file, but with a .ch extension:

switch-link nonch ch

See what switch-link would do without actually changing any links:

switch-link -N nonch ch

ln(1)

The switch-link utility was written by Peter Pentchev in 2010.

Peter Penchev ⟨roam@ringlet.net⟩

*
Create a temporary file containing the list of links to avoid weird security-like issues or plain old incorrect operation resulting from whitespace in the link's name.
December 26, 2010 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.