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

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

643


What is the first character of the output in ls l command?

626


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

655


What is the use of the tee command?

592


What is unix command line?

601






What is $0 bash?

639


Name the general commands in using unix os for a beginner?

616


Differentiate cat command from more command.

571


What is the functionality of a top command?

618


What is updatedb?

576


What is the general format of unix command syntax?

685


What are bash commands?

587


What does #!/ Bin sh do?

581


What is the use of cut command in unix?

682


What is grep and how do you use it?

569