Search code examples
wildcardsymlinkgloblndotfiles

ln with dotfiles?


I have a directory with several "dot files". I would like to symlink all these files.

I tried

$ ln -s /usr/dotfiles/* /usr/test
ln: creating symbolic link `/usr/test/*' to `/usr/dotfiles/*': No such file or directory

Solution

  • ln -s /usr/dotfiles/.[!.]* /usr/test
    

    Inspired from

    pavium’s answer