what is the difference between Touch & cat command
Answer Posted / sricharan
touch:
It can be used to create 0 byte empty file.
syntax: touch filename.txt
we can create multiple file using touch command.
syntax: touch file1.txt file2.txt file3.txt ..... filen.txt
touch commnad is also used to update time stamp
Syntax:touch filename
cat:
It can be use to view the file.
Syntax:cat filename
It can be use to append the existing file.
syntax: cat >> filename
It can be use to concatinate n number of files to one file.
syntax: cat file1 file2 file3 file4 >> newfile
cat is also used to create a file
syntax: cat filename
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the size of time_t?
What is awk used for?
Describe the zip/unzip command using gzip.
How can you see the command line history?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What does #!/ Bin sh do?
Is ‘du’ a command? If so, what is its use?
What is used to type command?
Which unix command lists files/folders in alphabetical order?
What is ‘ps’ command for?
What is unix command?
What is the use of finger command?
Which unix command to make a new directory?
What is the use of find command in unix?
Why is it called a shebang?