How can I make a symbolic link to run a program with command line argument?

10,866

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 :)

Share:
10,866

Related videos on Youtube

SuB
Author by

SuB

Linux Network Application Developer

Updated on September 18, 2022

Comments

  • SuB
    SuB over 1 year

    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.