How to add content of one file into another file at the beginning

Answer Posted / abhishek bhardwaj

If one wants to add content of file1 on top of file2 then

cat file2 >> file1

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it called grep?

553


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

654


Enumerate some of the most commonly used network commands in unix?

612


Explain ‘system calls’ with respect to unix commands?

598


Who invented grep?

645






What do chmod command do?

600


What is “chmod” command?

560


Write a command that will display files in the current directory, in a colored, long format.

672


What is nr in awk command?

594


What is the use of sed command in unix?

586


What are the differences among a system call, a library function, and a unix command?

563


What is difference between grep and find command in unix?

573


What are bash commands?

587


What happens when we execute a unix command?

593


How does the system know where one command ends and another begins?

1566