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 01-31-2008, 02:04 AM   #1
khaos83
Member
 
Registered: Dec 2007
Posts: 97

Rep: Reputation: 15
simple ln command question


Simple qns for ln

I want to link/point Z folder to A folder.
At the end of the day, when I am in side Z folder, I will be inside A folder, not outside

I am able to do it in 2 ways e.g.

Code:
ln -sdf /A /Z
ln -sn /A /Z

whats the difference between the two ?
Or is there a better way to do it ?
 
Old 01-31-2008, 02:54 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
If you simply want to create a symbolic link (rather than a hard link) to folder /A, you wish to call this symbolic link /Z, and /Z does not already exist, all you need to do is:

Code:
ln -s /A /Z
If you really want to creat this in the root directory, as indicated, you will have to do this as root as nobody else has permission to write to that directory.

Last edited by blackhole54; 01-31-2008 at 02:56 AM.
 
  


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
simple stupid question about the dd command tommytomthms5 Linux - Newbie 4 09-15-2007 11:13 AM
simple and easy ls command question basher400 Linux - Newbie 1 06-15-2005 08:26 AM
simple cp command question basher400 Linux - Newbie 7 06-08-2005 08:26 AM
A shell command simple question the_rhino Linux - Newbie 6 09-13-2004 01:57 PM
Simple question about mount command Manuel Tejada Linux - General 3 11-02-2002 10:33 PM

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

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