How Do I Link Linux Files

 

Create Folder Link:

[oracle@DR-SERVER test]$ln -s /database/arch /home/oracle/test

The above command will create link folder arch inside /home/oracle/test.

[oracle@DR-SERVER test]$ ls -rlt
total 0
lrwxrwxrwx 1 oracle oinstall 14 Oct 29 14:25 arch -> /database/arch
[oracle@DR-SERVER test]$ pwd
/home/oracle/test
[oracle@DR-SERVER test]$ cd arch/
[oracle@DR-SERVER arch]$ ls -rlt
total 118286124
-rw-r----- 1 oracle oinstall 1073740288 Oct 27 22:19 1_22588_775673285.dbf
-rw-r----- 1 oracle oinstall 1073740288 Oct 27 22:25 1_22589_775673285.dbf
-rw-r----- 1 oracle oinstall 697204736 Oct 27 22:29 1_22590_775673285.dbf
-rw-r----- 1 oracle oinstall 1073740288 Oct 28 18:07 1_22603_775673285.dbf
-rw-r----- 1 oracle oinstall 1073733120 Oct 28 18:09 1_22604_775673285.dbf
-rw-r----- 1 oracle oinstall 1073740288 Oct 28 18:10 1_22605_775673285.dbf
-rw-r----- 1 oracle oinstall 3316736 Oct 28 18:11 1_22607_775673285.dbf

 

Create Symbolic link files:

The below command will create symbolic link file in /rman/arch for /database/arch/ folder.

[root@DR-SERVER arch]# ln -s /database/arch/* /rman/arch/
ln: creating symbolic link `/rman/arch/1_22626_775673285.dbf' to `/database/arch/1_22626_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22627_775673285.dbf' to `/database/arch/1_22627_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22628_775673285.dbf' to `/database/arch/1_22628_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22629_775673285.dbf' to `/database/arch/1_22629_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22630_775673285.dbf' to `/database/arch/1_22630_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22631_775673285.dbf' to `/database/arch/1_22631_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22632_775673285.dbf' to `/database/arch/1_22632_775673285.dbf': File exists
ln: creating symbolic link `/rman/arch/1_22633_775673285.dbf' to `/database/arch/1_22633_775673285.dbf': File exists

 

Advertisements

About Sher khan

Senior Oracle DBA, Oracle 10g , Oracle 11g OCE ,Oracle 12C and Oracle 11g OPN certified Specialist, OCP Certified in Oracle 9i,10g , 11g and 12C. I am working in Oracle technology since 2004. Currently working in U.A.E Email: sher487@hotmail.com
This entry was posted in Linux commands for DBA. Bookmark the permalink.

7 Responses to How Do I Link Linux Files

  1. Bernhard says:

    Excellent goods from you, man. I have be aware your stuff previous to and
    you are simply too fantastic. I actually like what you’ve got here, certainly like what you’re saying and the way by which you are saying it.
    You make it entertaining and you continue to care for to keep it
    wise. I can’t wait to learn far more from you. This is actually a tremendous web site.

  2. social media says:

    Everyone loves what you guys are up too. This kind
    of clever work and reporting! Keep up the amazing works guys I’ve included you guys to my own blogroll.

  3. Visita says:

    May I simply say what a relief to discover someone who actually knows
    what they’re talking about online. You actually realize how to bring a problem to light and make it important. More and more people should look at this and understand this side of your story. I was surprised you are not more popular because you definitely possess the gift.

  4. ostermann says:

    Thanks for ones marvelous posting! I seriously enjoyed reading it, you
    may be a great author.I will make certain to bookmark your blog and will often come back sometime soon.
    I want to encourage that you continue your great work, have a nice holiday weekend!

  5. I am genuinely thankful to the owner of this site who has shared
    this great paragraph at at this place.

  6. I’ve acquired so much of valuable content out of your blog.
    It’s only too bad that it consistently loads so slowly.
    Could you write a quick email to your own post and try to resolve these problems?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s