what these two commands prints "echo test","cat test"?

Answers were Sorted based on User's Feedback



what these two commands prints "echo test","cat test"? ..

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

what these two commands prints "echo test","cat test"? ..

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

what these two commands prints "echo test","cat test"? ..

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

what these two commands prints "echo test","cat test"? ..

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

what these two commands prints "echo test","cat test"? ..

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 these two commands prints "echo test","cat test"? ..

Answer / guest

i thought dat syntax was wrong

Is This Answer Correct ?    2 Yes 22 No

Post New Answer

More Unix Commands Interview Questions

Which command should you use to find the remaining disk space in unix server?

0 Answers  


in unix echo is used for

10 Answers   BFL, BirlaSoft, Patni,


how to unzip the contents of the gzip file

1 Answers   Epsilon,


What is the use of egrep command in unix?

0 Answers  


What does 'mkdir' command do in UNIX?

0 Answers   Syntel, Visa,






Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?

1 Answers  


How will you know who are the users logged in to the system before 15 minutes?

4 Answers   Amazon,


Who command in unix operating system?

0 Answers  


Which command will you use to change the permissions on file?

7 Answers  


solaris Run level?

3 Answers   Wipro,


Can you write a command to erase all files in the current directory including all its sub-directories?

1 Answers  


What is unix command line?

0 Answers  


Categories