3

How can I make a symbolic link to run a program with command line argument? For example, I want to run sample with -i eth0 argument every time when I click on a symbol link.

9

For this use case, I would recommend writing a shell script instead, e.g.

#!/bin/sh
sample -i eth0

Then save the script in /usr/local/bin as e.g. mySample, make it runnable with chmod +x mySample. And there you go :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.