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 09-11-2009, 11:47 PM   #1
jancat
Member
 
Registered: Dec 2007
Posts: 30

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, 11:57 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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-12-2009, 12:12 AM   #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


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
editing a link file? ginda Linux - Newbie 8 04-25-2008 09:46 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 08: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 02:32 PM
file link with smae name manojg Linux - General 4 11-04-2005 03:37 PM
Mozilla file link Suspect Linux - Newbie 1 08-02-2002 12:45 AM


All times are GMT -5. The time now is 10:45 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