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
What is sudo bash command?
If the programmer wishes to execute an instruction at the specified time. Which command is used?
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.
What is ll command in unix?
What is the syntax of mkdir?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
What Command used to lock user password?
What is the command can be run to remove all the rules in an iptable table?
You have a tab delimited file called phonenos and want to change each tab to four spaces. What command can you use to accomplish this?
Which command is used to terminate a process?
How can I delete a file in linux?
What is phony in makefile?
What is the symbol of linux?
What is the command to see on which port which service is running?
How do I find previous commands in linux?