Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



Hi All of Unix/Linux professional Q.Why soft link file not open by cat command. Ihave make followi..

Answer / 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

Hi All of Unix/Linux professional Q.Why soft link file not open by cat command. Ihave make followi..

Answer / 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

More Linux Commands Interview Questions

What is mkdir?

0 Answers  


Enlist some linux networking and troubleshooting commands?

0 Answers  


What is the root directory linux?

0 Answers  


What command would you use to create an empty file without opening it to edit it?

0 Answers  


How do I check command history?

0 Answers  


Explain about document formatting?

0 Answers  


What is ls command and what it does?

0 Answers  


How do I find the linux version?

0 Answers  


have you ever got warning message from unix admin that file system running out of space or not enough disk space?what will u do?

5 Answers   HP,


How do I check dns entry?

0 Answers  


What does make clean command do?

0 Answers  


What is Syntax of any Linux command?

0 Answers   UGC Corporation,


Categories