The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sym link problem Saurabh78 BSD 1 10-19-2008 08:36 PM
Ftp Link problem NeerajYadav UNIX for Advanced & Expert Users 0 03-24-2006 08:23 AM
link error problem niukun Linux 4 11-18-2004 04:14 AM
gcc Link problem Gigachel High Level Programming 3 11-19-2002 08:23 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 3.00 average. Display Modes
  #1 (permalink)  
Old 09-24-2008
Saurabh78 Saurabh78 is offline
Registered User
  
 

Join Date: Jun 2004
Posts: 40
Sym Link problem

Hi,
I am using Mac X 10.5. It's supporting BSD. I am getting strange problem.

• Launch the terminal.
• Create a directory. Use cd <directory>
• Now create another directory test with command “mkdir test”.
• Create a soft link with command “ln –s text.txt test”
• Go to the test directory “cd test”.
• Run the command ls –la. Output would be as

lrwxr-xr-x 1 root wheel 8 Sep 24 12:59 text.txt -> text.txt

Here, a file is pointing it self.
Anybody know, why it's happening.
  #2 (permalink)  
Old 09-25-2008
PxT's Avatar
PxT PxT is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2000
Location: Sacramento, CA
Posts: 909
Quote:
Originally Posted by Saurabh78 View Post
Anybody know, why it's happening.
It is this command: ln –s text.txt test


It creates a link (by default named text.txt because you didn't specify) in the test directory, pointing to text.txt.

If you tell us what you are trying to accomplish, someone might be able to help you out with the proper commands to use.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:44 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0