Categories
How to bulk create symbolic links in Linux?
Hello! Tell me how you can create symbolic links, in the current directory, to all files corresponding to the mask. For example, you want something like this: ln -s *.htm *.php
Answer the question
In order to leave comments, you need to log in
for i in *.html; do ln -s $i ${i%%.html}.php; done
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question