LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-09-2005, 04:26 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
how to Link Folders / Directories


I am planning my first Slackware installation and I would like to create a symbolic link such that /opt is recognized as /usr/local. Reason for doing this is to avoid having a separate partition for them

I understand the command is:

ln -s /usr/local /opt

(Please correct me if I am wrong.)

My main question is: what do I need to do as part of the installation to make sure that this command 'sticks' for each time I boot?

Thank you,

Bill.
 
Old 12-09-2005, 04:39 AM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
When you make a link (whether symbolic or not), you're actually creating a file that acts like a shortcut to the other directory/file. As such, you don't have to do anything to make sure it stays each time.

90% of what goes into /opt anyway is put there by the user so you can generally force it to install to /usr/local instead, but whatever works for you!
 
Old 12-09-2005, 04:59 AM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by Poetics
When you make a link (whether symbolic or not), you're actually creating a file that acts like a shortcut to the other directory/file. As such, you don't have to do anything to make sure it stays each time.

90% of what goes into /opt anyway is put there by the user so you can generally force it to install to /usr/local instead, but whatever works for you!
Many thanks for the reply.

I guess I could at a later date find the appropriate file and delete it if I no longer required the link.
 
Old 12-09-2005, 04:59 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by Toods
I am planning my first Slackware installation and I would like to create a symbolic link such that /opt is recognized as /usr/local. Reason for doing this is to avoid having a separate partition for them
Beware.

Slack installs KDE under /opt, so you could have some problems doing this if you intend to use KDE.
 
Old 12-09-2005, 05:16 AM   #5
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by rkelsen
Beware.

Slack installs KDE under /opt, so you could have some problems doing this if you intend to use KDE.
OK, thanks for that word of warning.

I think I will therefore just increase the partition size for my root(/) to allow for some installation in /opt.
 
Old 12-09-2005, 05:34 AM   #6
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by Toods
OK, thanks for that word of warning.

I think I will therefore just increase the partition size for my root(/) to allow for some installation in /opt.
No, you need not. After you create (symbolic) link from /opt to /usr/local f.E. , all file operations to /opt will "transparently" write to /usr/local.
 
  


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
useing SCP to copy entire directories with sub folders? Lleb_KCir Linux - General 5 09-13-2005 09:08 PM
Best/Safest way to link folders in VSFTPD webnoelle Linux - Security 3 01-03-2004 06:49 PM
Meaning of Folders and Directories Dakkar Linux - Newbie 2 12-16-2003 08:19 AM
How to link directories ? jcb_dreamvsat Linux - General 3 10-29-2003 08:17 AM
How do I link directories? Aerlock Linux - Newbie 2 10-19-2003 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:03 PM.

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