Last active
November 5, 2024 02:18
-
-
Save phpdave/6f49a70fa58a06fef649e0d38e242095 to your computer and use it in GitHub Desktop.
creating a symbolic link.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ -d /2nd_path ] && echo "Error: /2nd_path is a directory. You must first delete the folder." || ln -sfn /1st_path /2nd_path | |
find /2nd_path -type l | |
ls -ltra /2nd_path | |
# 2nd path is where the symbolic will be created and name of the symlink and the 1st path is the target directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment