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
Symlinks are actually very simple pointer files. It's quite easy to end up with links pointing at missing files or the wrong files by creating them incorrectly.
In your case, you asked for a link called "text.txt" (because you only specified a directory as the second arguement) pointing to "text.txt" and to place it in the 'test' directory.
It did what you asked
If you want a relative symlink pointing to text.txt in the test directory, you need to create it from within the target dir. Otherwise, you can use an absolute link instead:
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)
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)
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)
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)
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)
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)
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)
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)