Hi All of Unix/Linux professional
Q.Why soft link file not open by cat command. Ihave make
following symbolic link but when i open with #cat
linkfilename it does not oped please see the following code
and try to answer.
# ln -s file1 ~/mydir/filea
[root@dhcppc0 ~]# cd mydir
[root@dhcppc0 mydir]# ls -l
total 4
lrwxrwxrwx 1 root root 5 2010-04-04 09:04 filea -> file1
[root@dhcppc0 mydir]# cat filea
cat: filea: No such file or directory
Answer Posted / kristofw
the problem arises because you did not provide path
information to the target file. ln will create the link
pointing to a file1 in the same directory as the link
itself. If you do add path information to the target, it
will work :
# ln -s ~/file1 ~/mydir/filea
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is tty name?
What is DISM command?
What is grep command?
What is the command can be used to check for file corruption?
please advice me what i have to prepare for NIC Exam(22-feb- 09). send me the question pattern for the 2 hrs exam. please sent it to manivannan_it15@yahoo.co.in
Where can I find bash in linux?
What is apple llvm?
What make install does?
What is the best cpu stress test?
How to recover /etc/passwd file and /etc/shadow file?
What is 9 in kill?
What are grep patterns called?
What is cmake in linux?
You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?
How many commands are there in linux?