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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the functionality of a top command?

623


Which command is used to delete all files in the current directory and all its sub-directories?

662


What does the md command do?

569


How can we use grep command in unix?

614


What are awk commands?

582






How does shebang work?

588


how to sort the content of the file based on numeric values

1250


What is the nmap command?

583


What is grep command in unix with examples?

604


What is rmdir command?

553


What are grep patterns?

577


What is the difference between cat and more command?

625


What does touch command do in unix?

726


What does the command '$ls | wc –l > file1' do?

678


How does pipe () work?

593