Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-18-2012
Registered User
 
Join Date: May 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Simple example for soft and hard links

Hai,
give me a simple example for soft and hard links.

this will work for soft link ?? ln -s [target file] [symbolic file]

Last edited by Corona688; 05-18-2012 at 10:55 AM..
Sponsored Links
    #2  
Old 05-18-2012
radoulov's Avatar
--
 
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 5,468
Thanks: 139
Thanked 538 Times in 506 Posts
Hello,

Per our forum rules, all threads must have a descriptive subject text. For example, do not post questions with subjects like "Help Me!", "Urgent!!", "Doubt" or anything that does not accurately reflect the nature of your problem. Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script".

The reason for this is that nearly 95% of all visitors to this site come here because they are referred by a search engine. In order for future searches on your post (with answers) to work well, the subject field must be something useful and related to the problem!

In addition, current forum users who are kind enough to answer questions should be able to understand the essence of your query at first glance.

So, as a benefit and courtesy to current and future knowledge seekers, please be careful with your subject text. You might receive a forum infraction if you don't pay attention to this.

Thank you.

The UNIX and Linux Forums
Sponsored Links
    #3  
Old 05-18-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,371
Thanks: 490
Thanked 2,534 Times in 2,417 Posts
Quote:
Originally Posted by Ramesh M View Post
Hai,
give me a simple example for soft and hard links.

this will work for soft link ?? ln -s [target file] [symbolic file]
You can consider it like a different form of cp command that creates links instead of copies.
Code:
# creates 'newfile' as a separate file
cp originalfile newfile
# creates 'newlink' as a hard link
ln originalfile newlink
# creates 'otherlink' as a soft link
ln -s originalfile otherlink


Last edited by Corona688; 05-18-2012 at 11:01 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
List all the soft links and hard links newtoaixos AIX 2 02-06-2012 07:16 AM
Hard Links and Soft or Sym links Harleyrci Solaris 11 10-17-2011 03:14 AM
using find to locate hard and soft links with tar manthasirisha Shell Programming and Scripting 4 03-14-2006 02:57 PM
links.... soft or hard.. not sure? yls177 UNIX for Dummies Questions & Answers 5 10-25-2002 03:12 AM
links: (soft, hard? symbolic??) inode gusla UNIX for Dummies Questions & Answers 5 05-09-2002 08:58 AM



All times are GMT -4. The time now is 07:31 AM.