1

Massive symbolic link creation using for loop in bash

view story
linux-howto

http://serverfault.com – I just wondering myself if it would be possible to create massive amount of symbolic links using a for loop? For exemple, I have a lot of directory on my /tmp directory (I know, not recommanded) and I do not want to move them out. Instead I just want to have them on my root directory using symbolic links. Here is what I did, but unfortunatly, do not work at all: for directories in /tmp/; do ln -s /tmp/$directories /$directories; done So if someone could bring me a hint, it would be wonderfull ;-) Thanks. (HowTos)