Quantcast
Channel: Is there a way to set symbolic links to only executable files in Linux? - Super User
Browsing latest articles
Browse All 4 View Live

Answer by Kevin for Is there a way to set symbolic links to only executable...

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...

View Article



Answer by Daniel Andersson for Is there a way to set symbolic links to only...

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...

View Article

Answer by terdon for Is there a way to set symbolic links to only executable...

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...

View Article

Is there a way to set symbolic links to only executable files in Linux?

I have a directory with code files and executable files and I want to know how to create a symbolic link only to executable files in that directory?I know that path-of-directory/* selects all files...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images