To create a symbolic link from
fileA -> fileBenter the following commands... (note, this example assumes fileB doesn't exist yet... if it does, simply skip the first command).
touch fileB ln -s fileB fileA
To create a symbolic link from
dirA -> dirBenter the following commands... (note, this example assumes dirB doesn't exist yet... if it does, simply skip the first command)
mkdir dirB ln -s dirB dirA
To break a symbolic link of
fileA -> fileBuse
rm fileANote:
fileB will remain untouched.
To break a symbolic link of
dirA -> dirBuse
rm -rf dirANote:
dirB will remain completely untouched.