Quote:
Originally Posted by wangqiang
on my compute I found this
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgchange -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgck -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgconvert -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgcreate -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgdisplay -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgexport -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgextend -> lvm*
lrwxrwxrwx 1 root root 3 Oct 5 04:51 vgimport -> lvm*
these symbolic link are linked to same program,so I want to knwo how to create this link file with parametes
|
You can't.
Symbolic links are filesystem items that provide the filesystem code with a redirection when opening/closing files and directories.
They are interpreted by the filesystem itself, within the kernel - thus no user "parameters" are possible.
Now it is possible for the program to use the name it has been invoked by as a parameter - that is what the first parameter is (in C it is argv[0], in a shell script it is $0).