Find the answer to your Linux question:
Results 1 to 2 of 2
Is there an easy way to create soft links in a certain directory to point to all of the sub-directories in a another directory?...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    4

    Question soft links

    Is there an easy way to create soft links in a certain directory to point to all of the sub-directories in a another directory?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Better an example:

    Code:
    find / -maxdepth 1 -type d -exec ln -s '{}' \;
    Would symlink all the dirs in the root of your system into the current directory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...