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
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 |
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 |
How can I only see the last 5 lines of a file?
when i create SAMBA server it is ok but while i try for access from windows pc he ask me only first time smb password then i close samba login next time he can`t ask for passwd why.?
I want to see how many interfaces(ethernet cards) are working using single command?
What are the options of wc command?
If you have saved a file in linux. Later you wish to rename that file, what command is designed for it?
Which command reduces the size of a file?
I have a user name in /etc/vsftpd/user_list which is for blocking the ftp user. Now i blocked the user as well ,but without removing username in user_list i wanna access the users home directory and his own directory .How will you access the data ????
Why bash is used in linux?
How do I clear terminal command history?
What does make clean command do?
What is the use of finger command in linux?
What command you use for cpio to create a backup called backup.cpio of all the users’ home dirs?