0

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
Zombo
  • 1
  • 62
  • 391
  • 407

1 Answers1

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

Inspired from

pavium’s answer

Community
  • 1
  • 1
Zombo
  • 1
  • 62
  • 391
  • 407
  • You may also want to specify a destination, otherwise if the last "file" expanded by that glob is actually a directory it will be taken as the destination. – geekosaur Apr 26 '12 at 03:12