Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash replace symlinks files

# Basic syntax:
cp -L symlink_files tmp/ && rm symlink_files && mv tmp/symlink_files .
# Where:
#	- the process is basically "copy the original files to a tmp directory,
#		remove the symlinks, and then move the file to where the symlinks were
#	- this assumes the tmp directory is present in the current directory
#	- cp -L follows the symbolic links to copy the original file
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #bash #replace #symlinks #files
ADD COMMENT
Topic
Name
6+8 =