Skip to content
Advertisement

Tag: ln

Symbolic Link Edits and differences to hard link [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Linux bash script symlink with spaces

I am trying to make a script which will find all the folders and files within a given hard drive. then i want to make the symlinks to another folder. However the ln command fails if the folder or file contains space, can someone help me to modify the ln -sf $MOVIE_FILE_LINKS -t $MOVIES_LIB command to make the folders with

link files within directory, with simple command similar to cp

Where my question originated: When running cp source/files.all destination/, all the files within source will now also exist in destination Question: What if I didn’t want to duplicate the data from source into destination, but simply link them (with absolute path). Usually, I would run something like: for f in $(ls source/); do ln -s $(pwd)/${f} $(pwd)/destination; done Is there

Advertisement