Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-31-2008, 03:04 AM   #1
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.

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, 03:54 AM   #2
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:

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 03:56 AM.


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

All times are GMT -5. The time now is 11:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration