what these two commands prints "echo test","cat test"?
Answers were Sorted based on User's Feedback
Answer / sivaji
"echo test", echo simply prints test.
"cat test" cat command will searches for a file as "test"
in the PWD. if it finds any file called "test", then it
will prints the contents of the test file. else will
through the error as file not exisiting
| Is This Answer Correct ? | 68 Yes | 4 No |
Answer / gayathri
echo test just prints test while cat test gives the
contents of the file called test.
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / durgesh srivastava
1. echo test is print test world as same it is in his
output.
2.cat test is show the contant of file test.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / asrar ahmed
(1) echo test:
echo test will print the output as "test"
$echo test
test
(2)cat test:
cat test will print the content of the file, if the file is
present.
$ cat test
Jan
Feb
Mar
Now we can remove the file test:
$ rm test
$ cat test
cat: test: No such file or directory
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / anil
echo "Test" ---echo function will print the given value
with in the quotes.
cat test ---- cats command first check the PWD given value
is there are not.if there it gives the content of values.if
not it will thorough the error.
| Is This Answer Correct ? | 3 Yes | 0 No |
What is the command to find maximum memory taking process on the server?
what is the command to list all files in a directory, including the hidden files in UNIX ?
How to redirect standard error to a file?
Which unix command to make a new directory?
What does the md command do?
What are Unix processes, and how do you manage them?
What does grep v do?
if we create a file, in that 10 rows(means 1,2,....9,10 like). i want 7 row exactly, which command use in unix? plz send this question.
Which command is used to kill the last background job?
How to identify whether a file is normal file or directory?
How do you find which version and name of unix you are using at the command prompt?
Suppose 1000 processes are running on the system out of those if you have to show only certain process ids which command will you use?