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

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

How do you open a command prompt when issuing a command?

1004


Is python faster than bash?

1007


How to know linux os is 32 bit or 64 bit?

1001


How do I find previous commands in linux?

1046


Is makefile a shell script?

979


What is umask in linux?

971


How will you suspend a running process and put it in the background?

1576


What is nbtstat command?

1056


You need to see the last fifteen lines of the files dog, cat and horse. What command should you use?

979


What is the default number of shell commands saved in the history list of .cshrc file?

984


What daemon is used for scheduling of the commands?

1007


Explain getopts command of linux?

1130


Explain difference between nfs soft and hard mouniting points?

947


How do I check memory usage on linux?

1090


What is s in permission linux?

1061