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 does chmod do in linux?
What is mask and umask in linux?
Brief about FTP hostname?
What is the difference between locating and locate command?
How can you check the amount of lines in a file?
What is history command in linux?
How do I check my cpu speed?
Write a command that will do the following: -look for all files in the current and subsequent directories with an extension c,v -strip the,v from the result (you can use sed command) -use the result and use a grep command to search for all occurrences of the word orange in the files.
How do I open a text file in cmd?
What is a makefile in linux?
What is bc command in unix?
Explain the linux directory commands along with the description?
Why ms dos is used?
What would be the result of the command paste -s dog cat?
What is netstat command in linux?