09-24-2008
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.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Would I be correct in assuming that find doesn't bother recursivley searching down sim links. (It doesn't seem to so I guess it doesn't!!!) Is there anyway to make it do so? (3 Replies)
Discussion started by: peter.herlihy
3 Replies
2. Programming
I have some crypting functions in object-file - for example,func.o
Main file,from where crypting functions called, named as main.cpp .
"gcc main.cpp -o main func.o" print "undefined reference to ... "
But if I rename main.cpp to main.c and execute
"gcc main.c -o main func.o" - ok. If anybody,... (3 Replies)
Discussion started by: Gigachel
3 Replies
3. Linux
Dear linuxers,
I'm a novice in C++ programming.
I wrote a ReadFile class in file ReadFile.cpp.
After that, I wrote a test.cpp, which contains a main function, to test whether my class work well.
I follow the following steps to compile the ReadFile.cpp file.
g++296 -c ReadFile.cpp -o... (4 Replies)
Discussion started by: niukun
4 Replies
4. OS X (Apple)
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... (1 Reply)
Discussion started by: Saurabh78
1 Replies
5. Linux
Hello,
I have one issue with linking folders.
I have two domains (domain1 and domain2) on one server (centOS). In domain1, I have one folder containing many images which I want to share for domain2. So i have created link for image directory using below command.
ln -s... (1 Reply)
Discussion started by: amitshah.in
1 Replies
6. AIX
Hello
A new file is created every day with the date appended to the end of a name. We are using Autosys to run jobs which watches for the file and runs jobs. But Autosys does not have the capability to figure out the current date.
I tried creating a symlink like this
ln -s... (1 Reply)
Discussion started by: vra5107
1 Replies
7. Solaris
Hi
i need to install a software into a zone, and this kind of software needs to have a file who is linked into /dev.
But it is not possible to create a link into /dev nor create a file into it.
-bash-3.00# ln -s /tmp/testfile /dev/
ln: cannot create /dev//testfile: Permission denied... (2 Replies)
Discussion started by: beta17
2 Replies
8. UNIX for Advanced & Expert Users
Hi. Can somebody tell me if there's a way of creating a symbolic link from a directory on one filesystem to that on another that will allow a find command that doesn't use the -L param to locate a particular file under that new 'linked' dir. With a normal sym link the find command on that... (6 Replies)
Discussion started by: user052009
6 Replies
LEARN ABOUT HPUX
list_link
list link(1m) list link(1m)
NAME
list link - Displays a list of all the soft links whose names match the link name that you specify
SYNOPSIS
cdscp list link link-name [with attribute-name = attribute-value]
ARGUMENTS
The full name of a specific soft link. The last simple name can contain wildcard characters. The name of a particular attribute. The
value of a particular attribute.
DESCRIPTION
The list link command displays a list of all the soft links whose names match the link name that you specify. The last simple name can
contain wildcard characters. You can use a with attribute-name = attribute-value clause to limit output only to soft links whose
attributes have values equal to the specified values. A space must precede and follow the = (equals sign). This command does not list the
name of the directory, object entry, or other soft link to which the soft link points.
Privilege Required
You must have read permission to the directory that stores the soft link. If you use a with attribute-name = attribute-value clause in
the command, you also need read or test permission to the selected soft links.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command displays a list of all the soft links whose names begin with the letter l in the directory /.:/admin. cdscp> list
link /.:/admin/l*
LIST
SOFTLINK /.../abc.com/admin
AT 1991-10-15-15:54:38 lnk01 lnk02 lnk03 lnk04 lnk05 lnk06
RELATED INFORMATION
Commands: create link(1m), delete link(1m), remove link(1m), set link(1m), show link(1m)
list link(1m)