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

Answer Posted / rakesh kumar ray

cat > file1
rakesh
kumar
ray
cntrl + d

cat > file2
rintu
rohan
rocky
cntrl +d

cat < file1 > file2

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ctrl d?

602


What is the difference between awk and grep?

567


What is the difference between cat command and more command?

607


What does pipe () return?

605


How do I use grep to search for a file?

588






Which command can you use to find the currently running process in unix server?

596


How do I find previous commands in unix?

605


What is pipe command in unix?

684


Can you explain a little bit about command substitution?

623


Describe the usage and functionality of the command rm –r * in unix?

833


What is the use of the tee command?

609


Explain how to use grep command to list find the records of a file containing 10 different strings?

605


What is the general format of unix command syntax?

702


How do I search for a file in unix command?

557


Are you in or at the office?

626