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 / nikhil maggu
Hi,
First of all a soft link is not an actual file it refers a
link to the original file at different location.
and cat shows the content of a file having data, info etc.
But "ln" never saves any info it just a reference of
original file to a different location
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How do I find the console in linux?
What is the command to calculate the size of a folder?
How do I check disk space in bash?
What is devops model?
What the command used for search file or files for specific text?
What is the makefile in c?
What is df -i command?
How do I set permission to run in linux?
What is command line in unix?
How to activate / deploy licence in RHEL 6 and what will happen if you don't activate / deploy licence in RHEL 6 ?
What is the syntax of mkdir?
Enlist some linux networking and troubleshooting commands?
How do I run whois command?
How many types of commands are there in linux?
How do I permanently set ulimit in linux?