# Tag Info

6

You can use find to list executable files: find /foo -type f -executable You can then use the -exec option to create the link. -exec command ; Execute command; true if 0 status is returned. All following arguments to find are taken to be arguments to the command until an argument consisting of `;' is encountered. ...

4

Another possibility: for i in ~/foo/*; do [ -x "$i" ] && ln -s "$i" ~/bar; done -x tests if the file exists and is executable. See man test for more information. If you want to create working relative links you might need to think about how you provide your directory paths, or use the -r option to ln (which is a somewhat new GNU extension (≥ ...

2

To create a softlink use ln -s existing_filename new_link_name not ls -s filename1 filename2 ... Update for the skeptical $pwd /$ echo proof > /tmp/ordinary $mkdir /tmp/elsewhere$ ln -s /tmp/ordinary /tmp/elsewhere/link $cat /tmp/elsewhere/link proof$ ln -s /tmp/ordinary ~/p/link \$ cat ~/p/link proof Update for those grappling with ...

1

If you use zsh (and I recommend trying it for magic like this), you can simply use a glob qualifier. ln -s /path/to/foo/*(*) /path/to/bar (*) means just executable files; you can use similar constructions for files, directories, links, etc. or even more advanced sorting and manipulation operations.

1

As a partial solution, in case both the target and the link are on the same disk, you can use a hard link which works fine with double click: mklink /H Test.exe C:\Path\to\source.exe If you have to use symbolic link, I don't know what to do, however, I do know what NOT to do: don't try to associate your link with explorer.exe and the like in that "Open ...

1

It appears that a recent Windows 7 Update broke symbolic links in Windows Explorer and other programs that use the services provided by the Windows shell. I don't know which update is responsible. Workarounds Use a hard link. System restore to an earlier date. Source Windows 7: Windows Explorer does not follow Symbolic Links Same problem here. And ...

Only top voted, non community-wiki answers of a minimum length are eligible