LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-11-2009, 10:47 PM   #1
jancat
Member
 
Registered: Dec 2007
Posts: 36

Rep: Reputation: 15
file link


Hello;

I have two files

/root/dd

/root/cc

how can I link these files ?

for example

lrwxrwxrwx 1 root root 20 Sep 12 05:50 dd -> ./cc*

When I run ./dd command ./cc have to work too.
 
Old 09-11-2009, 10:57 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi!

Check the man page for `ln` as I think that's what you're looking for. I seem to remember a similar problem I had back in school...

Sasha
 
Old 09-11-2009, 11:12 PM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Can u elaborate on what you are trying to do?

For symbolic links(ln -s): 1 is the real file, while the other is just a link to the real file.
If you have both files dd & cc that already exist & are different files, you cannot link them this way.
 
  


Reply



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
editing a link file? ginda Linux - Newbie 8 04-25-2008 08:46 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
I want to make a link from word in one file to a different file using Ubuntu linux gilbert.baumslag Linux - Newbie 3 01-11-2008 01:32 PM
file link with smae name manojg Linux - General 4 11-04-2005 02:37 PM
Mozilla file link Suspect Linux - Newbie 1 08-01-2002 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:34 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
Open Source Consulting | Domain Registration