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


Please Help Members By Posting Answers For Below Questions

Which command would you use if you want to remove the password assigned to a group?

701


Brief about the command nn?

809


How do I find previous commands in linux?

727


What is nslookup command?

741


What is the difference between kill and kill in linux?

1026


What is #!/ Bin sh?

723


What is iptables command in linux?

770


How do you do nslookup?

715


What does wc command do in unix?

738


How does grep work in linux?

700


How do I find the linux version?

743


What is kill 9 in linux?

785


How do you sort cpu in top command?

761


Explain the working of command grouping?

740


How do I check my cpu speed?

781