LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2013, 01:08 AM   #1
wangqiang
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Rep: Reputation: Disabled
Smile How to create a symbolic link with parametes


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
 
Old 11-02-2013, 01:27 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
ln -s "TARGET_FILE" "SYMLINK_NAME"
 
Old 11-06-2013, 09:58 AM   #3
wangqiang
LQ Newbie
 
Registered: Nov 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ygrex View Post
ln -s "TARGET_FILE" "SYMLINK_NAME"
no ,you're not understand me
 
Old 11-06-2013, 10:02 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,166

Rep: Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751Reputation: 751
Quote:
Originally Posted by wangqiang View Post
no ,you're not understand me
Well from your first post I would have given exactly the same answer as Ygrex, so it's you not explaining properly rather than us not understanding.
 
Old 11-06-2013, 10:05 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by wangqiang View Post
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).
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create symbolic link? your_shadow03 Linux - Newbie 4 12-05-2009 05:15 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08:40 AM
How do I create a symbolic link? Arenba Linux - Newbie 4 09-29-2003 11:40 AM
How to create a Symbolic Link? sikandar Linux - Software 6 09-09-2003 12:41 PM
how do I create a symbolic link? rdaves@earthlink.net Linux - Newbie 2 05-23-2001 02:28 PM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration