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

Answer Posted / dick

concatenate file1 and file2, in the below command file1 content will be insert in front of that in file2, and then combined content will be redirected to file3

cat file1 file2 > file3

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the comma to show the space allocation of files?

745


What does this command do,"$more readme.txt“?

850


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

772


What does the command ' $who | sort –logfile > newfile' do?

1008


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

850






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

887


What is the significance of the 'tee' command?

808


What is command substitution?

869


Which command is used to find whether the system is 32 bit or 64 bit?

812


What is the general format of unix command syntax?

1169


What is s and g in sed command?

784


How can we use grep command in unix?

819


What is the nmap command?

795


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

960


Which unix command to make a new directory?

786